[Glade-users] libglade event mask problem



On Wed, 2003-11-26 at 20:40, Pedro Abelleira Seco wrote:
Hi, list

I'm having a little problem with libglade. In my test
case I have a simple app: a window with a DrawingArea
inside. The "button_press_event" is connected with a
callback, the GDK_BUTTON_PRESS_MASK and everything
works right. It works if I use the glade-generated C
code or use libglade to load the interface
dinamically.

Now, when I _add_ GDK_BUTTON_MOTION_MASK to the event
mask the dinamic version stops getting events but the
rebuilded static version works ok. The file inteface.c
contains

gtk_widget_set_events (drawingarea1,
GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK);

so the event mask is what I want. I attach the
testcase I'm using.

If you remove the spaces in this line in the .glade file it works:

      <property name="events">GDK_BUTTON_MOTION_MASK |
GDK_BUTTON_PRESS_MASK</property>
 

It looks like glade_flags_from_string() in libglade can't handle spaces.
I've added a bug for it:
  http://bugzilla.gnome.org/show_bug.cgi?id=128013

Thanks for the report,

Damon






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]