]> saetta.ns0.it Git - zakform/gtk/commitdiff
Bugfix: wrong value test. gvalue
authorAndrea Zagli <azagli@libero.it>
Sat, 3 Jun 2017 09:36:06 +0000 (11:36 +0200)
committerAndrea Zagli <azagli@libero.it>
Sat, 3 Jun 2017 09:36:06 +0000 (11:36 +0200)
src/formelementradio.c

index e6ddbdc4fc4298e2186e9525ec85db69408e9dc9..52b4c00a20c50b17622193fc0ca1ab5abe67d80a 100644 (file)
@@ -252,8 +252,8 @@ static GValue
        while (group != NULL)
                {
                        if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (group->data)))
-                               {
-                                       if ((gchar *)g_object_get_data (G_OBJECT (group->data), "return-value") == NULL)
+                               {;
+                                       if ((gchar *)g_object_get_data (G_OBJECT (group->data), "return-value") != NULL)
                                                {
                                                        g_value_set_string (ret, (gchar *)g_object_get_data (G_OBJECT (group->data), "return-value"));
                                                }