diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-08-20 00:17:58 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-08-20 00:35:30 +0200 |
commit | 65c0b26888a63a0c98fc8ce344b64172272dfd0d (patch) | |
tree | 607cb6aa1d75e3af7d36fe3272ba1a35870df990 /shell | |
parent | 074f55e344c4d36fad52acadf344dae9cd7bda75 (diff) | |
download | gnome-control-center-65c0b26888a63a0c98fc8ce344b64172272dfd0d.tar.gz |
shell: Use GDK_EVENT_* macros
Instead of TRUE/FALSE
https://bugzilla.gnome.org/show_bug.cgi?id=706268
Diffstat (limited to 'shell')
-rw-r--r-- | shell/cc-window.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/shell/cc-window.c b/shell/cc-window.c index 8f239b3a4..82954596f 100644 --- a/shell/cc-window.c +++ b/shell/cc-window.c @@ -1207,9 +1207,9 @@ window_key_press_event (GtkWidget *win, gboolean is_rtl; if (event->state == 0) - return FALSE; + return GDK_EVENT_PROPAGATE; - retval = FALSE; + retval = GDK_EVENT_PROPAGATE; state = event->state; keymap = gdk_keymap_get_default (); gdk_keymap_add_virtual_modifiers (keymap, &state); @@ -1232,13 +1232,13 @@ window_key_press_event (GtkWidget *win, case GDK_KEY_Q: case GDK_KEY_q: gtk_widget_destroy (GTK_WIDGET (self)); - retval = TRUE; + retval = GDK_EVENT_STOP; break; case GDK_KEY_W: case GDK_KEY_w: if (g_strcmp0 (gtk_stack_get_visible_child_name (GTK_STACK (self->priv->stack)), OVERVIEW_PAGE) != 0) shell_show_overview_page (self); - retval = TRUE; + retval = GDK_EVENT_STOP; break; } } @@ -1246,14 +1246,14 @@ window_key_press_event (GtkWidget *win, { if (g_strcmp0 (gtk_stack_get_visible_child_name (GTK_STACK (self->priv->stack)), OVERVIEW_PAGE) != 0) shell_show_overview_page (self); - retval = TRUE; + retval = GDK_EVENT_STOP; } else if ((!is_rtl && state == GDK_MOD1_MASK && event->keyval == GDK_KEY_Left) || (is_rtl && state == GDK_MOD1_MASK && event->keyval == GDK_KEY_Right) || event->keyval == GDK_KEY_Back) { previous_button_clicked_cb (NULL, self); - retval = TRUE; + retval = GDK_EVENT_STOP; } return retval; } |