[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

Re: GTK+ Custom Widget - Assign Button Release Handler in Class struct



After a few experiments I observed that GDK_BUTTON_RELEASE_MASK works only if GDK_BUTTON_PRESS_MASK is also turned on.

Is there "official" documentation supporting this?

On Feb 18, 2012 1:50 PM, "Agnel Kurian" <agnel.kurian@xxxxxxxxx> wrote:
>
> Hello Everyone,
>
> I have a custom GTK+ widget in which I need to handle the release of a mouse button. I have assigned my handler callback function to the button_release_event member of GtkWidgetClass in the '_class_init' function. I have also set the GDK_BUTTON_RELEASE_MASK flag in the '_realize' function. However, my handler is not being called. Are there any other steps I need to take in order to receive mouse events?
>
> (I am following the Custom GTK+ widget tutorial at http://zetcode.com/tutorials/gtktutorial/customwidget/ )
>
>
>
> -- Agnel
>
>

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[GIMP Users]     [Yosemite News]    [Yosemite Photos]    [Gimp's Home]     [Steve's Art]

Add to Google Powered by Linux