[evince/gnome3-style] Don't show icons in zoom entry



commit 562205d355ec367cead69c145432a1ea1a46ec76
Author: William Jon McCann <jmccann redhat com>
Date:   Wed Dec 12 13:16:37 2012 +0100

    Don't show icons in zoom entry
    
    https://bugzilla.gnome.org/show_bug.cgi?id=690102

 shell/ev-zoom-action-widget.c |   43 -----------------------------------------
 1 files changed, 0 insertions(+), 43 deletions(-)
---
diff --git a/shell/ev-zoom-action-widget.c b/shell/ev-zoom-action-widget.c
index 7e511b3..ef82888 100644
--- a/shell/ev-zoom-action-widget.c
+++ b/shell/ev-zoom-action-widget.c
@@ -113,41 +113,6 @@ zoom_changed_cb (EvDocumentModel    *model,
 }
 
 static void
-ev_zoom_action_widget_update_sizing_mode (EvZoomActionWidget *control)
-{
-        GtkWidget   *entry = gtk_bin_get_child (GTK_BIN (control->priv->combo));
-        EvSizingMode mode = ev_document_model_get_sizing_mode (control->priv->model);
-        const gchar *icon_name = NULL;
-        const gchar *tooltip = NULL;
-
-        switch (mode) {
-        case EV_SIZING_FIT_PAGE:
-                icon_name = "zoom-fit-best-symbolic";
-                tooltip = _("Fit Page");
-                break;
-        case EV_SIZING_FIT_WIDTH:
-                icon_name = EV_STOCK_ZOOM_WIDTH;
-                tooltip = _("Fit Width");
-                break;
-        case EV_SIZING_AUTOMATIC:
-                /* TODO */
-        case EV_SIZING_FREE:
-                break;
-        }
-
-        gtk_entry_set_icon_from_icon_name (GTK_ENTRY (entry), GTK_ENTRY_ICON_SECONDARY, icon_name);
-        gtk_entry_set_icon_tooltip_text (GTK_ENTRY (entry), GTK_ENTRY_ICON_SECONDARY, tooltip);
-}
-
-static void
-sizing_mode_changed_cb (EvDocumentModel    *model,
-                        GParamSpec         *pspec,
-                        EvZoomActionWidget *control)
-{
-        ev_zoom_action_widget_update_sizing_mode (control);
-}
-
-static void
 document_changed_cb (EvDocumentModel    *model,
                      GParamSpec         *pspec,
                      EvZoomActionWidget *control)
@@ -156,7 +121,6 @@ document_changed_cb (EvDocumentModel    *model,
                 return;
 
         ev_zoom_action_widget_update_zoom_level (control);
-        ev_zoom_action_widget_update_sizing_mode (control);
 }
 
 static void
@@ -347,9 +311,6 @@ ev_zoom_action_widget_set_model (EvZoomActionWidget *control,
                 g_signal_handlers_disconnect_by_func (control->priv->model,
                                                       G_CALLBACK (zoom_changed_cb),
                                                       control);
-                g_signal_handlers_disconnect_by_func (control->priv->model,
-                                                      G_CALLBACK (sizing_mode_changed_cb),
-                                                      control);
         }
         control->priv->model = model;
         if (!model)
@@ -360,7 +321,6 @@ ev_zoom_action_widget_set_model (EvZoomActionWidget *control,
 
         if (ev_document_model_get_document (model)) {
                 ev_zoom_action_widget_update_zoom_level (control);
-                ev_zoom_action_widget_update_sizing_mode (control);
         } else {
                 ev_zoom_action_widget_set_zoom_level (control, 1.);
         }
@@ -371,9 +331,6 @@ ev_zoom_action_widget_set_model (EvZoomActionWidget *control,
         g_signal_connect (control->priv->model, "notify::scale",
                           G_CALLBACK (zoom_changed_cb),
                           control);
-        g_signal_connect (control->priv->model, "notify::sizing-mode",
-                          G_CALLBACK (sizing_mode_changed_cb),
-                          control);
 }
 
 void



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