X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;ds=inline;f=src%2Ftint2conf%2Fmain.c;h=bb6f509f6322fae12816ce1afe132d4eee953b83;hb=a5e1fb6d51a4eac007571b88f0421022e21c3500;hp=6e283539e75bea85b01be2f24b3e8da55ab0aff0;hpb=3fe84f48719226f0b23390df15c62eafbf7ed15c;p=chaz%2Ftint2 diff --git a/src/tint2conf/main.c b/src/tint2conf/main.c index 6e28353..bb6f509 100644 --- a/src/tint2conf/main.c +++ b/src/tint2conf/main.c @@ -32,6 +32,7 @@ #include "common.h" #include "theme_view.h" +#define SNAPSHOT_TICK 190 // default config file and directory @@ -261,7 +262,7 @@ static void menuAdd() selectTheme(name_first); g_free(name_first); - g_timeout_add(100, (GSourceFunc)update_snapshot, NULL); + g_timeout_add(SNAPSHOT_TICK, (GSourceFunc)update_snapshot, NULL); } @@ -336,7 +337,8 @@ static void menuProperties() if (gtk_tree_selection_get_selected(GTK_TREE_SELECTION(sel), &model, &iter)) { gtk_tree_model_get(model, &iter, COL_THEME_FILE, &file, -1); - cmd = g_strdup_printf("gedit \'%s\' &", file); + //cmd = g_strdup_printf("gedit \'%s\' &", file); + cmd = g_strdup_printf("tintwizard.py \'%s\' &", file); system(cmd); g_free(cmd); @@ -371,7 +373,7 @@ static void menuRefresh() gtk_list_store_set(g_store, &iter, COL_SNAPSHOT, NULL, -1); } - g_timeout_add(100, (GSourceFunc)update_snapshot, NULL); + g_timeout_add(SNAPSHOT_TICK, (GSourceFunc)update_snapshot, NULL); } @@ -388,7 +390,7 @@ static void menuRefreshAll() have_iter = gtk_tree_model_iter_next(model, &iter); } - g_timeout_add(100, (GSourceFunc)update_snapshot, NULL); + g_timeout_add(SNAPSHOT_TICK, (GSourceFunc)update_snapshot, NULL); } @@ -502,7 +504,7 @@ static void load_theme(GtkWidget *list) selectTheme(g_default_theme); - g_timeout_add(100, (GSourceFunc)update_snapshot, NULL); + g_timeout_add(SNAPSHOT_TICK, (GSourceFunc)update_snapshot, NULL); }