X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Ftint2conf%2Fmain.c;h=71570670b5f3e244a53762ebdebfebfd2d8d8064;hb=e60185261b8062abd573220878a7b9ff9aabda4b;hp=6e283539e75bea85b01be2f24b3e8da55ab0aff0;hpb=350abde2b1c72e4b580a34ca1f0ff2380d9ea419;p=chaz%2Ftint2 diff --git a/src/tint2conf/main.c b/src/tint2conf/main.c index 6e28353..7157067 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); } @@ -371,7 +372,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 +389,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 +503,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); }