Re: Compilation error with xml

2006-06-04 Thread Yeti
On Sun, Jun 04, 2006 at 01:46:25AM +0200, Guillaume Ruch wrote: When I try to compile my libglade2 program with : ... I get the following errors : (prog1:27396): GLib-GObject-WARNING **: specified class size for type `GtkData' is smaller than the parent type's `GtkObject' class size ...

TreeView and default widget

2006-06-04 Thread Attilio Fiandrotti
Hi In my interface i have a button which grabs default focus like this GTK_WIDGET_SET_FLAGS (GTK_WIDGET(my_button), GTK_CAN_DEFAULT); gtk_widget_grab_default (button) so that it gets activated when the user presses enter key, and i also have a Treeview which grabs focus like this

Re: TreeView and default widget

2006-06-04 Thread Yeti
On Sun, Jun 04, 2006 at 12:07:17PM +0200, Attilio Fiandrotti wrote: In my interface i have a button which grabs default focus like this GTK_WIDGET_SET_FLAGS (GTK_WIDGET(my_button), GTK_CAN_DEFAULT); gtk_widget_grab_default (button) so that it gets activated when the user presses enter key,

Re: TreeView and default widget

2006-06-04 Thread Attilio Fiandrotti
David Nečas (Yeti) wrote: On Sun, Jun 04, 2006 at 12:07:17PM +0200, Attilio Fiandrotti wrote: In my interface i have a button which grabs default focus like this GTK_WIDGET_SET_FLAGS (GTK_WIDGET(my_button), GTK_CAN_DEFAULT); gtk_widget_grab_default (button) so that it gets activated when the

Re: Compilation error with xml

2006-06-04 Thread Guillaume Ruch
On Sun, Jun 04, 2006 at 01:46:25AM +0200, Guillaume Ruch wrote: When I try to compile my libglade2 program with : ... I get the following errors : (prog1:27396): GLib-GObject-WARNING **: specified class size for type `GtkData' is smaller than the parent type's `GtkObject' class size ...

Re: Compilation error with xml

2006-06-04 Thread Yeti
On Sun, Jun 04, 2006 at 01:30:22PM +0200, Guillaume Ruch wrote: Thanks for your answer but I think the problem is somewhere else... When I try to compile a very minimal program like : #include stdio.h #include gtk-2.0/gtk/gtk.h #include libglade-2.0/glade/glade.h These are very strange

Problem with gtk_window_set_geometry_hints and vbox

2006-06-04 Thread Guillaume Duhamel
Hi, I'm writing a gtk interface for my Sega Saturn emulator. It's using a GtkDrawingArea and GtkGlExt to display an OpenGL window. I want the drawing area size to respect some constraint to match the Saturn resolution. It looks like gtk_window_set_geometry_hints does what I need but I have some