[Fwd: Re: [Glade-users] libglade event mask problem]



I think this might be related to the GladeXML + GtkDrawingArea problem (lack of event propagation, not the weird object casting problem).  I'll test this out tonight on the glade-2 version of the scribble tutorial ...


-------- Original Message --------
Subject: Re: [Glade-users] libglade event mask problem
Date: 26 Nov 2003 21:18:49 +0000
From: Damon Chaplin <damon karuna uklinux net>
To: Pedro Abelleira Seco <pedroabelleira yahoo es>
CC: glade-users ximian com <glade-users ximian com>
References: <20031126204022 74142 qmail web40905 mail yahoo com>


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


_______________________________________________
Glade-users maillist  -  Glade-users lists ximian com
http://lists.ximian.com/mailman/listinfo/glade-users


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