diff options
author | Xan Lopez <xan@gnome.org> | 2010-09-11 21:23:56 +0800 |
---|---|---|
committer | Xan Lopez <xan@gnome.org> | 2010-09-11 21:23:56 +0800 |
commit | e46901eb21ddd73117ab28e0260c651698e7255b (patch) | |
tree | d64d99b426c47d707d952b28de0be14f608cb48d /lib | |
parent | d36dfe69183d0e5e1207f2faa290b7867fde2ba0 (diff) | |
download | gsoc2013-epiphany-e46901eb21ddd73117ab28e0260c651698e7255b.tar gsoc2013-epiphany-e46901eb21ddd73117ab28e0260c651698e7255b.tar.gz gsoc2013-epiphany-e46901eb21ddd73117ab28e0260c651698e7255b.tar.bz2 gsoc2013-epiphany-e46901eb21ddd73117ab28e0260c651698e7255b.tar.lz gsoc2013-epiphany-e46901eb21ddd73117ab28e0260c651698e7255b.tar.xz gsoc2013-epiphany-e46901eb21ddd73117ab28e0260c651698e7255b.tar.zst gsoc2013-epiphany-e46901eb21ddd73117ab28e0260c651698e7255b.zip |
Update for latest GTK+ 3.x release.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/widgets/ephy-location-entry.c | 10 | ||||
-rw-r--r-- | lib/widgets/ephy-node-view.c | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c index a2bdc44be..f1028b54e 100644 --- a/lib/widgets/ephy-location-entry.c +++ b/lib/widgets/ephy-location-entry.c @@ -476,7 +476,7 @@ entry_key_press_cb (GtkEntry *entry, { guint state = event->state & gtk_accelerator_get_default_mod_mask (); - if (event->keyval == GDK_Escape && state == 0) + if (event->keyval == GDK_KEY_Escape && state == 0) { ephy_location_entry_reset_internal (lentry, TRUE); /* don't return TRUE since we want to cancel the autocompletion popup too */ @@ -494,9 +494,9 @@ entry_key_press_after_cb (GtkEntry *entry, guint state = event->state & gtk_accelerator_get_default_mod_mask (); - if ((event->keyval == GDK_Return || - event->keyval == GDK_KP_Enter || - event->keyval == GDK_ISO_Enter) && + if ((event->keyval == GDK_KEY_Return || + event->keyval == GDK_KEY_KP_Enter || + event->keyval == GDK_KEY_ISO_Enter) && (state == GDK_CONTROL_MASK || state == (GDK_CONTROL_MASK | GDK_SHIFT_MASK))) { @@ -508,7 +508,7 @@ entry_key_press_after_cb (GtkEntry *entry, return TRUE; } - if ((event->keyval == GDK_Down || event->keyval == GDK_KP_Down) + if ((event->keyval == GDK_KEY_Down || event->keyval == GDK_KEY_KP_Down) && state == 0) { /* If we are focusing the entry, with the cursor at the end of it diff --git a/lib/widgets/ephy-node-view.c b/lib/widgets/ephy-node-view.c index 1e7fd5c86..91ef650ed 100644 --- a/lib/widgets/ephy-node-view.c +++ b/lib/widgets/ephy-node-view.c @@ -611,10 +611,10 @@ ephy_node_view_key_press_cb (GtkTreeView *treeview, { gboolean handled = FALSE; - if (event->keyval == GDK_space || - event->keyval == GDK_Return || - event->keyval == GDK_KP_Enter || - event->keyval == GDK_ISO_Enter) + if (event->keyval == GDK_KEY_space || + event->keyval == GDK_KEY_Return || + event->keyval == GDK_KEY_KP_Enter || + event->keyval == GDK_KEY_ISO_Enter) { if (view->priv->toggle_column >= 0) { |