mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 16:00:18 +00:00
Disable tray when using Unity
This commit is contained in:
@@ -1877,6 +1877,17 @@ hextray_mode ()
|
||||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
unity_mode ()
|
||||
{
|
||||
#ifdef G_OS_UNIX
|
||||
const char *env = g_getenv("XDG_CURRENT_DESKTOP");
|
||||
if (env && strcmp (env, "Unity") == 0)
|
||||
return 1;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Routine for listing subfolders of a given folder. ALWAYS free correctly after use, e.g.
|
||||
void display_list (GSList *list)
|
||||
{
|
||||
|
||||
@@ -60,6 +60,7 @@ void safe_strcpy (char *dest, const char *src, int bytes_left);
|
||||
void canonalize_key (char *key);
|
||||
int portable_mode ();
|
||||
int hextray_mode ();
|
||||
int unity_mode ();
|
||||
GSList *get_subdirs (const char *path);
|
||||
char *encode_sasl_pass (char *user, char *pass);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user