emoji-chooser: fix subsequent scroll

Event handlers on scroll window should only be run once the widget
is shown.

https://bugzilla.gnome.org/show_bug.cgi?id=786964
This commit is contained in:
Mohammed Sadiq
2017-08-30 23:25:59 +05:30
committed by Matthias Clasen
parent 38b8b3ce1d
commit 8d0dc64e61

View File

@ -597,12 +597,12 @@ gtk_emoji_chooser_show (GtkWidget *widget)
GtkEmojiChooser *chooser = GTK_EMOJI_CHOOSER (widget);
GtkAdjustment *adj;
GTK_WIDGET_CLASS (gtk_emoji_chooser_parent_class)->show (widget);
adj = gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (chooser->scrolled_window));
gtk_adjustment_set_value (adj, 0);
gtk_entry_set_text (GTK_ENTRY (chooser->search_entry), "");
GTK_WIDGET_CLASS (gtk_emoji_chooser_parent_class)->show (widget);
}
static void