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 /src/ephy-find-toolbar.c | |
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 'src/ephy-find-toolbar.c')
-rw-r--r-- | src/ephy-find-toolbar.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c index c9fb2c458..a3ebd9c40 100644 --- a/src/ephy-find-toolbar.c +++ b/src/ephy-find-toolbar.c @@ -200,12 +200,12 @@ tab_search_key_press_cb (EphyEmbed *embed, /* check for / and ' which open the find toolbar in text resp. link mode */ if (gtk_widget_get_visible (widget) == FALSE) { - if (event->keyval == GDK_slash) + if (event->keyval == GDK_KEY_slash) { ephy_find_toolbar_open (toolbar, FALSE, TRUE); return TRUE; } - else if (event->keyval == GDK_apostrophe) + else if (event->keyval == GDK_KEY_apostrophe) { ephy_find_toolbar_open (toolbar, TRUE, TRUE); return TRUE; @@ -329,23 +329,23 @@ entry_key_press_event_cb (GtkEntry *entry, handled = TRUE; switch (event->keyval) { - case GDK_Up: - case GDK_KP_Up: + case GDK_KEY_Up: + case GDK_KEY_KP_Up: scroll_lines (priv->web_view, -1); break; - case GDK_Down: - case GDK_KP_Down: + case GDK_KEY_Down: + case GDK_KEY_KP_Down: scroll_lines (priv->web_view, 1); break; - case GDK_Page_Up: - case GDK_KP_Page_Up: + case GDK_KEY_Page_Up: + case GDK_KEY_KP_Page_Up: scroll_pages (priv->web_view, -1); break; - case GDK_Page_Down: - case GDK_KP_Page_Down: + case GDK_KEY_Page_Down: + case GDK_KEY_KP_Page_Down: scroll_pages (priv->web_view, 1); break; - case GDK_Escape: + case GDK_KEY_Escape: /* Hide the toolbar when ESC is pressed */ ephy_find_toolbar_request_close (toolbar); break; @@ -355,16 +355,16 @@ entry_key_press_event_cb (GtkEntry *entry, } } else if ((event->state & mask) == GDK_CONTROL_MASK && - (event->keyval == GDK_Return || - event->keyval == GDK_KP_Enter || - event->keyval == GDK_ISO_Enter)) + (event->keyval == GDK_KEY_Return || + event->keyval == GDK_KEY_KP_Enter || + event->keyval == GDK_KEY_ISO_Enter)) { handled = ephy_find_toolbar_activate_link (toolbar, event->state); } else if ((event->state & mask) == GDK_SHIFT_MASK && - (event->keyval == GDK_Return || - event->keyval == GDK_KP_Enter || - event->keyval == GDK_ISO_Enter)) + (event->keyval == GDK_KEY_Return || + event->keyval == GDK_KEY_KP_Enter || + event->keyval == GDK_KEY_ISO_Enter)) { handled = TRUE; g_signal_emit (toolbar, signals[PREVIOUS], 0); |