[gtk/stringlist] fixup! dropdown: Use GtkStringList
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/stringlist] fixup! dropdown: Use GtkStringList
- Date: Tue, 23 Jun 2020 01:56:21 +0000 (UTC)
commit f85e2983721828a704a8e317524f909158cbce9f
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jun 22 21:54:16 2020 -0400
fixup! dropdown: Use GtkStringList
adapt to api changes
gtk/gtkdropdown.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkdropdown.c b/gtk/gtkdropdown.c
index 0e8f4a5a2b..3e8cbff0fe 100644
--- a/gtk/gtkdropdown.c
+++ b/gtk/gtkdropdown.c
@@ -580,7 +580,7 @@ bind_item (GtkSignalListItemFactory *factory,
if (self->expression == NULL)
{
- g_critical ("Either GtkDropDown::factory or GtkDropDown::expression must be set");
+ g_critical ("Either GtkDropDown:factory or GtkDropDown:expression must be set");
return;
}
@@ -968,7 +968,7 @@ gtk_drop_down_set_from_strings (GtkDropDown *self,
gtk_drop_down_set_expression (self, expression);
gtk_expression_unref (expression);
- model = G_LIST_MODEL (gtk_string_list_new (texts, -1));
+ model = G_LIST_MODEL (gtk_string_list_new_from_strv ((const char **)texts));
gtk_drop_down_set_model (self, model);
g_object_unref (model);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]