#include "common.h"
#include "theme_view.h"
+#define SNAPSHOT_TICK 190
// default config file and directory
selectTheme(name_first);
g_free(name_first);
- g_timeout_add(100, (GSourceFunc)update_snapshot, NULL);
+ g_timeout_add(SNAPSHOT_TICK, (GSourceFunc)update_snapshot, NULL);
}
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);
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);
}
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);
}
selectTheme(g_default_theme);
- g_timeout_add(100, (GSourceFunc)update_snapshot, NULL);
+ g_timeout_add(SNAPSHOT_TICK, (GSourceFunc)update_snapshot, NULL);
}