summaryrefslogtreecommitdiff
path: root/src/trg-preferences-dialog.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-10-07 18:55:01 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-10-07 18:55:01 +0000
commit429b32fba6f5ad14db31fe2690974b57df858999 (patch)
tree54970bd752b8dcf957d4a2db09be5678b79f9af4 /src/trg-preferences-dialog.c
parentc3bd3ac55162a88b308a6f700aad88d26cbd5f29 (diff)
make connect button a menu button with other profiles, also add a connection serial used to discard requests issued before a disconnect which get their callback invoked after a new one is established. add an experimental "repeater" flag on exec commands (eg. %{name}[, ]).
Diffstat (limited to 'src/trg-preferences-dialog.c')
-rw-r--r--src/trg-preferences-dialog.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/trg-preferences-dialog.c b/src/trg-preferences-dialog.c
index d56c15f..4b0cd57 100644
--- a/src/trg-preferences-dialog.c
+++ b/src/trg-preferences-dialog.c
@@ -466,13 +466,15 @@ static void trg_prefs_profile_combo_populate(TrgPreferencesDialog *dialog,
for (li = profiles; li; li = g_list_next(li)) {
JsonObject *profile = json_node_get_object((JsonNode*) li->data);
const gchar *name_value;
+ GtkTreeIter iter;
+
if (json_object_has_member(profile, TRG_PREFS_KEY_PROFILE_NAME)) {
name_value = json_object_get_string_member(profile,
TRG_PREFS_KEY_PROFILE_NAME);
} else {
name_value = _(TRG_PROFILE_NAME_DEFAULT);
}
- GtkTreeIter iter;
+
gtk_list_store_insert_with_values(store, &iter, INT_MAX, 0, profile, 1,
name_value, -1);
if (i == profile_id)