diff options
author | William Hua <william.hua@canonical.com> | 2016-06-14 15:42:13 -0400 |
---|---|---|
committer | William Hua <william.hua@canonical.com> | 2016-07-19 09:38:54 -0400 |
commit | b03361366a936836e76ae10e1bc2a5dbcb7ce19e (patch) | |
tree | 11069bc57641efc3f5ad6a7b1cfea180eb6e6127 /gtk/gtkmenuprivate.h | |
parent | b3a530cb727c504923d047347b982a9fcd1490b7 (diff) | |
download | gtk+-b03361366a936836e76ae10e1bc2a5dbcb7ce19e.tar.gz |
gtkmenu: add gtk_menu_popup_at_* ()
Adds the following functions:
gtk_menu_popup_at_rect ()
gtk_menu_popup_at_widget ()
gtk_menu_popup_at_pointer ()
https://bugzilla.gnome.org/show_bug.cgi?id=756579
Diffstat (limited to 'gtk/gtkmenuprivate.h')
-rw-r--r-- | gtk/gtkmenuprivate.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gtk/gtkmenuprivate.h b/gtk/gtkmenuprivate.h index cb6ec25241..92c4de63c1 100644 --- a/gtk/gtkmenuprivate.h +++ b/gtk/gtkmenuprivate.h @@ -53,6 +53,16 @@ struct _GtkMenuPrivate gint position_x; gint position_y; + GdkWindow *rect_window; + GdkRectangle rect; + GtkWidget *widget; + GdkGravity rect_anchor; + GdkGravity menu_anchor; + GdkAnchorHints anchor_hints; + gint rect_anchor_dx; + gint rect_anchor_dy; + GdkWindowTypeHint menu_type_hint; + guint toggle_size; guint accel_size; @@ -130,6 +140,14 @@ struct _GtkMenuPrivate gint initial_drag_offset; }; +G_GNUC_INTERNAL +void gtk_menu_update_scroll_offset (GtkMenu *menu, + const GdkRectangle *flipped_rect, + const GdkRectangle *final_rect, + gboolean flipped_x, + gboolean flipped_y, + gpointer user_data); + G_END_DECLS #endif /* __GTK_MENU_PRIVATE_H__ */ |