summaryrefslogtreecommitdiff
path: root/gtk/gtkpopover.h
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2015-01-09 16:10:29 +0100
committerCarlos Garnacho <carlosg@gnome.org>2015-02-20 14:44:17 +0100
commitcff1694c99227dbf0b52525d7436fc4771859e00 (patch)
treed371496dd2c56e97c33d739bf008f9fd1304e109 /gtk/gtkpopover.h
parent3a671994d4f4de61a48df6198353a188b7862baa (diff)
downloadgtk+-cff1694c99227dbf0b52525d7436fc4771859e00.tar.gz
popover: Add show/hide transitions
These have the same visual effect and timing than the gnome-shell ones. During the hide animation, the popover has been made to take focus elsewhere, and refuse to take any pointer/keyboard input until the popover is shown again. This has been based on work from Timm Bäder. https://bugzilla.gnome.org/show_bug.cgi?id=741405
Diffstat (limited to 'gtk/gtkpopover.h')
-rw-r--r--gtk/gtkpopover.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkpopover.h b/gtk/gtkpopover.h
index c96b97dbf3..21c47fa744 100644
--- a/gtk/gtkpopover.h
+++ b/gtk/gtkpopover.h
@@ -97,6 +97,12 @@ void gtk_popover_bind_model (GtkPopover *popover,
GMenuModel *model,
const gchar *action_namespace);
+GDK_AVAILABLE_IN_3_16
+void gtk_popover_set_transitions_enabled (GtkPopover *popover,
+ gboolean transitions_enabled);
+GDK_AVAILABLE_IN_3_16
+gboolean gtk_popover_get_transitions_enabled (GtkPopover *popover);
+
G_END_DECLS
#endif /* __GTK_POPOVER_H__ */