]> Dogcows Code - chaz/tint2/blobdiff - src/tint2conf/main.c
use tintwizard and format sample files with tintwizard
[chaz/tint2] / src / tint2conf / main.c
index 6e283539e75bea85b01be2f24b3e8da55ab0aff0..aa1f343b6bf3400c2eea7133e80305e878bace34 100644 (file)
@@ -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("python /usr/bin/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);
 }
 
 
This page took 0.02384 seconds and 4 git commands to generate.