[mutter] prefs: Use an unsigned value for META_KEYBINDING_ACTION_NONE
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] prefs: Use an unsigned value for META_KEYBINDING_ACTION_NONE
- Date: Fri, 1 Mar 2013 15:50:29 +0000 (UTC)
commit 7f1429812615ec7780176cf36ccfa539fe2ba0b2
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Dec 21 12:04:19 2012 +0100
prefs: Use an unsigned value for META_KEYBINDING_ACTION_NONE
Keybinding actions are unsigned, so it is a tad bit odd to use a
negative value for NONE and rely on implicit casting.
Use 0 instead.
https://bugzilla.gnome.org/show_bug.cgi?id=643111
src/meta/prefs.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/meta/prefs.h b/src/meta/prefs.h
index 99a9be7..e264509 100644
--- a/src/meta/prefs.h
+++ b/src/meta/prefs.h
@@ -145,7 +145,7 @@ void meta_prefs_set_ignore_request_hide_titlebar (gboolean whether);
*/
typedef enum _MetaKeyBindingAction
{
- META_KEYBINDING_ACTION_NONE = -1,
+ META_KEYBINDING_ACTION_NONE,
META_KEYBINDING_ACTION_WORKSPACE_1,
META_KEYBINDING_ACTION_WORKSPACE_2,
META_KEYBINDING_ACTION_WORKSPACE_3,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]