aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-02-01 05:52:12 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-03-25 02:55:25 +0800
commita391e7f5229a35d62177d22c5f7cb1fdf7f14d75 (patch)
tree30fcbb2b0ba83db0a9c5079886ecbbf8ce7a99c7
parentcef5a8ef5751c157817f3e132e3f0b18ce48d919 (diff)
downloadgsoc2013-evolution-a391e7f5229a35d62177d22c5f7cb1fdf7f14d75.tar
gsoc2013-evolution-a391e7f5229a35d62177d22c5f7cb1fdf7f14d75.tar.gz
gsoc2013-evolution-a391e7f5229a35d62177d22c5f7cb1fdf7f14d75.tar.bz2
gsoc2013-evolution-a391e7f5229a35d62177d22c5f7cb1fdf7f14d75.tar.lz
gsoc2013-evolution-a391e7f5229a35d62177d22c5f7cb1fdf7f14d75.tar.xz
gsoc2013-evolution-a391e7f5229a35d62177d22c5f7cb1fdf7f14d75.tar.zst
gsoc2013-evolution-a391e7f5229a35d62177d22c5f7cb1fdf7f14d75.zip
evolution-settings doesn't really need to be unique.
This thing is kind of a weird hybrid of Anjal and Evolution code anyway. We should figure out if and where it really belongs in Evolution and get the Anjal references cleaned up.
-rw-r--r--capplet/anjal-settings-main.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/capplet/anjal-settings-main.c b/capplet/anjal-settings-main.c
index 23e4ac9b7b..4a281b6781 100644
--- a/capplet/anjal-settings-main.c
+++ b/capplet/anjal-settings-main.c
@@ -56,8 +56,6 @@
#endif
#endif
-#include <unique/unique.h>
-
gboolean windowed = FALSE;
gboolean anjal_icon_decoration = FALSE;
gboolean default_app = FALSE;
@@ -70,35 +68,6 @@ extern gchar *shell_moduledir;
#define GCONF_KEY_MAILTO_COMMAND "/desktop/gnome/url-handlers/mailto/command"
#define ANJAL_MAILTO_COMMAND "anjal %s"
-static UniqueResponse
-mail_message_received_cb (UniqueApp *app G_GNUC_UNUSED,
- gint command,
- UniqueMessageData *message_data,
- guint time_ G_GNUC_UNUSED,
- gpointer user_data)
-{
- GtkWindow *window = (GtkWindow *) user_data;
-
- switch (command) {
- case UNIQUE_ACTIVATE :
- gtk_window_deiconify (window);
- gtk_window_present (window);
- return UNIQUE_RESPONSE_OK;
-
- case UNIQUE_NEW :
- return UNIQUE_RESPONSE_OK;
-
- case UNIQUE_OPEN :
- gdk_window_raise (gtk_widget_get_window (GTK_WIDGET (window)));
- gtk_window_deiconify (window);
- gtk_window_present (window);
-
- return UNIQUE_RESPONSE_OK;
- }
-
- return UNIQUE_RESPONSE_PASSTHROUGH;
-}
-
static void
categories_icon_theme_hack (void)
{
@@ -172,7 +141,6 @@ main (gint argc, gchar *argv[])
GError *error = NULL;
GConfClient *client;
- UniqueApp *app;
#ifdef G_OS_WIN32
/* Reduce risks */
@@ -252,28 +220,8 @@ main (gint argc, gchar *argv[])
gconf_client_set_bool (client, "/apps/evolution/mail/display/enable_vfolders", FALSE, NULL);
g_object_unref (client);
- app = unique_app_new ("org.gnome.AnjalSettings", NULL);
- if (unique_app_is_running (app) && !socket_id) {
- gboolean cmd_line = (remaining_args && remaining_args[0] != NULL);
-
- if (!cmd_line)
- unique_app_send_message (app, UNIQUE_ACTIVATE, NULL);
- else {
- UniqueMessageData *data = unique_message_data_new ();
- unique_message_data_set_text (data, remaining_args[0], -1);
- unique_app_send_message (app, UNIQUE_OPEN, data);
- unique_message_data_free (data);
- }
-
- return 0;
- }
-
create_default_shell ();
- g_signal_connect (
- UNIQUE_APP(app), "message-received",
- G_CALLBACK (mail_message_received_cb), main_window);
-
if (windowed)
anjal_icon_decoration = TRUE;