Mercurial > hg > xemacs-beta
diff src/menubar-gtk.c @ 2168:95fee4a1420e
[xemacs-hg @ 2004-07-07 12:00:58 by malcolmp]
Working GK tab_control widget. Other GTK widgets drawn with the correct
location and size.
author | malcolmp |
---|---|
date | Wed, 07 Jul 2004 12:01:07 +0000 |
parents | e8db6a10ad42 |
children | 04bc9d2f42c7 |
line wrap: on
line diff
--- a/src/menubar-gtk.c Wed Jul 07 01:52:17 2004 +0000 +++ b/src/menubar-gtk.c Wed Jul 07 12:01:07 2004 +0000 @@ -734,28 +734,13 @@ return (menu_item); } -static struct frame * -__get_channel (GtkWidget *w) -{ - struct frame *f = NULL; - - for (; w; w = w->parent) - { - if ((f = (struct frame *) gtk_object_get_data (GTK_OBJECT (w), "xemacs::frame"))) - return (f); - } - - return (selected_frame()); -} - - /* Called whenever a button, radio, or toggle is selected in the menu */ static void __generic_button_callback (GtkMenuItem *item, gpointer user_data) { Lisp_Object callback, function, data, channel; - channel = wrap_frame (__get_channel (GTK_WIDGET (item))); + channel = wrap_frame (gtk_widget_to_frame (GTK_WIDGET (item))); callback = VOID_TO_LISP (user_data);