[gnote] Change key constants in noteeditor.cpp
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Change key constants in noteeditor.cpp
- Date: Sun, 8 May 2011 11:38:21 +0000 (UTC)
commit f99e9a582f141fc4a92236cbb5c2c18faf0e917b
Author: Aurimas Ä?ernius <aurisc4 gmail com>
Date: Sun May 8 00:29:49 2011 +0300
Change key constants in noteeditor.cpp
Change GDK_ to GDK_KEY_.
The former are not available in GTK 3.
src/noteeditor.cpp | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/src/noteeditor.cpp b/src/noteeditor.cpp
index 506b3cb..ae828a6 100644
--- a/src/noteeditor.cpp
+++ b/src/noteeditor.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2010 Aurimas Cernius
+ * Copyright (C) 2010-2011 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* This program is free software: you can redistribute it and/or modify
@@ -233,8 +233,8 @@ namespace gnote {
switch (ev->keyval)
{
- case GDK_KP_Enter:
- case GDK_Return:
+ case GDK_KEY_KP_Enter:
+ case GDK_KEY_Return:
// Allow opening notes with Ctrl + Enter
if (ev->state != Gdk::CONTROL_MASK) {
if (ev->state & Gdk::SHIFT_MASK) {
@@ -246,28 +246,28 @@ namespace gnote {
scroll_mark_onscreen (get_buffer()->get_insert());
}
break;
- case GDK_Tab:
+ case GDK_KEY_Tab:
ret_value = NoteBuffer::Ptr::cast_static(get_buffer())->add_tab ();
scroll_mark_onscreen (get_buffer()->get_insert());
break;
- case GDK_ISO_Left_Tab:
+ case GDK_KEY_ISO_Left_Tab:
ret_value = NoteBuffer::Ptr::cast_static(get_buffer())->remove_tab ();
scroll_mark_onscreen (get_buffer()->get_insert());
break;
- case GDK_Delete:
+ case GDK_KEY_Delete:
if (Gdk::SHIFT_MASK != (ev->state & Gdk::SHIFT_MASK)) {
ret_value = NoteBuffer::Ptr::cast_static(get_buffer())->delete_key_handler();
scroll_mark_onscreen (get_buffer()->get_insert());
}
break;
- case GDK_BackSpace:
+ case GDK_KEY_BackSpace:
ret_value = NoteBuffer::Ptr::cast_static(get_buffer())->backspace_key_handler();
break;
- case GDK_Left:
- case GDK_Right:
- case GDK_Up:
- case GDK_Down:
- case GDK_End:
+ case GDK_KEY_Left:
+ case GDK_KEY_Right:
+ case GDK_KEY_Up:
+ case GDK_KEY_Down:
+ case GDK_KEY_End:
ret_value = false;
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]