X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Ftint2;a=blobdiff_plain;f=src%2Ftint2conf%2Fmain.c;h=ee5fa71ac0a6dc07c1969a4983eb2cab43d2a0a0;hp=c22862d1468b510188505de55312e527de689bd4;hb=b0daed8dd52ebaa40fa993e5b9f23c823937c120;hpb=7581b58aa3fe8d11051444b4d3edb3f7a60ad1e8 diff --git a/src/tint2conf/main.c b/src/tint2conf/main.c index c22862d..ee5fa71 100644 --- a/src/tint2conf/main.c +++ b/src/tint2conf/main.c @@ -24,6 +24,7 @@ #include "common.h" #include "theme_view.h" #include "properties.h" +#include "properties_rw.h" #define SNAPSHOT_TICK 190 @@ -76,27 +77,27 @@ static const char *global_ui = " " " " " " -// " " -// " " + " " + " " " " " " " " " " " " " " -// " " -// " " + " " + " " " " " " " " " " " " " " -// " " + " " " " " " " " -// " " + " " " " " " " " @@ -134,6 +135,9 @@ int main (int argc, char ** argv) initTheme(); g_set_application_name (_("tint2conf")); gtk_window_set_default_icon_name("taskbar"); + + // config file use '.' as decimal separator + setlocale(LC_NUMERIC, "POSIX"); // define main layout : container, menubar, toolbar g_window = gtk_window_new (GTK_WINDOW_TOPLEVEL); @@ -335,6 +339,7 @@ static void menuProperties() //* GtkWidget *prop; prop = create_properties(); + config_read_file(file); gtk_window_present(GTK_WINDOW(prop)); //printf("menuProperties : fin\n"); //*/