depot/third_party/nixpkgs/pkgs/test/make-hardcode-gsettings-patch/fixtures/example-project-wrapped-settings-constructor-resolve.patch
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01: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;
}