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:
parent
cfdedf4e67
commit
9d7ff79a9a
@ -1466,7 +1466,8 @@ static void entry_clear_icon_release_cb(GtkEntry *entry, gint icon_pos,
|
|||||||
*/
|
*/
|
||||||
void ui_entry_add_clear_icon(GtkEntry *entry)
|
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);
|
g_signal_connect(entry, "icon-release", G_CALLBACK(entry_clear_icon_release_cb), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user