[gnote] Change key constants in recentchanges.cpp
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Change key constants in recentchanges.cpp
- Date: Sun, 8 May 2011 11:38:41 +0000 (UTC)
commit c06457e9f8fca47561cdf1fbe819800cb40d560d
Author: Aurimas Ä?ernius <aurisc4 gmail com>
Date: Sun May 8 00:42:26 2011 +0300
Change key constants in recentchanges.cpp
Change GDK_ to GDK_KEY_.
The former is not available in GTK 3.
src/recentchanges.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index 7be73a2..f43dcef 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -936,7 +936,7 @@ namespace gnote {
bool NoteRecentChanges::on_treeview_key_pressed(GdkEventKey * ev)
{
switch (ev->keyval) {
- case GDK_Menu:
+ case GDK_KEY_Menu:
{
// Pop up the context menu if a note is selected
Note::List selected_notes = get_selected_notes();
@@ -1110,7 +1110,7 @@ namespace gnote {
bool NoteRecentChanges::on_key_pressed(GdkEventKey * ev)
{
switch (ev->keyval) {
- case GDK_Escape:
+ case GDK_KEY_Escape:
// Allow Escape to close the window
on_close_window ();
break;
@@ -1516,7 +1516,7 @@ namespace gnote {
bool NoteRecentChanges::on_notebooks_key_pressed(GdkEventKey * ev)
{
switch (ev->keyval) {
- case GDK_Menu:
+ case GDK_KEY_Menu:
{
// Pop up the context menu if a notebook is selected
notebooks::Notebook::Ptr notebook = get_selected_notebook ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]