[yelp] Change GDK_keyname to GDK_KEY_keyname
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp] Change GDK_keyname to GDK_KEY_keyname
- Date: Fri, 1 Oct 2010 14:12:44 +0000 (UTC)
commit 7cfff32deeeaabcaf0510b98877b120b96306917
Author: Maciej Piechotka <uzytkownik2 gmail com>
Date: Mon Sep 20 20:50:32 2010 +0100
Change GDK_keyname to GDK_KEY_keyname
libyelp/yelp-location-entry.c | 2 +-
src/yelp-window.c | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/libyelp/yelp-location-entry.c b/libyelp/yelp-location-entry.c
index 1c28883..653640e 100644
--- a/libyelp/yelp-location-entry.c
+++ b/libyelp/yelp-location-entry.c
@@ -974,7 +974,7 @@ entry_key_press_cb (GtkWidget *widget,
YelpLocationEntry *entry)
{
YelpLocationEntryPrivate *priv = GET_PRIV (entry);
- if (event->keyval == GDK_Escape) {
+ if (event->keyval == GDK_KEY_Escape) {
location_entry_cancel_search (entry);
return TRUE;
}
diff --git a/src/yelp-window.c b/src/yelp-window.c
index 62cf04d..9e414ee 100644
--- a/src/yelp-window.c
+++ b/src/yelp-window.c
@@ -1283,12 +1283,12 @@ find_entry_key_press (GtkEntry *entry,
if (priv->find_animate != 0)
return TRUE;
- if (event->keyval == GDK_Escape) {
+ if (event->keyval == GDK_KEY_Escape) {
gtk_widget_grab_focus (GTK_WIDGET (priv->view));
return TRUE;
}
- if (event->keyval == GDK_Return || event->keyval == GDK_KP_Enter) {
+ if (event->keyval == GDK_KEY_Return || event->keyval == GDK_KEY_KP_Enter) {
gchar *text = gtk_editable_get_chars (GTK_EDITABLE (entry), 0, -1);
webkit_web_view_search_text (WEBKIT_WEB_VIEW (priv->view),
text, FALSE, TRUE, TRUE);
@@ -1564,7 +1564,7 @@ hidden_key_press (GtkWidget *widget,
YelpWindow *window)
{
YelpWindowPrivate *priv = GET_PRIV (window);
- if (event->keyval == GDK_Escape) {
+ if (event->keyval == GDK_KEY_Escape) {
gtk_widget_grab_focus (GTK_WIDGET (priv->view));
return TRUE;
}
@@ -1742,7 +1742,7 @@ bookmark_key_release (GtkTreeView *view,
GdkEventKey *event,
YelpWindow *window)
{
- if (event->keyval == GDK_Delete) {
+ if (event->keyval == GDK_KEY_Delete) {
bookmark_remove (window);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]