[gnome-settings-daemon] mouse: replace dialog by warning



commit 3e337371249dace2613d4698d91f587621188c19
Author: Ondrej Holy <oholy redhat com>
Date:   Tue Jul 23 11:08:52 2013 +0200

    mouse: replace dialog by warning
    
    The dialog blocks mainloop and possibly other services.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=704475

 plugins/mouse/gsd-mouse-manager.c |   15 +--------------
 1 files changed, 1 insertions(+), 14 deletions(-)
---
diff --git a/plugins/mouse/gsd-mouse-manager.c b/plugins/mouse/gsd-mouse-manager.c
index a62800a..e1560ed 100644
--- a/plugins/mouse/gsd-mouse-manager.c
+++ b/plugins/mouse/gsd-mouse-manager.c
@@ -900,8 +900,6 @@ set_mousetweaks_daemon (GsdMouseManager *manager,
 
         if (! g_spawn_command_line_async (comm, &error)) {
                 if (error->code == G_SPAWN_ERROR_NOENT && run_daemon) {
-                        GtkWidget *dialog;
-
                         if (dwell_click_enabled) {
                                 g_settings_set_boolean (manager->priv->mouse_a11y_settings,
                                                         KEY_DWELL_CLICK_ENABLED, FALSE);
@@ -910,18 +908,7 @@ set_mousetweaks_daemon (GsdMouseManager *manager,
                                                         KEY_SECONDARY_CLICK_ENABLED, FALSE);
                         }
 
-                        dialog = gtk_message_dialog_new (NULL, 0,
-                                                         GTK_MESSAGE_WARNING,
-                                                         GTK_BUTTONS_OK,
-                                                         _("Could not enable mouse accessibility features"));
-                        gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
-                                                                  _("Mouse accessibility requires 
Mousetweaks "
-                                                                    "to be installed on your system."));
-                        gtk_window_set_title (GTK_WINDOW (dialog), _("Universal Access"));
-                        gtk_window_set_icon_name (GTK_WINDOW (dialog),
-                                                  "preferences-desktop-accessibility");
-                        gtk_dialog_run (GTK_DIALOG (dialog));
-                        gtk_widget_destroy (dialog);
+                        g_warning ("Error enabling mouse accessibility features (mousetweaks is not 
installed)");
                 }
                 g_error_free (error);
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]