all repos — tint2 @ 1eed78c2067bcf9817cf8727b0faad3a4a4c3881

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

fixed : config file use . as decimal separator even when LOCALE is different

git-svn-id: http://tint2.googlecode.com/svn/trunk@445 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
thilor77 thilor77@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

1eed78c2067bcf9817cf8727b0faad3a4a4c3881

parent

721ed289ba1c019e58678d8a337046a9d16e8063

2 files changed, 7 insertions(+), 4 deletions(-)

jump to
M src/tint.csrc/tint.c

@@ -130,6 +130,8 @@ /* Catch events */

XSelectInput (server.dsp, server.root_win, PropertyChangeMask|StructureNotifyMask); setlocale (LC_ALL, ""); + // config file use '.' as decimal separator + setlocale(LC_NUMERIC, "POSIX"); // load default icon gchar *path;
M src/tint2conf/main.csrc/tint2conf/main.c

@@ -32,6 +32,7 @@ #include "../version.h"

#include "common.h" #include "theme_view.h" +#define SNAPSHOT_TICK 190 // default config file and directory

@@ -261,7 +262,7 @@ gtk_widget_destroy(dialog);

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 @@ if (gtk_tree_selection_get_selected(GTK_TREE_SELECTION(sel), &model, &iter)) {

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 @@ gtk_list_store_set(g_store, &iter, COL_SNAPSHOT, NULL, -1);

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 @@ }

selectTheme(g_default_theme); - g_timeout_add(100, (GSourceFunc)update_snapshot, NULL); + g_timeout_add(SNAPSHOT_TICK, (GSourceFunc)update_snapshot, NULL); }