Support for RP1000

1) Add missing support for DELAY_TAP_TIME, DELAY_MULTIPLIER, and
   AMP_LOOP_ON_OFF.

2) Add a warning when get_modifier() fails.

3) In update_modifier_linkable_list(), set label to "Unknown" when
   the lookup of a modfier fails.

4) In format ipv(), the warning message that's emitted if get_xml_settings()
   fails reversed position and id.

5) In update_modifier_vbox(), remove the assert that the group label is not
   null. Set the combo box text to "Unknown".
This commit is contained in:
Tim LaBerge
2013-12-25 13:52:15 -08:00
parent dfec60e7b4
commit f1aa3665ed
3 changed files with 28 additions and 4 deletions

8
gui.c
View File

@@ -757,7 +757,6 @@ static void update_modifier_vbox(GtkWidget *vbox, GObject *combo_box, gint id, g
for (x = 0; x<amt; x++) {
gchar *name;
g_assert(group[x].label);
settings = g_slice_new(EffectSettingsGroup);
settings->id = id;
@@ -779,7 +778,12 @@ static void update_modifier_vbox(GtkWidget *vbox, GObject *combo_box, gint id, g
g_object_set_data(G_OBJECT(combo_box), name, settings);
g_free(name);
gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(combo_box), group[x].label);
if (group[x].label) {
gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(combo_box), group[x].label);
} else {
// If a device is not fully supported, mark the effect as unknown.
gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(combo_box), "unknown");
}
widget_tree_add(combo_box, id, position, group[x].type, x);
}