Re: GTK Action Handler



Michael Cronenworth wrote:
dhk wrote:
How can I reuse these callbacks?

Use user_function( GtkWidget *widget, gpointer data ) instead of
explicitly setting a class. Then cast widget as whatever you need, eg.:
GTK_BUTTON( widget ) inside of your callback.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


When the button or expander is clicked with the mouse the callbacks work
fine.  The problem is from the menu the "activate" signal has GtkAction
as the first parameter of the callback and I don't think that can be
cast to a GtkButton or GtkExpander.  I want to call the button and
expander callbacks as if they were clicked with the mouse.

dave



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