[gtk/wip/otte/listview] Fix up selection constructor return types
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/listview] Fix up selection constructor return types
- Date: Sat, 5 Jan 2019 23:55:20 +0000 (UTC)
commit c97f62a47177b3be3fccd6f32f3b899d1e411c07
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jan 5 18:54:05 2019 -0500
Fix up selection constructor return types
Follow the pattern we use for the other list model
types, and return the exact type.
gtk/gtkmultiselection.c | 2 +-
gtk/gtkmultiselection.h | 2 +-
gtk/gtknoselection.c | 2 +-
gtk/gtknoselection.h | 2 +-
gtk/gtksingleselection.c | 2 +-
gtk/gtksingleselection.h | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkmultiselection.c b/gtk/gtkmultiselection.c
index 5b085a248a..b4db84d1b5 100644
--- a/gtk/gtkmultiselection.c
+++ b/gtk/gtkmultiselection.c
@@ -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);
diff --git a/gtk/gtkmultiselection.h b/gtk/gtkmultiselection.h
index cca0dc62d2..d799d0920e 100644
--- a/gtk/gtkmultiselection.h
+++ b/gtk/gtkmultiselection.h
@@ -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
diff --git a/gtk/gtknoselection.c b/gtk/gtknoselection.c
index 05b0819ef6..adfdb7737b 100644
--- a/gtk/gtknoselection.c
+++ b/gtk/gtknoselection.c
@@ -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);
diff --git a/gtk/gtknoselection.h b/gtk/gtknoselection.h
index 5521f2b721..1e51247136 100644
--- a/gtk/gtknoselection.h
+++ b/gtk/gtknoselection.h
@@ -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
diff --git a/gtk/gtksingleselection.c b/gtk/gtksingleselection.c
index 99ef1d9576..8141bb7f82 100644
--- a/gtk/gtksingleselection.c
+++ b/gtk/gtksingleselection.c
@@ -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);
diff --git a/gtk/gtksingleselection.h b/gtk/gtksingleselection.h
index 27f1920dd3..425a4996e4 100644
--- a/gtk/gtksingleselection.h
+++ b/gtk/gtksingleselection.h
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]