diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-02-17 06:50:25 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-02-17 06:52:38 -0500 |
commit | 72e2094472e1183c1d2c7f7b88c778bbd9f5823f (patch) | |
tree | daa4851f69bad13a4fd2d8900257d3133c2c29bc /gtk | |
parent | fc19d02b992a92de9c1b525a540b16592ba14f2b (diff) | |
download | gtk+-72e2094472e1183c1d2c7f7b88c778bbd9f5823f.tar.gz |
Drop with_separators from gtk_popover_bind_model
The with_separators argument does not really make sense
for popovers, it was just copied from the menu implementation.
Drop it now, before it becomes part of the public API.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkpopover.c | 18 | ||||
-rw-r--r-- | gtk/gtkpopover.h | 3 |
2 files changed, 5 insertions, 16 deletions
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c index 3c56cbbd66..05a8380c1b 100644 --- a/gtk/gtkpopover.c +++ b/gtk/gtkpopover.c @@ -2054,8 +2054,6 @@ back_to_main (GtkWidget *popover) * @model: (allow-none): the #GMenuModel to bind to or %NULL to remove * binding * @action_namespace: (allow-none): the namespace for actions in @model - * @with_separators: %TRUE if toplevel items in @popover should have - * separators between them * * Establishes a binding between a #GtkPopover and a #GMenuModel. * @@ -2066,13 +2064,6 @@ back_to_main (GtkWidget *popover) * model. If @model is %NULL then any previous binding is undone and * all children are removed. * - * Individual items in @model are represented by #GtkModelButton widgets, - * while submenus are represented by #GtkStack widgets. - * - * @with_separators determines if toplevel items (eg: sections) have - * separators inserted between them. This is typically desired for - * menus but doesn’t make sense for menubars. - * * If @action_namespace is non-%NULL then the effect is as if all * actions mentioned in the @model have their names prefixed with the * namespace, plus a dot. For example, if the action “quit” is @@ -2094,8 +2085,7 @@ back_to_main (GtkWidget *popover) void gtk_popover_bind_model (GtkPopover *popover, GMenuModel *model, - const gchar *action_namespace, - gboolean with_separators) + const gchar *action_namespace) { GtkActionMuxer *muxer; GtkWidget *child; @@ -2138,7 +2128,7 @@ gtk_popover_bind_model (GtkPopover *popover, priv->tracker = gtk_menu_tracker_new (GTK_ACTION_OBSERVABLE (muxer), model, - with_separators, + TRUE, action_namespace, gtk_popover_tracker_insert_func, gtk_popover_tracker_remove_func, @@ -2152,7 +2142,7 @@ gtk_popover_bind_model (GtkPopover *popover, * @model: a #GMenuModel * * Creates a #GtkPopover and populates it according to - * @model. The popover is pointed to the @relative_to wideget. + * @model. The popover is pointed to the @relative_to widget. * * The created buttons are connected to actions found in the * #GtkApplicationWindow to which the popover belongs - typically @@ -2175,7 +2165,7 @@ gtk_popover_new_from_model (GtkWidget *relative_to, g_return_val_if_fail (G_IS_MENU_MODEL (model), NULL); popover = gtk_popover_new (relative_to); - gtk_popover_bind_model (GTK_POPOVER (popover), model, NULL, TRUE); + gtk_popover_bind_model (GTK_POPOVER (popover), model, NULL); return popover; } diff --git a/gtk/gtkpopover.h b/gtk/gtkpopover.h index 68f4b5b723..d4baf8270f 100644 --- a/gtk/gtkpopover.h +++ b/gtk/gtkpopover.h @@ -95,8 +95,7 @@ gboolean gtk_popover_get_modal (GtkPopover *popover); GDK_AVAILABLE_IN_3_12 void gtk_popover_bind_model (GtkPopover *popover, GMenuModel *model, - const gchar *action_namespace, - gboolean with_separators); + const gchar *action_namespace); G_END_DECLS |