comparison src/menubar-gtk.c @ 714:02339d4ebed4

[xemacs-hg @ 2001-12-23 20:28:19 by wmperry] 2001-12-22 William M. Perry <wmperry@gnu.org> * glyphs-gtk.c (gtk_xpm_instantiate): Don't bother doing the xpm-color-symbols checks, they are impossible to implement with GTK's XPM implementation. :( 2001-12-13 William M. Perry <wmperry@gnu.org> * select-gtk.c (gtk_own_selection): Update to follow the new method signature. Ignore owned_p as it appears to only be used for motif hacks. * redisplay-gtk.c (gtk_output_string): Fixed some warnings about signed/unsigned comparison. (gtk_output_gdk_pixmap): Remove clipping code as per change by andy@xemacs.org to the X11 code. (gtk_output_pixmap): Make this follow the output_pixmap method conventions and expose it. (gtk_output_horizontal_line): Renamed from output_hline, and expose it in our method structure. (gtk_ring_bell): Don't ring the bell if volume <= 0 * toolbar-gtk.c (gtk_output_toolbar_button): (gtk_output_frame_toolbars): (gtk_redraw_exposed_toolbars): (gtk_redraw_frame_toolbars): These are now just aliases for the common_XXX() routines in toolbar-common.c * toolbar-common.c: New common toolbar implementation. This file uses only the redisplay_XXX() functions and device methods to draw the toolbar, and so should be portable across all windowing systems (other than tty, and even then I imagine text-based stuff would work if you had a way to select it).
author wmperry
date Sun, 23 Dec 2001 20:28:22 +0000
parents 183866b06e0b
children 943eaba38521
comparison
equal deleted inserted replaced
713:c2c346111c9a 714:02339d4ebed4
1214 1214
1215 static void 1215 static void
1216 gtk_popup_menu (Lisp_Object menu_desc, Lisp_Object event) 1216 gtk_popup_menu (Lisp_Object menu_desc, Lisp_Object event)
1217 { 1217 {
1218 struct Lisp_Event *eev = NULL; 1218 struct Lisp_Event *eev = NULL;
1219 GtkWidget *widget = menu_descriptor_to_widget (menu_desc); 1219 GtkWidget *widget = NULL;
1220 GtkWidget *menu = GTK_MENU_ITEM (widget)->submenu; 1220 GtkWidget *menu = NULL;
1221 gpointer id = gtk_object_get_data (GTK_OBJECT (widget), XEMACS_MENU_GUIID_TAG); 1221 gpointer id = NULL;
1222 1222
1223 /* Do basic error checking first... */
1224 if (SYMBOLP (menu_desc))
1225 menu_desc = Fsymbol_value (menu_desc);
1226 CHECK_CONS (menu_desc);
1227 CHECK_STRING (XCAR (menu_desc));
1228
1229 /* Now lets get down to business... */
1230 widget = menu_descriptor_to_widget (menu_desc);
1231 menu = GTK_MENU_ITEM (widget)->submenu;
1223 gtk_widget_set_name (widget, "XEmacsPopupMenu"); 1232 gtk_widget_set_name (widget, "XEmacsPopupMenu");
1233 id = gtk_object_get_data (GTK_OBJECT (widget), XEMACS_MENU_GUIID_TAG);
1224 1234
1225 __activate_menu (GTK_MENU_ITEM (widget), id); 1235 __activate_menu (GTK_MENU_ITEM (widget), id);
1226 1236
1227 if (!NILP (event)) 1237 if (!NILP (event))
1228 { 1238 {