mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
Adjust for GTK3 github actions compile testing.
fixed gtk2 compiling.
This commit is contained in:
@@ -273,3 +273,25 @@ sysinfo_backend_get_network(void)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static const char *sysinfo_detect_toolkit(void)
|
||||
{
|
||||
#if defined(HAVE_GTK3)
|
||||
return "GTK3";
|
||||
#elif defined(HAVE_GTK2)
|
||||
return "GTK2";
|
||||
#elif defined(HAVE_GTK)
|
||||
return "GTK";
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
char *sysinfo_backend_get_ui(void)
|
||||
{
|
||||
const char *toolkit = sysinfo_detect_toolkit();
|
||||
if (toolkit)
|
||||
return g_strdup_printf("%s / Quartz", toolkit);
|
||||
|
||||
return g_strdup("Quartz");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user