]> spindle.queued.net Git - midori/commitdiff
Add edit, stop and url icon to midori-stock.h
authorChristian Dywan <christian@twotoasts.de>
Wed, 11 Jul 2012 16:40:44 +0000 (18:40 +0200)
committerChristian Dywan <christian@twotoasts.de>
Wed, 11 Jul 2012 16:41:18 +0000 (18:41 +0200)
midori/midori-locationaction.c
midori/midori-searchaction.c
midori/midori-stock.h
toolbars/midori-findbar.c

index d10e41b9c135b94ca96b716dec451e9b1e149410..ec377bdbd1cd1c509ff71730e4033e8ecb010445 100644 (file)
@@ -1770,7 +1770,7 @@ midori_location_action_set_security_hint (MidoriLocationAction* location_action,
                     GTK_ICON_ENTRY_PRIMARY, "text-html-symbolic");
             else
                 gtk_icon_entry_set_icon_from_icon_name (GTK_ICON_ENTRY (entry),
-                    GTK_ICON_ENTRY_PRIMARY, "text-html");
+                    GTK_ICON_ENTRY_PRIMARY, STOCK_URL);
             gtk_icon_entry_set_tooltip (GTK_ICON_ENTRY (entry),
                 GTK_ICON_ENTRY_PRIMARY, _("Open, unencrypted connection"));
         }
index bc814d99bf96f8367847329ae73a2e97014cf40e..a4efe4543537585eb6c393f673d18561083d985c 100644 (file)
@@ -433,7 +433,7 @@ midori_search_action_get_icon (KatzeItem*    item,
     else if (gtk_icon_theme_has_icon (icon_theme, "edit-find-option"))
         *icon_name = "edit-find-option";
     else
-        *icon_name = "edit-find";
+        *icon_name = STOCK_EDIT_FIND;
     return NULL;
 }
 
index 3157c2c1010af29402e3acad2660702bd69656ff..721c0459b892cfa55141d564329b20a96543e0be 100644 (file)
@@ -31,5 +31,9 @@
 #define STOCK_USER_TRASH         "user-trash"
 #define STOCK_WINDOW_NEW         "window-new"
 #define STOCK_FOLDER_NEW         "folder-new"
+#define STOCK_EDIT_CLEAR         "edit-clear"
+#define STOCK_EDIT_FIND          "edit-find"
+#define STOCK_STOP               "stop"
+#define STOCK_URL                "text-html"
 
 #endif /* !__MIDORI_STOCK_H__ */
index cbee17b5109787c907eaef7c3355809a1a01c79f..c5a12f8ab2d3f2f7be4dff8d11d253d34c93674f 100644 (file)
@@ -112,7 +112,7 @@ midori_findbar_entry_clear_icon_released_cb (GtkIconEntry* entry,
 {
     if (icon_pos == GTK_ICON_ENTRY_SECONDARY)
     {
-        midori_findbar_set_icon (findbar, GTK_ICON_ENTRY_PRIMARY, "edit-find");
+        midori_findbar_set_icon (findbar, GTK_ICON_ENTRY_PRIMARY, STOCK_EDIT_FIND);
     }
 }
 
@@ -191,7 +191,7 @@ midori_findbar_invoke (MidoriFindbar* findbar)
         GtkWidget* view = midori_browser_get_current_tab (browser);
         const gchar* text;
 
-        midori_findbar_set_icon (findbar, GTK_ICON_ENTRY_PRIMARY, "edit-find");
+        midori_findbar_set_icon (findbar, GTK_ICON_ENTRY_PRIMARY, STOCK_EDIT_FIND);
         gtk_widget_show (GTK_WIDGET (findbar->find_case));
         gtk_widget_show (GTK_WIDGET (findbar->find_highlight));
         gtk_widget_show (GTK_WIDGET (findbar->find_close));
@@ -233,7 +233,7 @@ midori_findbar_preedit_changed_cb (GtkWidget*     entry,
     midori_view_unmark_text_matches (MIDORI_VIEW (view));
     if (g_utf8_strlen (preedit, -1) >= 1)
     {
-        midori_findbar_set_icon (findbar, GTK_ICON_ENTRY_SECONDARY, "edit-clear");
+        midori_findbar_set_icon (findbar, GTK_ICON_ENTRY_SECONDARY, STOCK_EDIT_CLEAR);
         midori_findbar_find_text (findbar, preedit, TRUE);
     }
     else
@@ -291,7 +291,7 @@ midori_findbar_init (MidoriFindbar* findbar)
         gtk_label_new_with_mnemonic (_("_Inline Find:")));
     gtk_toolbar_insert (GTK_TOOLBAR (findbar), toolitem, -1);
     findbar->find_text = gtk_icon_entry_new ();
-    midori_findbar_set_icon (findbar, GTK_ICON_ENTRY_PRIMARY, "edit-find");
+    midori_findbar_set_icon (findbar, GTK_ICON_ENTRY_PRIMARY, STOCK_EDIT_FIND);
     sokoke_entry_set_clear_button_visible (GTK_ENTRY (findbar->find_text), TRUE);
     g_signal_connect (findbar->find_text, "icon-release",
         G_CALLBACK (midori_findbar_entry_clear_icon_released_cb), findbar);
@@ -370,7 +370,7 @@ midori_findbar_search_text (MidoriFindbar* findbar,
     gboolean case_sensitive;
     gboolean highlight;
 
-    midori_findbar_set_icon (findbar, GTK_ICON_ENTRY_PRIMARY, found ? "edit-find" : "stop");
+    midori_findbar_set_icon (findbar, GTK_ICON_ENTRY_PRIMARY, found ? STOCK_EDIT_FIND : STOCK_STOP);
 
     if (typing)
     {