From 9d7ff79a9a4a1e8640847c062ac085a8944e6de2 Mon Sep 17 00:00:00 2001 From: Matthew Brush Date: Mon, 4 Jun 2012 14:18:49 -0700 Subject: [PATCH] Restore secondary clear icon functionality in Preferences dialog Ensures all entries that get a clear icon added to the secondary position also set the secondary icon to be activatable. This was probably introducted during the Glade switch and could be fixed in the Glade file but this fix ensures that even hard coded entries will always have their clear icon activatable. --- src/ui_utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui_utils.c b/src/ui_utils.c index f8d6b7405..6ca42736e 100644 --- a/src/ui_utils.c +++ b/src/ui_utils.c @@ -1466,7 +1466,8 @@ static void entry_clear_icon_release_cb(GtkEntry *entry, gint icon_pos, */ void ui_entry_add_clear_icon(GtkEntry *entry) { - g_object_set(entry, "secondary-icon-stock", GTK_STOCK_CLEAR, NULL); + g_object_set(entry, "secondary-icon-stock", GTK_STOCK_CLEAR, + "secondary-icon-activatable", TRUE, NULL); g_signal_connect(entry, "icon-release", G_CALLBACK(entry_clear_icon_release_cb), NULL); } -- 2.11.4.GIT