From ad40e52537a4aabc6cea8a3acc5df2524bbb3fe8 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Wed, 28 Mar 2012 15:02:03 +0000 Subject: [PATCH] Implementando processo de construção da janela principal, ajuste do nome da aplicação no gtk, etc. --- src/gtk/common/config.c | 28 ++++++++++++++-------------- src/gtk/globals.h | 29 +++++++++++++++++------------ src/gtk/main.c | 31 +++++++++++++++++++------------ src/gtk/mainwindow.c | 6 +++++- src/gtk/uiparser/parser.c | 8 ++++---- src/gtk/uiparser/parser.h | 8 ++++---- src/gtk/v3270/widget.c | 4 ++-- 7 files changed, 65 insertions(+), 49 deletions(-) diff --git a/src/gtk/common/config.c b/src/gtk/common/config.c index e707256..53a5ce8 100644 --- a/src/gtk/common/config.c +++ b/src/gtk/common/config.c @@ -43,12 +43,12 @@ #ifdef WIN_REGISTRY_ENABLED - static const gchar *registry_path = "SOFTWARE\\"PACKAGE_NAME; + static const gchar *registry_path = "SOFTWARE\\"; #else static GKeyFile * program_config = NULL; - static const gchar * mask = "%s" G_DIR_SEPARATOR_S PACKAGE_NAME ".conf"; + static const gchar * mask = "%s" G_DIR_SEPARATOR_S "%s.conf"; #endif // WIN_REGISTRY_ENABLED @@ -87,7 +87,7 @@ gchar * get_last_error_msg(void) { static HKEY predefined[] = { HKEY_CURRENT_USER, HKEY_USERS, HKEY_LOCAL_MACHINE }; int f; - gchar * path = g_strdup_printf("%s\\%s",registry_path,group); + gchar * path = g_strdup_printf("%s\\%s\\%s",registry_path,g_get_application_name(),group); for(f=0;f