fix compiler warning
This commit is contained in:
8
gui.c
8
gui.c
@@ -361,7 +361,7 @@ GtkWidget *create_widget_container(EffectGroup *group, gint amt)
|
|||||||
gtk_combo_box_append_text(GTK_COMBO_BOX(combo_box), group[x].label);
|
gtk_combo_box_append_text(GTK_COMBO_BOX(combo_box), group[x].label);
|
||||||
cmbox_no++;
|
cmbox_no++;
|
||||||
|
|
||||||
if ((group[x].settings != NULL) && (group[x].settings > 0)) {
|
if ((group[x].settings != NULL) && (group[x].settings_amt > 0)) {
|
||||||
widget = create_table(group[x].settings, group[x].settings_amt, widget_table);
|
widget = create_table(group[x].settings, group[x].settings_amt, widget_table);
|
||||||
g_object_ref_sink(widget);
|
g_object_ref_sink(widget);
|
||||||
} else
|
} else
|
||||||
@@ -379,8 +379,10 @@ GtkWidget *create_widget_container(EffectGroup *group, gint amt)
|
|||||||
g_object_set_data_full(G_OBJECT(combo_box), name, settings, ((GDestroyNotify)effect_settings_group_free));
|
g_object_set_data_full(G_OBJECT(combo_box), name, settings, ((GDestroyNotify)effect_settings_group_free));
|
||||||
g_free(name);
|
g_free(name);
|
||||||
} else {
|
} else {
|
||||||
widget = create_table(group[x].settings, group[x].settings_amt, widget_table);
|
if ((group[x].settings != NULL) && (group[x].settings_amt > 0)) {
|
||||||
gtk_container_add(GTK_CONTAINER(vbox), widget);
|
widget = create_table(group[x].settings, group[x].settings_amt, widget_table);
|
||||||
|
gtk_container_add(GTK_CONTAINER(vbox), widget);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user