Fix up selection constructor return types

Follow the pattern we use for the other list model
types, and return the exact type.
This commit is contained in:
Matthias Clasen
2019-01-05 18:54:05 -05:00
parent 135a875c25
commit c97f62a471
6 changed files with 6 additions and 6 deletions

View File

@@ -317,7 +317,7 @@ gtk_multi_selection_init (GtkMultiSelection *self)
*
* Returns: (transfer full) (type GtkMultiSelection): a new #GtkMultiSelection
**/
GListModel *
GtkMultiSelection *
gtk_multi_selection_new (GListModel *model)
{
g_return_val_if_fail (G_IS_LIST_MODEL (model), NULL);

View File

@@ -30,7 +30,7 @@ GDK_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (GtkMultiSelection, gtk_multi_selection, GTK, MULTI_SELECTION, GObject)
GDK_AVAILABLE_IN_ALL
GListModel * gtk_multi_selection_new (GListModel *model);
GtkMultiSelection * gtk_multi_selection_new (GListModel *model);
G_END_DECLS

View File

@@ -205,7 +205,7 @@ gtk_no_selection_init (GtkNoSelection *self)
*
* Returns: (transfer full) (type GtkNoSelection): a new #GtkNoSelection
**/
GListModel *
GtkNoSelection *
gtk_no_selection_new (GListModel *model)
{
g_return_val_if_fail (G_IS_LIST_MODEL (model), NULL);

View File

@@ -30,7 +30,7 @@ GDK_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (GtkNoSelection, gtk_no_selection, GTK, NO_SELECTION, GObject)
GDK_AVAILABLE_IN_ALL
GListModel * gtk_no_selection_new (GListModel *model);
GtkNoSelection * gtk_no_selection_new (GListModel *model);
G_END_DECLS

View File

@@ -403,7 +403,7 @@ gtk_single_selection_init (GtkSingleSelection *self)
*
* Returns: (transfer full) (type GtkSingleSelection): a new #GtkSingleSelection
**/
GListModel *
GtkSingleSelection *
gtk_single_selection_new (GListModel *model)
{
g_return_val_if_fail (G_IS_LIST_MODEL (model), NULL);

View File

@@ -42,7 +42,7 @@ GDK_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (GtkSingleSelection, gtk_single_selection, GTK, SINGLE_SELECTION, GObject)
GDK_AVAILABLE_IN_ALL
GListModel * gtk_single_selection_new (GListModel *model);
GtkSingleSelection * gtk_single_selection_new (GListModel *model);
GDK_AVAILABLE_IN_ALL
guint gtk_single_selection_get_selected (GtkSingleSelection *self);