summaryrefslogtreecommitdiff
path: root/gtk/gtkscalebutton.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2016-08-10 19:18:27 +0200
committerMatthias Clasen <mclasen@redhat.com>2016-08-16 11:49:26 -0400
commita985e62b25132c7f0043fa1073e371f19bbef4c5 (patch)
tree5d0ce4a730e6fa83716cb3abb623e5eaeb3db785 /gtk/gtkscalebutton.c
parenta6b9b3648da6271dbd38840aef69dea20b013066 (diff)
downloadgtk+-a985e62b25132c7f0043fa1073e371f19bbef4c5.tar.gz
Use gtk_popover_popdown/popup where appropriate
https://bugzilla.gnome.org/show_bug.cgi?id=769706
Diffstat (limited to 'gtk/gtkscalebutton.c')
-rw-r--r--gtk/gtkscalebutton.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkscalebutton.c b/gtk/gtkscalebutton.c
index cdca312c3f..78204e2030 100644
--- a/gtk/gtkscalebutton.c
+++ b/gtk/gtkscalebutton.c
@@ -824,7 +824,7 @@ gtk_scale_popup (GtkWidget *widget)
gint w, h;
gint size;
- gtk_widget_show (priv->dock);
+ gtk_popover_popup (GTK_POPOVER (priv->dock));
toplevel = gtk_widget_get_toplevel (widget);
_gtk_window_get_shadow_width (GTK_WINDOW (toplevel), &border);
@@ -849,7 +849,7 @@ gtk_scale_button_popdown (GtkWidget *widget)
GtkScaleButton *button = GTK_SCALE_BUTTON (widget);
GtkScaleButtonPrivate *priv = button->priv;
- gtk_widget_hide (priv->dock);
+ gtk_popover_popdown (GTK_POPOVER (priv->dock));
}
static void