]> saetta.ns0.it Git - libgtkform/commitdiff
Bugfix to work on multiarch.
authorAndrea Zagli <azagli@libero.it>
Sun, 9 Sep 2012 10:10:54 +0000 (12:10 +0200)
committerAndrea Zagli <azagli@libero.it>
Sun, 9 Sep 2012 10:10:54 +0000 (12:10 +0200)
libgtkform/widgetcombobox.c

index 0e52d582e9edc6f9495dc768357f2ba0e53b6c57..9718ccb075e1b2253530db582045e4eb539eb860 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2005-2009 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2005-2012 Andrea Zagli <azagli@libero.it>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -176,7 +176,7 @@ gtk_form_widget_combo_box_set_value_stringify (GtkFormWidget *fwidget,
 
                                                        g_value_init (gvstr, G_TYPE_STRING);
                                                        g_value_transform (gvalue, gvstr);
-                                                       if (strcmp (g_value_get_string (gvstr), value) == 0)
+                                                       if (g_strcmp0 (g_value_get_string (gvstr), value) == 0)
                                                                {
                                                                        gtk_combo_box_set_active_iter (GTK_COMBO_BOX (w), &iter);
                                                                        break;