[gtk+] emoji-chooser: fix subsequent scroll
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] emoji-chooser: fix subsequent scroll
- Date: Fri, 1 Sep 2017 23:37:10 +0000 (UTC)
commit 18adee6e1b2f0b913c55c4d436968ff5b2cb6c03
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Wed Aug 30 23:25:59 2017 +0530
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
gtk/gtkemojichooser.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkemojichooser.c b/gtk/gtkemojichooser.c
index c0f6d7a..9357468 100644
--- a/gtk/gtkemojichooser.c
+++ b/gtk/gtkemojichooser.c
@@ -559,12 +559,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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]