diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2014-10-18 12:07:17 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-10-18 12:07:17 -0700 |
commit | 4e94689452f3a895a52e67787b795596c2390462 (patch) | |
tree | 8b2ad38ce5ee89b68c024927d4058ebb8569458a /src | |
parent | 6e5ff6166647e6af30beff38f67f2bca86cf9786 (diff) | |
download | emacs-4e94689452f3a895a52e67787b795596c2390462.tar.gz |
* gtkutil.c: Remove no-longer-used code.
(xg_update_menubar): Remove unused local and unnecessary call to
gtk_menu_item_get_submenu.
(XG_TOOL_BAR_PROXY_BUTTON, xg_tool_bar_proxy_callback)
(xg_get_tool_bar_widgets, xg_tool_bar_proxy_help_callback)
(TOOLBAR_TOP_WIDGET): Remove; no longer used.
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 9 | ||||
-rw-r--r-- | src/gtkutil.c | 43 |
2 files changed, 10 insertions, 42 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index aac111f680e..ae7272d39ca 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,12 @@ +2014-10-18 Paul Eggert <eggert@cs.ucla.edu> + + * gtkutil.c: Remove no-longer-used code. + (xg_update_menubar): Remove unused local and unnecessary call to + gtk_menu_item_get_submenu. + (XG_TOOL_BAR_PROXY_BUTTON, xg_tool_bar_proxy_callback) + (xg_get_tool_bar_widgets, xg_tool_bar_proxy_help_callback) + (TOOLBAR_TOP_WIDGET): Remove; no longer used. + 2014-10-18 Jan Djärv <jan.h.d@swipnet.se> * xfns.c (syms_of_xfns): Remove x-gtk-whole-detached-tool-bar. diff --git a/src/gtkutil.c b/src/gtkutil.c index 89897f8afa5..64940d07f19 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -2789,7 +2789,6 @@ xg_update_menubar (GtkWidget *menubar, is up to date when leaving the minibuffer. */ GtkLabel *wlabel = GTK_LABEL (XG_BIN_CHILD (witem)); char *utf8_label = get_utf8_string (val->name); - GtkWidget *submenu = gtk_menu_item_get_submenu (witem); /* GTK menu items don't notice when their labels have been changed from underneath them, so we have to explicitly @@ -3981,9 +3980,6 @@ xg_event_is_for_scrollbar (struct frame *f, const XEvent *event) get them. */ #define XG_TOOL_BAR_LAST_MODIFIER "emacs-tool-bar-modifier" -/* The key for storing the button widget in its proxy menu item. */ -#define XG_TOOL_BAR_PROXY_BUTTON "emacs-tool-bar-proxy-button" - /* The key for the data we put in the GtkImage widgets. The data is the stock name used by Emacs. We use this to see if we need to update the GtkImage with a new image. */ @@ -4056,41 +4052,6 @@ xg_tool_bar_callback (GtkWidget *w, gpointer client_data) x_focus_frame (f); } -/* Callback function invoked when a tool bar item is pressed in a detached - tool bar or the overflow drop down menu. - We just call xg_tool_bar_callback. - W is the menu item widget that got pressed, - CLIENT_DATA is an integer that is the index of the button in the - tool bar. 0 is the first button. */ - -static void -xg_tool_bar_proxy_callback (GtkWidget *w, gpointer client_data) -{ - GtkWidget *wbutton = GTK_WIDGET (g_object_get_data (G_OBJECT (w), - XG_TOOL_BAR_PROXY_BUTTON)); - xg_tool_bar_callback (wbutton, client_data); -} - - -static gboolean -xg_tool_bar_help_callback (GtkWidget *w, - GdkEventCrossing *event, - gpointer client_data); - -/* This callback is called when a help is to be shown for an item in - the detached tool bar when the detached tool bar it is not expanded. */ - -static gboolean -xg_tool_bar_proxy_help_callback (GtkWidget *w, - GdkEventCrossing *event, - gpointer client_data) -{ - GtkWidget *wbutton = GTK_WIDGET (g_object_get_data (G_OBJECT (w), - XG_TOOL_BAR_PROXY_BUTTON)); - - return xg_tool_bar_help_callback (wbutton, event, client_data); -} - static GtkWidget * xg_get_tool_bar_widgets (GtkWidget *vb, GtkWidget **wimage) { @@ -4183,8 +4144,6 @@ xg_tool_bar_item_expose_callback (GtkWidget *w, gtk_toolbar_set_orientation (GTK_TOOLBAR (w), o) #endif -#define TOOLBAR_TOP_WIDGET(x) ((x)->toolbar_widget) - /* Attach a tool bar to frame F. */ static void @@ -4696,7 +4655,7 @@ update_frame_tool_bar (struct frame *f) if (!NILP (specified_file) && !NILP (Ffboundp (Qx_gtk_map_stock))) stock = call1 (Qx_gtk_map_stock, specified_file); - if (CONSP (stock)) + if (CONSP (stock)) { Lisp_Object tem; for (tem = stock; CONSP (tem); tem = XCDR (tem)) |