forked from AuroraMiddleware/gtk
EmojiChooser: Check the 1st button before 1st show
We scroll to the top in show() but only ever selected a button when the adjustment changed, which doesn’t happen in init(). Check it manually. https://bugzilla.gnome.org/show_bug.cgi?id=787172
This commit is contained in:
parent
fcae5e942f
commit
002a1d9c1c
@ -551,6 +551,9 @@ gtk_emoji_chooser_init (GtkEmojiChooser *chooser)
|
|||||||
|
|
||||||
populate_emoji_chooser (chooser);
|
populate_emoji_chooser (chooser);
|
||||||
populate_recent_section (chooser);
|
populate_recent_section (chooser);
|
||||||
|
|
||||||
|
/* We scroll to the top on show, so check the right button for the 1st time */
|
||||||
|
gtk_widget_set_state_flags (chooser->recent.button, GTK_STATE_FLAG_CHECKED, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user