Re: g_signal_connect, structs and my sanity

2008-11-03 Thread beginner.c
Ahgreat thanks for pointing that out. Simple difference between "change-value" and "value-changed". Any feedback on prototyping my struct? Thanks David Munger wrote: > > I guess you just have the wrong callback function signature for the > "change-value" signal. > > See http://library.gn

g_signal_connect, structs and my sanity

2008-11-03 Thread beginner.c
I'm getting a segfault on the gtkscale callback (when accessing printf("Qs: %i\n", base->sTestOne.a);). Can somebody please tell me what I'm doing wrong. Also, what would be the cleanest way to prototype my struct (struct allStructs) outside of main? Thanks #include #include #include #in

Re: Passing Struct to g_signal_connect

2008-10-19 Thread beginner.c
way the compiler isn't > able to check these things and errors like yours happen. And these can > be very nasty bugs since they cause people to write to memory they > are not supposed to write to. A classic door for hackers ... > > Till > > Am Sonntag 19 Oktober 2008 schr

Passing Struct to g_signal_connect

2008-10-19 Thread beginner.c
I need to pass a struct using g_signal_connect, but the issue I'm having is that I can't alter the elements of the struct within the called function e.g. void on_button2_clicked (struct allStructs *by_ptr) { gtk_label_set_text ((GtkLabel*)by_ptr->widgets.label, "whatever"); } main { bla

gdk_window_set_keep_below

2007-07-03 Thread beginner.c
How can I ensure one window is above another when both are using gdk_window_set_keep_below Is it first in best dressed? -- View this message in context: http://www.nabble.com/gdk_window_set_keep_below-tf4021764.html#a11423048 Sent from the Gtk+ - Apps Dev mailing list archive at Nabble.com. _

Dealing with workspaces

2007-07-02 Thread beginner.c
What is the best method of dealing with workspaces? I need my app to start up on a specific workspace. Im aware of gdk_window_stick which should place the window on ALL workspaces - just not quite what I need. Any information greatly appreciated. -- View this message in context: http://www.nabb

GTK Theme engines

2007-07-01 Thread beginner.c
Is is possible to write a theming engine that can detect the widgets that are being used in an application and adjust the theme that would be applied to it. eg if the window is not decorated do this if the window has a menubar but no icon bar do this Any ideas? -- View this message in context:

beginner question about extern

2007-06-17 Thread beginner.c
Hi, I'm having a problem with multiple files and using extern In main.c I'm declaring GtkWidget *a; (...do a bunch of stuff successfully to a) In another file: extern GtkWidget *a; (..do a bunch of stuff with error) gtk_toggle_button_set_active: assertion failed ...blah blah failed. I'm am typ

Re: Alternative GTK widgets

2007-05-15 Thread beginner.c
Perhaps we should all put in some links - this would be beneficial for everybody I think (not all are still active/useful): http://dev.investorsidekick.com/begtkextra/ http://libbit.sf.net/ http://www.curlyankles.com/ http://kornelix.squarespace.com/utilities/ http://sourceforge.net/projects/enli

Re: Alternative GTK widgets

2007-05-14 Thread beginner.c
I've noticed libegg gets used a lot. Does it have a web page? It seems the most obvious thing for widgets but are there some screen shots somewhere showing off the widgets? jcupitt wrote: > > On 5/12/07, Shoq <[EMAIL PROTECTED]> wrote: >> Pardon my noobness, but I am new to GTK. I had assumed

Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

2007-05-14 Thread beginner.c
Hi, I'm doing the following and get the above error (of course with the funny characters). What am I doing wrong? int a = 0; char *x; char Text[500]; sprintf (Text,"Blah %i",a); x = Text; gtk_label_set_text (GTK_LABEL(label1),x); -- View this message in context: http://www.nabble.com/Pango-W

Re: GtkImage problem

2007-05-06 Thread beginner.c
//gtk_widget_show_all (window); gtk_main (); return 0; } David Nečas (Yeti)-2 wrote: > > On Sun, May 06, 2007 at 04:06:11AM -0700, beginner.c wrote: >> >> I am in fact >> calling gtk_init() prior to any of these functions. > > No, you do

Re: GtkImage problem

2007-05-06 Thread beginner.c
Thanks for the response but as you can see from my original post I am in fact calling gtk_init() prior to any of these functions. David Nečas (Yeti)-2 wrote: > > On Sat, May 05, 2007 at 04:27:14PM -0700, beginner.c wrote: >> >> As suggested I've done: gtk_image_set_fro

Re: GtkImage problem

2007-05-05 Thread beginner.c
27; failed (testreference:7344): Gtk-CRITICAL **: gtk_image_set_from_file: assertion `GTK_IS_IMAGE (image)' failed beginner.c wrote: > > I have the following code, which comiles and displays the image yet I get > the following errors > > > > Compile error >

GtkImage problem

2007-05-04 Thread beginner.c
I have the following code, which comiles and displays the image yet I get the following errors Compile error passing argument 1 of 'gtk_image_set_from_file' from incompatible pointer type Runtime errors (process:12275): GLib-GObject-CRITICAL **: gtype.c:2242: initialization assertion failed, u

Pass by reference...(easy question)

2007-05-03 Thread beginner.c
Hi, I know how to pass by reference in C normally. But how do I pass by ref a GTK Widget to a function? -- View this message in context: http://www.nabble.com/Pass-by-reference...%28easy-question%29-tf3688934.html#a10313107 Sent from the Gtk+ - Apps Dev mailing list archive at Nabble.com.