diff options
author | Steve Zesch <[email protected]> | 2012-05-11 14:29:14 -0400 |
---|---|---|
committer | Steve Zesch <[email protected]> | 2012-05-11 14:29:14 -0400 |
commit | 2af830a4cf5ac5b4702de8d4f4bd13015be192ef (patch) | |
tree | c3d8ffab457567ca73786af36d95ccf659ee9822 /src/applet-main.c | |
parent | bee1b91813d3495cf4e968e125157a739d0d0f78 (diff) | |
download | mate-indicator-applet-2af830a4cf5ac5b4702de8d4f4bd13015be192ef.tar.bz2 mate-indicator-applet-2af830a4cf5ac5b4702de8d4f4bd13015be192ef.tar.xz |
Dropped support for the session applet.
Diffstat (limited to 'src/applet-main.c')
-rw-r--r-- | src/applet-main.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/applet-main.c b/src/applet-main.c index fc3f29e..56c124b 100644 --- a/src/applet-main.c +++ b/src/applet-main.c @@ -36,7 +36,6 @@ static gchar * indicator_order[] = { "libmessaging.so", "libdatetime.so", "libme.so", - "libsession.so", NULL }; @@ -67,12 +66,6 @@ MATE_PANEL_APPLET_OUT_PROCESS_FACTORY ("IndicatorAppletFactory", "indicator-applet", applet_fill_cb, NULL); #endif -#ifdef INDICATOR_APPLET_SESSION -MATE_PANEL_APPLET_OUT_PROCESS_FACTORY ("FastUserSwitchAppletFactory", - PANEL_TYPE_APPLET, - "indicator-applet-session", - applet_fill_cb, NULL); -#endif #ifdef INDICATOR_APPLET_COMPLETE MATE_PANEL_APPLET_OUT_PROCESS_FACTORY ("IndicatorAppletCompleteFactory", PANEL_TYPE_APPLET, @@ -92,9 +85,6 @@ MATE_PANEL_APPLET_OUT_PROCESS_FACTORY ("IndicatorAppletAppmenuFactory", #ifdef INDICATOR_APPLET #define LOG_FILE_NAME "indicator-applet.log" #endif -#ifdef INDICATOR_APPLET_SESSION -#define LOG_FILE_NAME "indicator-applet-session.log" -#endif #ifdef INDICATOR_APPLET_COMPLETE #define LOG_FILE_NAME "indicator-applet-complete.log" #endif @@ -125,9 +115,6 @@ gchar * hotkey_keycode = "<Super>F1"; #ifdef INDICATOR_APPLET #define INDICATOR_SPECIFIC_ENV "indicator-applet-original" #endif -#ifdef INDICATOR_APPLET_SESSION -#define INDICATOR_SPECIFIC_ENV "indicator-applet-session" -#endif #ifdef INDICATOR_APPLET_COMPLETE #define INDICATOR_SPECIFIC_ENV "indicator-applet-complete" #endif @@ -630,14 +617,10 @@ about_cb (GtkAction *action G_GNUC_UNUSED, gtk_show_about_dialog(NULL, "version", VERSION, "copyright", "Copyright \xc2\xa9 2009-2010 Canonical, Ltd.", -#ifdef INDICATOR_APPLET_SESSION - "comments", _("A place to adjust your status, change users or exit your session."), -#else #ifdef INDICATOR_APPLET_APPMENU "comments", _("An applet to hold your application menus."), #endif "comments", _("An applet to hold all of the system indicators."), -#endif "authors", authors, "license", license_i18n, "wrap-license", TRUE, @@ -795,23 +778,12 @@ applet_fill_cb (MatePanelApplet * applet, const gchar * iid G_GNUC_UNUSED, gint indicators_loaded = 0; GtkActionGroup *action_group; -#ifdef INDICATOR_APPLET_SESSION - /* check if we are running stracciatella session */ - if (g_strcmp0(g_getenv("MDMSESSION"), "mate-stracciatella") == 0) { - g_debug("Running stracciatella MATE session, disabling myself"); - return TRUE; - } -#endif - if (!first_time) { first_time = TRUE; #ifdef INDICATOR_APPLET g_set_application_name(_("Indicator Applet")); #endif -#ifdef INDICATOR_APPLET_SESSION - g_set_application_name(_("Indicator Applet Session")); -#endif #ifdef INDICATOR_APPLET_COMPLETE g_set_application_name(_("Indicator Applet Complete")); #endif @@ -839,10 +811,6 @@ applet_fill_cb (MatePanelApplet * applet, const gchar * iid G_GNUC_UNUSED, atk_object_set_name (gtk_widget_get_accessible (GTK_WIDGET (applet)), "indicator-applet"); #endif -#ifdef INDICATOR_APPLET_SESSION - atk_object_set_name (gtk_widget_get_accessible (GTK_WIDGET (applet)), - "indicator-applet-session"); -#endif #ifdef INDICATOR_APPLET_COMPLETE atk_object_set_name (gtk_widget_get_accessible (GTK_WIDGET (applet)), "indicator-applet-complete"); @@ -918,9 +886,6 @@ applet_fill_cb (MatePanelApplet * applet, const gchar * iid G_GNUC_UNUSED, } #endif #ifdef INDICATOR_APPLET - if (!g_strcmp0(name, "libsession.so")) { - continue; - } if (!g_strcmp0(name, "libme.so")) { continue; } @@ -928,11 +893,6 @@ applet_fill_cb (MatePanelApplet * applet, const gchar * iid G_GNUC_UNUSED, continue; } #endif -#ifdef INDICATOR_APPLET_SESSION - if (g_strcmp0(name, "libsession.so") && g_strcmp0(name, "libme.so")) { - continue; - } -#endif if (load_module(name, menubar)) { indicators_loaded++; } |