diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2014-02-04 20:46:06 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2014-02-04 21:29:25 +0100 |
commit | 6e88f1bcb000d78c62cc75d4f65362319a77fbcc (patch) | |
tree | b6efade12e6c60a651f14ae471c7eefb811de06b /gtk/gtkscalebutton.c | |
parent | 2d9c09d6c0621a0b9bd24e1054af4a8b31912935 (diff) | |
download | gtk+-6e88f1bcb000d78c62cc75d4f65362319a77fbcc.tar.gz |
scalebutton: Apply a shape on the popover
This hideous hack is necessary so far because the main users of
GtkScaleButton are also clutter users, so the GtkScaleButton popover
will be very likely shaped against a clutter-enabled native window.
https://bugzilla.gnome.org/show_bug.cgi?id=723556
Diffstat (limited to 'gtk/gtkscalebutton.c')
-rw-r--r-- | gtk/gtkscalebutton.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkscalebutton.c b/gtk/gtkscalebutton.c index e6de42ea95..d1bd058bf4 100644 --- a/gtk/gtkscalebutton.c +++ b/gtk/gtkscalebutton.c @@ -57,6 +57,7 @@ #include "gtktypebuiltins.h" #include "gtkintl.h" #include "a11y/gtkscalebuttonaccessible.h" +#include "gtkpopoverprivate.h" /** * SECTION:gtkscalebutton @@ -356,6 +357,9 @@ gtk_scale_button_init (GtkScaleButton *button) gtk_widget_init_template (GTK_WIDGET (button)); gtk_popover_set_relative_to (GTK_POPOVER (priv->dock), GTK_WIDGET (button)); + /* FIXME: to be removed when compositing over native windows is fixed */ + _gtk_popover_set_apply_shape (GTK_POPOVER (priv->dock), TRUE); + /* Need a local reference to the adjustment */ g_object_ref (priv->adjustment); |