depot/pkgs/test/make-hardcode-gsettings-patch/fixtures/example-project-wrapped-settings-constructor-resolve.patch
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

17 lines
404 B
Diff

--- a/main.c
+++ b/main.c
@@ -1,13 +1,9 @@
#include <gio/gio.h>
#include <glib-object.h>
-void my_settings_new(const char *schema_id) {
- return g_settings_new(schema_id);
-}
-
int main() {
g_autoptr (GSettings) settings;
- settings = my_settings_new("org.gnome.evolution-data-server.addressbook");
+ settings = g_settings_new("org.gnome.evolution-data-server.addressbook");
return 0;
}