diff options
author | Martin Pitt <martin.pitt@canonical.com> | 2009-02-19 17:25:15 +0100 |
---|---|---|
committer | Martin Pitt <martin.pitt@canonical.com> | 2009-02-19 17:25:15 +0100 |
commit | 3bc5b8e8105d698e7782c8090148dbe8f135161f (patch) | |
tree | 71021e0655e95ddd9b07cc36ab3db29a4360916f /src | |
parent | 477eb614f187d1b7e35018c5a13df6db364395d0 (diff) | |
download | libayatana-indicator-3bc5b8e8105d698e7782c8090148dbe8f135161f.tar.gz libayatana-indicator-3bc5b8e8105d698e7782c8090148dbe8f135161f.tar.bz2 libayatana-indicator-3bc5b8e8105d698e7782c8090148dbe8f135161f.zip |
src/applet-main.c, applet_fill_cb(): Do not show anything if we
are running under a stracciatella GNOME session (i. e. without
Ubuntu components). See UbuntuSpec:stracciatella-session.
Diffstat (limited to 'src')
-rw-r--r-- | src/applet-main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/applet-main.c b/src/applet-main.c index 57dc6b3..6efd33f 100644 --- a/src/applet-main.c +++ b/src/applet-main.c @@ -100,6 +100,12 @@ applet_fill_cb (PanelApplet * applet, const gchar * iid, gpointer data) GtkWidget *menubar; gint i; gint indicators_loaded = 0; + + /* check if we are running stracciatella session */ + if (g_strcmp0(g_getenv("GDMSESSION"), "gnome-stracciatella") == 0) { + g_debug("Running stracciatella GNOME session, disabling myself"); + return TRUE; + } /* Set panel options */ gtk_container_set_border_width(GTK_CONTAINER (applet), 0); |