[gnome-control-center] common: Fix gtk_tree_model_get_iter_first() retval
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] common: Fix gtk_tree_model_get_iter_first() retval
- Date: Wed, 27 May 2015 09:06:24 +0000 (UTC)
commit 41bb1a6ff21d91a5229983e51bd25a8e50feefa7
Author: Bastien Nocera <hadess hadess net>
Date: Tue May 26 13:21:07 2015 +0200
common: Fix gtk_tree_model_get_iter_first() retval
https://bugzilla.gnome.org/show_bug.cgi?id=749892
panels/common/cc-common-language.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/common/cc-common-language.c b/panels/common/cc-common-language.c
index 9d68ef2..028213a 100644
--- a/panels/common/cc-common-language.c
+++ b/panels/common/cc-common-language.c
@@ -46,7 +46,7 @@ iter_for_language (GtkTreeModel *model,
char *name;
char *language;
- gtk_tree_model_get_iter_first (model, iter);
+ g_assert (gtk_tree_model_get_iter_first (model, iter));
do {
gtk_tree_model_get (model, iter, LOCALE_COL, &l, -1);
if (g_strcmp0 (l, lang) == 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]