summaryrefslogtreecommitdiff
path: root/gtk/gtkpopover.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-12-01 14:56:56 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-12-01 17:26:25 -0500
commite626038467f2d10db56e0c193e293e0108c5a255 (patch)
tree1d5f302a50fd0b10d75b3505c3b893bd2067b6eb /gtk/gtkpopover.h
parent5dcf4e10b7769119651151dc8a598f3286064857 (diff)
downloadgtk+-e626038467f2d10db56e0c193e293e0108c5a255.tar.gz
popover: Make it possible to constrain to toplevel
Under X11, popovers are always constrained to the toplevel window. Under Wayland, they aren't. This commit adds a property that allows to explicitly constrain popovers to the toplevel, giving them the same behavior under Wayland as under X11. https://bugzilla.gnome.org/show_bug.cgi?id=757474
Diffstat (limited to 'gtk/gtkpopover.h')
-rw-r--r--gtk/gtkpopover.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkpopover.h b/gtk/gtkpopover.h
index f226bb2d4c..61bcd92703 100644
--- a/gtk/gtkpopover.h
+++ b/gtk/gtkpopover.h
@@ -109,6 +109,13 @@ void gtk_popover_set_default_widget (GtkPopover *popover,
GDK_AVAILABLE_IN_3_18
GtkWidget * gtk_popover_get_default_widget (GtkPopover *popover);
+GDK_AVAILABLE_IN_3_20
+void gtk_popover_set_constrain_to (GtkPopover *popover,
+ GtkPopoverConstraint constraint);
+
+GDK_AVAILABLE_IN_3_20
+GtkPopoverConstraint gtk_popover_get_constrain_to (GtkPopover *popover);
+
G_END_DECLS
#endif /* __GTK_POPOVER_H__ */