Commit 4be428c22ebf8a82ffcff6694e75de09b3a02e7c
Exists in
master
and in
2 other branches
Merge branch 'master' into develop
Showing
4 changed files
with
8 additions
and
17 deletions
Show diff stats
schemas/linux/application.gschema.xml.in
schemas/linux/window.gschema.xml.in
src/objects/application/application.c
... | ... | @@ -525,9 +525,6 @@ |
525 | 525 | |
526 | 526 | GSettings *settings = NULL; |
527 | 527 | |
528 | - g_autofree gchar * path = g_strconcat("/apps/" PACKAGE_NAME "/", g_get_application_name(),"/",NULL); | |
529 | - debug("path=%s",path); | |
530 | - | |
531 | 528 | #ifdef DEBUG |
532 | 529 | GError * error = NULL; |
533 | 530 | GSettingsSchemaSource * source = |
... | ... | @@ -543,18 +540,18 @@ |
543 | 540 | GSettingsSchema * schema = |
544 | 541 | g_settings_schema_source_lookup( |
545 | 542 | source, |
546 | - "br.com.bb." PACKAGE_NAME, | |
543 | + "br.com.bb." G_STRINGIFY(PRODUCT_NAME), | |
547 | 544 | TRUE); |
548 | 545 | |
549 | 546 | debug("schema %s=%p","br.com.bb." PACKAGE_NAME,schema); |
550 | 547 | |
551 | - settings = g_settings_new_full(schema, NULL, path); | |
548 | + settings = g_settings_new_full(schema, NULL, NULL); | |
552 | 549 | |
553 | 550 | g_settings_schema_source_unref(source); |
554 | 551 | |
555 | 552 | #else |
556 | 553 | |
557 | - settings = g_settings_new_with_path("br.com.bb." PACKAGE_NAME, path); | |
554 | + settings = g_settings_new("br.com.bb." G_STRINGIFY(PRODUCT_NAME)); | |
558 | 555 | |
559 | 556 | #endif // DEBUG |
560 | 557 | ... | ... |
src/objects/window/window.c
... | ... | @@ -841,10 +841,6 @@ |
841 | 841 | |
842 | 842 | GSettings *pw3270_application_window_settings_new() { |
843 | 843 | |
844 | - // Get settings | |
845 | - g_autofree gchar * path = g_strconcat("/apps/" PACKAGE_NAME "/", g_get_application_name(), "/window/",NULL); | |
846 | -// debug("path=%s",path); | |
847 | - | |
848 | 844 | #ifdef DEBUG |
849 | 845 | |
850 | 846 | GError * error = NULL; |
... | ... | @@ -861,18 +857,16 @@ |
861 | 857 | GSettingsSchema * schema = |
862 | 858 | g_settings_schema_source_lookup( |
863 | 859 | source, |
864 | - "br.com.bb." PACKAGE_NAME ".window", | |
860 | + "br.com.bb." G_STRINGIFY(PRODUCT_NAME) ".window", | |
865 | 861 | TRUE); |
866 | 862 | |
867 | -// debug("schema %s=%p path=%s","br.com.bb." PACKAGE_NAME ".window",schema,path); | |
868 | - | |
869 | - GSettings * settings = g_settings_new_full(schema, NULL, path); | |
863 | + GSettings * settings = g_settings_new_full(schema, NULL, NULL); | |
870 | 864 | |
871 | 865 | g_settings_schema_source_unref(source); |
872 | 866 | |
873 | 867 | #else |
874 | 868 | |
875 | - GSettings * settings = g_settings_new_with_path("br.com.bb." PACKAGE_NAME ".window", path); | |
869 | + GSettings * settings = g_settings_new("br.com.bb." G_STRINGIFY(PRODUCT_NAME) ".window"); | |
876 | 870 | |
877 | 871 | #endif // DEBUG |
878 | 872 | ... | ... |