[evince] Remove unused ev_toolbar_create_button and ev_toolbar_create_button_group



commit 5e536e612b88c68a16f1848b43c2a9ef4c6e6d83
Author: José Aliste <jaliste src gnome org>
Date:   Thu Jul 24 10:56:51 2014 -0400

    Remove unused ev_toolbar_create_button and ev_toolbar_create_button_group
    
    https://bugzilla.gnome.org/show_bug.cgi?id=732289

 shell/ev-toolbar.c |   33 ---------------------------------
 1 files changed, 0 insertions(+), 33 deletions(-)
---
diff --git a/shell/ev-toolbar.c b/shell/ev-toolbar.c
index aabfb20..a57bb4c 100644
--- a/shell/ev-toolbar.c
+++ b/shell/ev-toolbar.c
@@ -83,24 +83,6 @@ ev_toolbar_set_button_action (EvToolbar   *ev_toolbar,
 }
 
 static GtkWidget *
-ev_toolbar_create_button (EvToolbar   *ev_toolbar,
-                          const gchar *action_name,
-                          const gchar *icon_name,
-                          const gchar *tooltip)
-{
-        GtkWidget *button = gtk_button_new ();
-        GtkWidget *image;
-
-        image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_MENU);
-
-        gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
-        gtk_button_set_image (GTK_BUTTON (button), image);
-        ev_toolbar_set_button_action (ev_toolbar, GTK_BUTTON (button), action_name, tooltip);
-
-        return button;
-}
-
-static GtkWidget *
 ev_toolbar_create_toggle_button (EvToolbar *ev_toolbar,
                                  const gchar *action_name,
                                  const gchar *icon_name,
@@ -140,21 +122,6 @@ ev_toolbar_create_menu_button (EvToolbar   *ev_toolbar,
         return button;
 }
 
-static GtkWidget *
-ev_toolbar_create_button_group (EvToolbar *ev_toolbar)
-{
-        GtkStyleContext *style_context;
-        GtkWidget *box;
-
-        box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
-
-        style_context = gtk_widget_get_style_context (box);
-        gtk_style_context_add_class (style_context, GTK_STYLE_CLASS_RAISED);
-        gtk_style_context_add_class (style_context, GTK_STYLE_CLASS_LINKED);
-
-        return box;
-}
-
 static void
 ev_toolbar_setup_bookmarks_menu (EvToolbar  *toolbar,
                                  GMenuModel *bookmarks_submenu_model)


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