emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] trunk r118153: * gtkutil.c: Remove no-longer-used code.


From: Paul Eggert
Subject: [Emacs-diffs] trunk r118153: * gtkutil.c: Remove no-longer-used code.
Date: Sat, 18 Oct 2014 19:07:22 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 118153
revision-id: address@hidden
parent: address@hidden
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Sat 2014-10-18 12:07:17 -0700
message:
  * 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.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/gtkutil.c                  gtkutil.c-20091113204419-o5vbwnq5f7feedwu-2527
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2014-10-18 16:25:24 +0000
+++ b/src/ChangeLog     2014-10-18 19:07:17 +0000
@@ -1,3 +1,12 @@
+2014-10-18  Paul Eggert  <address@hidden>
+
+       * 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  <address@hidden>
 
        * xfns.c (syms_of_xfns): Remove x-gtk-whole-detached-tool-bar.

=== modified file 'src/gtkutil.c'
--- a/src/gtkutil.c     2014-10-18 16:19:53 +0000
+++ b/src/gtkutil.c     2014-10-18 19:07:17 +0000
@@ -2789,7 +2789,6 @@
               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 @@
    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 @@
   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 @@
   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 @@
       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))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]