diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-06-07 17:05:48 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-06-09 17:38:54 +0000 |
commit | 609f1659bd6d6095bae89c2fabd5076a6220ad4e (patch) | |
tree | de9e068a31c2ea77f8af75bd9ad8f29a43aead90 /gtk/gtkpopovermenu.h | |
parent | 724f315ae60e8e202133860755fdf558aa62f811 (diff) | |
download | gtk+-609f1659bd6d6095bae89c2fabd5076a6220ad4e.tar.gz |
Rationalize popover menu apis
Make gtk_popover_new_from_model() return a GtkPopoverMenu,
rename it to gtk_popover_menu_new_from_model() and add
a relative_to argument to gtk_popover_menu_new().
Update all callers.
Diffstat (limited to 'gtk/gtkpopovermenu.h')
-rw-r--r-- | gtk/gtkpopovermenu.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkpopovermenu.h b/gtk/gtkpopovermenu.h index e49bbd25f1..143a190b70 100644 --- a/gtk/gtkpopovermenu.h +++ b/gtk/gtkpopovermenu.h @@ -36,7 +36,11 @@ GDK_AVAILABLE_IN_ALL GType gtk_popover_menu_get_type (void) G_GNUC_CONST; GDK_AVAILABLE_IN_ALL -GtkWidget * gtk_popover_menu_new (void); +GtkWidget * gtk_popover_menu_new (GtkWidget *relative_to); + +GDK_AVAILABLE_IN_ALL +GtkWidget * gtk_popover_menu_new_from_model (GtkWidget *relative_to, + GMenuModel *model); GDK_AVAILABLE_IN_ALL void gtk_popover_menu_add_submenu (GtkPopoverMenu *popover, |