[gnome-settings-daemon] media-keys: Don't assert if the user sets the 'button-power' action to 'nothing'



commit cc5f4af0ffb1e7a0239a77e6811060748d4627bd
Author: Richard Hughes <richard hughsie com>
Date:   Fri Sep 30 14:50:35 2011 +0100

    media-keys: Don't assert if the user sets the 'button-power' action to 'nothing'
    
    Afterall, it's a valid action.

 plugins/media-keys/gsd-media-keys-manager.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
index f9beab9..7ad9712 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -1293,7 +1293,6 @@ do_config_power_action (GsdMediaKeysManager *manager,
         case GSD_POWER_ACTION_NOTHING:
                 /* these actions cannot be handled by media-keys and
                  * are not used in this context */
-                g_assert_not_reached ();
                 break;
         }
 }



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