summaryrefslogtreecommitdiff
path: root/gtk/gtkgridview.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-09-01 12:24:06 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-09-01 12:24:06 -0400
commitb628338db3e0bb4c906424294e4e988d45ed26f3 (patch)
treec1f5c407a2ff107c2fc43fe33d74b75d74a2bc2e /gtk/gtkgridview.h
parent7051fdee5da136c5c779bf8c1d9f1b3369eb30fb (diff)
downloadgtk+-b628338db3e0bb4c906424294e4e988d45ed26f3.tar.gz
list widgets: Simplify the constructors
Now that both arguments to the _new_with_factory() constructors are nullable, there's no good reason to keep a separate _new() around. Just make gtk_list_view_new() and gtk_grid_view_new() take both a model and a factory.
Diffstat (limited to 'gtk/gtkgridview.h')
-rw-r--r--gtk/gtkgridview.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkgridview.h b/gtk/gtkgridview.h
index 4dd6b067bd..629a8db7ff 100644
--- a/gtk/gtkgridview.h
+++ b/gtk/gtkgridview.h
@@ -48,9 +48,7 @@ GDK_AVAILABLE_IN_ALL
GType gtk_grid_view_get_type (void) G_GNUC_CONST;
GDK_AVAILABLE_IN_ALL
-GtkWidget * gtk_grid_view_new (GtkSelectionModel *model);
-GDK_AVAILABLE_IN_ALL
-GtkWidget * gtk_grid_view_new_with_factory (GtkSelectionModel *model,
+GtkWidget * gtk_grid_view_new (GtkSelectionModel *model,
GtkListItemFactory *factory);
GDK_AVAILABLE_IN_ALL