[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

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

gtk_widget_set_events (drawingarea1,

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 |

It looks like glade_flags_from_string() in libglade can't handle spaces.
I've added a bug for it:

Thanks for the report,


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