ref: use gnome C style conventions

This commit is contained in:
2026-03-01 00:35:36 +03:00
parent 5a2fe1756c
commit 3db57eb3fc
3 changed files with 13 additions and 14 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ static void register_with_portal (void) {
GDBusConnection *bus = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error);
if (bus == NULL) {
g_warning ("portal register: can't get session bus: %s", error->message);
g_error_free (error);
g_clear_error (&error);
return;
}
GVariantBuilder options;
@@ -28,7 +28,7 @@ static void register_with_portal (void) {
-1, NULL, &error);
if (result == NULL) {
g_info ("portal register: %s", error->message);
g_error_free (error);
g_clear_error (&error);
} else {
g_variant_unref (result);
}