diff src/sys/glib/dark_theme.cc @ 236:4d461ef7d424

HUGE UPDATE: convert build system to autotools why? because cmake sucks :)
author Paper <mrpapersonic@gmail.com>
date Fri, 19 Jan 2024 00:24:02 -0500
parents ff0061e75f0f
children c130f47f6f48
line wrap: on
line diff
--- a/src/sys/glib/dark_theme.cc	Tue Jan 16 15:22:29 2024 -0500
+++ b/src/sys/glib/dark_theme.cc	Fri Jan 19 00:24:02 2024 -0500
@@ -6,24 +6,24 @@
 namespace glib {
 
 bool IsInDarkTheme() {
-	GSettings* settings = g_settings_new("org.gnome.desktop.interface");
+	GSettings* settings = ::g_settings_new("org.gnome.desktop.interface");
 	if (!settings)
 		return false;
 
-	GVariant* val = g_settings_get_value(settings, "color-scheme");
+	GVariant* val = ::g_settings_get_value(settings, "color-scheme");
 	if (!val)
 		return false;
 
 	const gchar* str;
-	g_variant_get(val, "&s", &str); /* should not be freed */
+	::g_variant_get(val, "&s", &str); /* should not be freed */
 	if (!str) /* how */
 		return false;
 
 	bool success = !std::strcmp(str, "prefer-dark");
 
 	/* unref these */
-	g_variant_unref(val);
-	g_object_unref(settings);
+	::g_variant_unref(val);
+	::g_object_unref(settings);
 
 	return success;
 }