diff --git a/Makefile.in b/Makefile.in index 1b26511..6653d33 100644 --- a/Makefile.in +++ b/Makefile.in @@ -226,8 +226,7 @@ Debug: \ $(BINDBG)/$(PACKAGE_NAME)@EXEEXT@ $(BINDBG)/$(PACKAGE_NAME)@EXEEXT@: \ - $(foreach SRC, $(basename $(SOURCES)), $(OBJDBG)/$(SRC).o) \ - gschemas.compiled + $(foreach SRC, $(basename $(SOURCES)), $(OBJDBG)/$(SRC).o) @$(MKDIR) $(@D) @echo $< ... @@ -238,7 +237,8 @@ $(BINDBG)/$(PACKAGE_NAME)@EXEEXT@: \ $(LIBS) run: \ - $(BINDBG)/$(PACKAGE_NAME)@EXEEXT@ + $(BINDBG)/$(PACKAGE_NAME)@EXEEXT@ \ + gschemas.compiled @LD_LIBRARY_PATH=$(BINDBG) \ $(BINDBG)/$(PACKAGE_NAME)@EXEEXT@ diff --git a/schemas/application.gschema.xml b/schemas/application.gschema.xml index 6e104e1..9b71833 100644 --- a/schemas/application.gschema.xml +++ b/schemas/application.gschema.xml @@ -1,14 +1,19 @@ + + + - + - - false - Enable something - Enables something important in the application - + + 1 + UI Style + The ID of the current user interface style + - + - diff --git a/src/main/main.c b/src/main/main.c index 323719c..4e432bb 100644 --- a/src/main/main.c +++ b/src/main/main.c @@ -48,12 +48,29 @@ int main (int argc, char **argv) { #ifdef DEBUG { GError * error = NULL; - GSettingsSchemaSource * source = g_settings_schema_source_new_from_directory(".",NULL,TRUE,&error); + GSettingsSchemaSource * source = + g_settings_schema_source_new_from_directory( + ".", + NULL, + TRUE, + &error + ); - if(!source && error) { - g_error(error->message); - } + g_assert_no_error(error); + GSettingsSchema * schema = + g_settings_schema_source_lookup( + source, + "br.com.bb.pw3270", + TRUE); + + g_settings_schema_source_unref(source); + + GSettings * settings = g_settings_new_full(schema, NULL, "/br/com/bb/pw3270/application/"); + + debug("ui-style=%u",g_settings_get_uint(settings,"ui-style")); + + g_object_unref(settings); } #endif // DEBUG -- libgit2 0.21.2