summaryrefslogtreecommitdiff
path: root/capplets/common/activate-settings-daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'capplets/common/activate-settings-daemon.c')
-rw-r--r--capplets/common/activate-settings-daemon.c58
1 files changed, 0 insertions, 58 deletions
diff --git a/capplets/common/activate-settings-daemon.c b/capplets/common/activate-settings-daemon.c
deleted file mode 100644
index 186eb82a7..000000000
--- a/capplets/common/activate-settings-daemon.c
+++ /dev/null
@@ -1,58 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <libbonobo.h>
-#include <gtk/gtk.h>
-
-#include "activate-settings-daemon.h"
-
-
-/*#include "GNOME_SettingsDaemon.h"*/
-
-static void popup_error_message (void)
-{
- GtkWidget *dialog;
-
- dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_WARNING,
- GTK_BUTTONS_OK, _("Unable to start the settings manager 'gnome-settings-daemon'.\n"
- "Without the GNOME settings manager running, some preferences may not take effect. This could "
- "indicate a problem with Bonobo, or a non-GNOME (e.g. KDE) settings manager may already "
- "be active and conflicting with the GNOME settings manager."));
-
- gtk_widget_show (dialog);
- gtk_widget_destroy (dialog);
-}
-
-/* Returns FALSE if activation failed, else TRUE */
-gboolean
-activate_settings_daemon (void)
-{
- CORBA_Environment ev;
- CORBA_Object object;
-
- /*GNOME_SettingsDaemon corba_foo;*/
-
- bonobo_init (NULL, NULL);
-
- CORBA_exception_init (&ev);
-
- object = bonobo_activation_activate_from_id ("OAFIID:GNOME_SettingsDaemon",
- 0, NULL, &ev);
-
- if (ev._major != CORBA_NO_EXCEPTION) {
- popup_error_message ();
- return FALSE;
- }
-
- if (object == CORBA_OBJECT_NIL) {
- popup_error_message ();
- return FALSE;
- }
-
- /*bool = GNOME_SettingsDaemon_awake (corba_foo, "MyService", &ev);
- printf ("bool is %d\n", bool);*/
-
-
- return TRUE;
-}