[evince/gnome3-style] Use symbolic icons in toolbar and findbar



commit 713e77775fdb3fcd409c48ae7f5abd9f87e34d25
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sun Nov 18 11:37:44 2012 +0100

    Use symbolic icons in toolbar and findbar
    
    Some icons don't have a symbolic version yet.

 shell/eggfindbar.c            |    6 +++---
 shell/ev-window.c             |    6 +++---
 shell/ev-zoom-action-widget.c |    2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/shell/eggfindbar.c b/shell/eggfindbar.c
index 8eeacd8..0ac98cf 100644
--- a/shell/eggfindbar.c
+++ b/shell/eggfindbar.c
@@ -409,9 +409,9 @@ egg_find_bar_init (EggFindBar *find_bar)
   gtk_entry_set_max_length (GTK_ENTRY (priv->find_entry), 512);
 
   /* Find options */
-  gtk_entry_set_icon_from_stock (GTK_ENTRY (priv->find_entry),
-                                 GTK_ENTRY_ICON_PRIMARY,
-                                 GTK_STOCK_FIND);
+  gtk_entry_set_icon_from_icon_name (GTK_ENTRY (priv->find_entry),
+                                     GTK_ENTRY_ICON_PRIMARY,
+                                     "edit-find-symbolic");
   gtk_entry_set_icon_activatable (GTK_ENTRY (priv->find_entry),
                                   GTK_ENTRY_ICON_PRIMARY,
                                   TRUE);
diff --git a/shell/ev-window.c b/shell/ev-window.c
index c07c8a6..fe9271a 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -5865,10 +5865,10 @@ static const GtkActionEntry entries[] = {
 	  G_CALLBACK (ev_window_cmd_view_autoscroll) },
 
         /* Go menu */
-        { "GoPreviousPage", GTK_STOCK_GO_UP, N_("_Previous Page"), "<control>Page_Up",
+        { "GoPreviousPage", "go-up-symbolic", N_("_Previous Page"), "<control>Page_Up",
           N_("Go to the previous page"),
           G_CALLBACK (ev_window_cmd_go_previous_page) },
-        { "GoNextPage", GTK_STOCK_GO_DOWN, N_("_Next Page"), "<control>Page_Down",
+        { "GoNextPage", "go-down-symbolic", N_("_Next Page"), "<control>Page_Down",
           N_("Go to the next page"),
           G_CALLBACK (ev_window_cmd_go_next_page) },
         { "GoFirstPage", GTK_STOCK_GOTO_TOP, N_("_First Page"), "<control>Home",
@@ -5995,7 +5995,7 @@ static const GtkToggleActionEntry toggle_entries[] = {
 	  N_("Show page contents with the colors inverted"),
 	  G_CALLBACK (ev_window_cmd_view_inverted_colors) },
 
-	{ "EditFind", GTK_STOCK_FIND, N_("_Findâ"), "<control>F",
+	{ "EditFind", "edit-find-symbolic", N_("_Findâ"), "<control>F",
 	  N_("Find a word or phrase in the document"),
 	  G_CALLBACK (ev_window_cmd_toggle_find) },
 
diff --git a/shell/ev-zoom-action-widget.c b/shell/ev-zoom-action-widget.c
index 0579a78..67d7f1d 100644
--- a/shell/ev-zoom-action-widget.c
+++ b/shell/ev-zoom-action-widget.c
@@ -122,7 +122,7 @@ ev_zoom_action_widget_update_sizing_mode (EvZoomActionWidget *control)
 
         switch (mode) {
         case EV_SIZING_BEST_FIT:
-                icon_name = EV_STOCK_ZOOM_PAGE;
+                icon_name = "zoom-fit-best-symbolic";
                 tooltip = _("Best Fit");
                 break;
         case EV_SIZING_FIT_WIDTH:



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