[Gtk-sharp-list] Glade# bug?

pedro pedroabelleira@yahoo.es
Wed, 26 Nov 2003 22:48:09 +0100

FYI: I digged into this a bit and it turned out to be a libglade bug.
Damon suggested a workaround and seems that he knows where the problem

> 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:
>  http://bugzilla.gnome.org/show_bug.cgi?id=128013
> Thanks for the report,
> Damon

El dom, 23-11-2003 a las 00:55, pedro escribió:
> Hello all,
> I want to catch a mouse motion event in my app. So I go to the signals
> glade windows and activate GDK_BUTTON_MOTION_MASK (I only had
> GDK_BUTTON_PRESS_MASK activated). Then my app stops getting the button
> press events.
> It's not a problem with GDK_BUTTON_MOTION_MASK. If I choose another bit
> I got the same error. If I let glade output C code and I execute it the
> resulting program works right.
> I attach a sample case. If you compile and execute the test case it
> doesn't get the events. If you open the glade file and remove the
> GDK_BUTTON_MOTION_MASK bit it works fine.
> Am i doing something wrong or has Glade# problems with "multibit" masks?
> Thanks.
> Pedro