Disable tray when using Unity

This commit is contained in:
TingPing
2013-03-25 02:41:13 -04:00
parent 1c929cd694
commit e9a3528bbd
5 changed files with 43 additions and 5 deletions

View File

@@ -837,7 +837,7 @@ tray_apply_setup (void)
}
else
{
if (prefs.hex_gui_tray && !hextray_mode ())
if (prefs.hex_gui_tray && !hextray_mode () && !unity_mode ())
tray_init ();
}
}
@@ -869,7 +869,7 @@ tray_plugin_init (hexchat_plugin *plugin_handle, char **plugin_name,
hexchat_hook_print (ph, "Focus Window", -1, tray_focus_cb, NULL);
if (prefs.hex_gui_tray && !hextray_mode ())
if (prefs.hex_gui_tray && !hextray_mode () && !unity_mode ())
tray_init ();
return 1; /* return 1 for success */