aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-topics-selector.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-06-22 03:25:41 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-06-22 03:25:41 +0800
commitbcc276fa99bbded1b5b42503dfb2feca30c48e24 (patch)
tree07f68b570bba65521d8870eeb9fd3832b9d3a497 /src/bookmarks/ephy-topics-selector.c
parent54d27764848058ad591478a56a67ec49bee20efe (diff)
downloadgsoc2013-epiphany-bcc276fa99bbded1b5b42503dfb2feca30c48e24.tar
gsoc2013-epiphany-bcc276fa99bbded1b5b42503dfb2feca30c48e24.tar.gz
gsoc2013-epiphany-bcc276fa99bbded1b5b42503dfb2feca30c48e24.tar.bz2
gsoc2013-epiphany-bcc276fa99bbded1b5b42503dfb2feca30c48e24.tar.lz
gsoc2013-epiphany-bcc276fa99bbded1b5b42503dfb2feca30c48e24.tar.xz
gsoc2013-epiphany-bcc276fa99bbded1b5b42503dfb2feca30c48e24.tar.zst
gsoc2013-epiphany-bcc276fa99bbded1b5b42503dfb2feca30c48e24.zip
Factor out the helper to select a treeview row by column and use it also
2004-06-21 Marco Pesenti Gritti <marco@gnome.org> * lib/ephy-gui.c: (ephy_gui_help), (ephy_gui_select_row_by_key): * lib/widgets/ephy-node-view.c: (ephy_node_view_key_press_cb): * src/bookmarks/ephy-topics-selector.c: (topic_key_pressed): Factor out the helper to select a treeview row by column and use it also in the topic selector. * lib/ephy-gui.h: * src/bookmarks/ephy-bookmarks-editor.c: * src/bookmarks/ephy-new-bookmark.c: * src/ephy-history-window.c: * src/pdm-dialog.c: * src/ppview-toolbar.c: * src/prefs-dialog.c: * src/window-commands.c: * embed/downloader-view.c: Remove braindead gtk.h inclusion and deal with fallout headers.
Diffstat (limited to 'src/bookmarks/ephy-topics-selector.c')
-rw-r--r--src/bookmarks/ephy-topics-selector.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bookmarks/ephy-topics-selector.c b/src/bookmarks/ephy-topics-selector.c
index 8d15a59b2..007a3a05d 100644
--- a/src/bookmarks/ephy-topics-selector.c
+++ b/src/bookmarks/ephy-topics-selector.c
@@ -25,6 +25,7 @@
#include "ephy-topics-selector.h"
#include "ephy-debug.h"
#include "ephy-node-view.h"
+#include "ephy-gui.h"
#include <glib/gi18n.h>
#include <gtk/gtkliststore.h>
@@ -325,6 +326,7 @@ topic_key_pressed (GtkTreeView *tree_view,
GtkTreeSelection *sel = NULL;
GtkTreeIter iter;
GtkTreePath *path;
+ guint32 unicode;
switch (event->keyval)
{
@@ -347,6 +349,12 @@ topic_key_pressed (GtkTreeView *tree_view,
break;
}
+ unicode = gdk_keyval_to_unicode (event->keyval);
+ if (unicode)
+ {
+ return ephy_gui_select_row_by_key (tree_view, COL_TOPIC, unicode);
+ }
+
return FALSE;
}