[gnome-settings-daemon] a11y-keyboard: Remove unused retval in ax_response_callback()



commit be311978e17e41ed3243d6e2cdd1cab478809daf
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jan 16 12:02:29 2013 +0100

    a11y-keyboard: Remove unused retval in ax_response_callback()

 plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c |   26 +++++++-------------
 1 files changed, 9 insertions(+), 17 deletions(-)
---
diff --git a/plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c b/plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c
index d9d6c47..6d5adbe 100644
--- a/plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c
+++ b/plugins/a11y-keyboard/gsd-a11y-keyboard-manager.c
@@ -326,7 +326,7 @@ set_server_from_gsettings (GsdA11yKeyboardManager *manager)
         gnome_settings_profile_end (NULL);
 }
 
-static gboolean
+static void
 ax_response_callback (GsdA11yKeyboardManager *manager,
                       gint                    response_id,
                       guint                   revert_controls_mask,
@@ -347,8 +347,6 @@ ax_response_callback (GsdA11yKeyboardManager *manager,
 
                 set_server_from_gsettings (manager);
         }
-
-        return TRUE;
 }
 
 static void
@@ -364,7 +362,6 @@ on_slow_keys_action (NotifyNotification     *notification,
                      const char             *action,
                      GsdA11yKeyboardManager *manager)
 {
-        gboolean res;
         int      response_id;
 
         g_assert (action != NULL);
@@ -377,12 +374,10 @@ on_slow_keys_action (NotifyNotification     *notification,
                 return;
         }
 
-        res = ax_response_callback (manager,
-                                    response_id, XkbSlowKeysMask,
-                                    manager->priv->slowkeys_shortcut_val);
-        if (res) {
-                notify_notification_close (manager->priv->notification, NULL);
-        }
+        ax_response_callback (manager,
+                              response_id, XkbSlowKeysMask,
+                              manager->priv->slowkeys_shortcut_val);
+        notify_notification_close (manager->priv->notification, NULL);
 }
 
 static void
@@ -390,7 +385,6 @@ on_sticky_keys_action (NotifyNotification     *notification,
                        const char             *action,
                        GsdA11yKeyboardManager *manager)
 {
-        gboolean res;
         int      response_id;
 
         g_assert (action != NULL);
@@ -403,12 +397,10 @@ on_sticky_keys_action (NotifyNotification     *notification,
                 return;
         }
 
-        res = ax_response_callback (manager,
-                                    response_id, XkbStickyKeysMask,
-                                    manager->priv->stickykeys_shortcut_val);
-        if (res) {
-                notify_notification_close (manager->priv->notification, NULL);
-        }
+        ax_response_callback (manager,
+                              response_id, XkbStickyKeysMask,
+                              manager->priv->stickykeys_shortcut_val);
+        notify_notification_close (manager->priv->notification, NULL);
 }
 
 static gboolean



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