116 |
else |
else |
117 |
bandcopy = g_strdup(finddot (entry)); |
bandcopy = g_strdup(finddot (entry)); |
118 |
for (;;) |
for (;;) |
119 |
|
{ |
120 |
|
if (!bandsplit[bandindex]) |
121 |
|
break; |
122 |
|
if (g_ascii_strcasecmp (bandcopy, bandsplit[bandindex]) == 0) |
123 |
{ |
{ |
124 |
if (!bandsplit[bandindex]) |
gtk_combo_box_set_active (GTK_COMBO_BOX (bandoptionmenu), |
125 |
break; |
bandindex); |
126 |
if (g_ascii_strcasecmp (bandcopy, bandsplit[bandindex]) == 0) |
break; |
|
{ |
|
|
gtk_option_menu_set_history (GTK_OPTION_MENU (bandoptionmenu), bandindex); |
|
|
break; |
|
|
} |
|
|
bandindex++; |
|
127 |
} |
} |
128 |
|
bandindex++; |
129 |
|
} |
130 |
g_free (bandcopy); |
g_free (bandcopy); |
131 |
|
|
132 |
/* update modeoptionmenu and entry */ |
/* update modeoptionmenu and entry */ |
135 |
|
|
136 |
modesplit = g_strsplit (preferences.modes, ",", 0); |
modesplit = g_strsplit (preferences.modes, ",", 0); |
137 |
for (;;) |
for (;;) |
138 |
{ |
{ |
139 |
if (!modesplit[modeindex]) |
if (!modesplit[modeindex]) |
140 |
|
break; |
141 |
|
if (g_ascii_strcasecmp (entry, modesplit[modeindex]) == 0) |
142 |
|
{ |
143 |
|
gtk_combo_box_set_active (GTK_COMBO_BOX (modeoptionmenu), |
144 |
|
modeindex); |
145 |
break; |
break; |
146 |
if (g_ascii_strcasecmp (entry, modesplit[modeindex]) == 0) |
} |
147 |
{ |
modeindex++; |
148 |
gtk_option_menu_set_history (GTK_OPTION_MENU (modeoptionmenu), modeindex); |
} |
|
break; |
|
|
} |
|
|
modeindex++; |
|
|
} |
|
149 |
|
|
150 |
gtk_tree_model_get (model, &iter, POWER, &entry, -1); |
gtk_tree_model_get (model, &iter, POWER, &entry, -1); |
151 |
gtk_entry_set_text (GTK_ENTRY (powerentry), entry); |
gtk_entry_set_text (GTK_ENTRY (powerentry), entry); |