[gedit] Use symbolic icons for the search popup.



commit aa74337db37d2bf51a9678f188759e3e794888ed
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Sep 5 20:58:19 2011 +0200

    Use symbolic icons for the search popup.

 gedit/gedit-view-frame.c |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/gedit/gedit-view-frame.c b/gedit/gedit-view-frame.c
index 9bdd719..609759d 100644
--- a/gedit/gedit-view-frame.c
+++ b/gedit/gedit-view-frame.c
@@ -892,24 +892,28 @@ completion_func (GtkEntryCompletion *completion,
 static void
 customize_for_search_mode (GeditViewFrame *frame)
 {
+	GIcon *icon;
+
 	if (frame->priv->search_mode == SEARCH)
 	{
-		gtk_entry_set_icon_from_stock (GTK_ENTRY (frame->priv->search_entry),
-		                               GTK_ENTRY_ICON_PRIMARY,
-		                               GTK_STOCK_FIND);
+		icon = g_themed_icon_new_with_default_fallbacks ("edit-find-symbolic");
 
 		gtk_widget_set_tooltip_text (frame->priv->search_entry,
 		                             _("String you want to search for"));
 	}
 	else
 	{
-		gtk_entry_set_icon_from_stock (GTK_ENTRY (frame->priv->search_entry),
-		                               GTK_ENTRY_ICON_PRIMARY,
-		                               GTK_STOCK_JUMP_TO);
+		icon = g_themed_icon_new_with_default_fallbacks ("go-jump-symbolic");
 
 		gtk_widget_set_tooltip_text (frame->priv->search_entry,
 		                             _("Line you want to move the cursor to"));
 	}
+
+	gtk_entry_set_icon_from_gicon (GTK_ENTRY (frame->priv->search_entry),
+	                               GTK_ENTRY_ICON_PRIMARY,
+	                               icon);
+
+	g_object_unref (icon);
 }
 
 static void



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