Browse files

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.
  • Loading branch information...
codebrainz committed Jun 4, 2012
1 parent cfdedf4 commit 9d7ff79a9a4a1e8640847c062ac085a8944e6de2
Showing with 2 additions and 1 deletion.
  1. +2 −1 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);

0 comments on commit 9d7ff79

Please sign in to comment.