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.
This commit is contained in:
Matthew Brush 2012-06-04 14:18:49 -07:00
parent cfdedf4e67
commit 9d7ff79a9a

View File

@ -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);
}