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:
Daniel Boles 2017-09-02 18:47:47 +01:00
parent 14d376a2a6
commit 02e310a1d5

View File

@ -589,6 +589,9 @@ gtk_emoji_chooser_init (GtkEmojiChooser *chooser)
populate_emoji_chooser (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