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



commit 2630585238a2fce1725d9d74bbdb95dd743d78fc
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 b97207a..3a4d5c5 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -1299,7 +1299,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]