diff options
author | David Bordoley <bordoley@msu.edu> | 2003-03-27 21:39:33 +0800 |
---|---|---|
committer | Dave Bordoley <Bordoley@src.gnome.org> | 2003-03-27 21:39:33 +0800 |
commit | d5be47a8e46ac8a35e41f296a95bb5ddcf7365e8 (patch) | |
tree | 397fc387ec6374fd9641709fdc9947de1ccf3621 /src/bookmarks/ephy-node-view.c | |
parent | 1ee9df3c80f558d2e05c7204ef8d682bba938886 (diff) | |
download | gsoc2013-epiphany-d5be47a8e46ac8a35e41f296a95bb5ddcf7365e8.tar gsoc2013-epiphany-d5be47a8e46ac8a35e41f296a95bb5ddcf7365e8.tar.gz gsoc2013-epiphany-d5be47a8e46ac8a35e41f296a95bb5ddcf7365e8.tar.bz2 gsoc2013-epiphany-d5be47a8e46ac8a35e41f296a95bb5ddcf7365e8.tar.lz gsoc2013-epiphany-d5be47a8e46ac8a35e41f296a95bb5ddcf7365e8.tar.xz gsoc2013-epiphany-d5be47a8e46ac8a35e41f296a95bb5ddcf7365e8.tar.zst gsoc2013-epiphany-d5be47a8e46ac8a35e41f296a95bb5ddcf7365e8.zip |
Reorganize the menus a bit. Unifiy topic/bookmarks rename/delete items.
2003-03-27 David Bordoley <bordoley@msu.edu>
* data/ui/epiphany-bookmark-editor-ui.xml.in:
* src/bookmarks/ephy-bookmarks-editor.c: (cmd_rename),
(cmd_delete), (cmd_cut), (cmd_copy), (cmd_paste),
(cmd_select_all), (keyword_node_key_pressed_cb),
(keyword_node_show_popup_cb), (ephy_bookmarks_editor_construct):
Reorganize the menus a bit. Unifiy topic/bookmarks
rename/delete items. Add text editting menu items
to the edit menu. Add a topic context menu.
* src/bookmarks/ephy-node-view.[c-h]: (ephy_node_view_select_all),
(ephy_node_view_has_focus):
New functions.
* src/bookmarks/ephy-topics-selector.c: (set_sort_column_id),
(topic_clicked), (ephy_topics_build_ui):
Sort topics case insensitively. Add/remove topics using a single click.
Diffstat (limited to 'src/bookmarks/ephy-node-view.c')
-rw-r--r-- | src/bookmarks/ephy-node-view.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/bookmarks/ephy-node-view.c b/src/bookmarks/ephy-node-view.c index 4270d58f2..d3b578179 100644 --- a/src/bookmarks/ephy-node-view.c +++ b/src/bookmarks/ephy-node-view.c @@ -22,6 +22,7 @@ #include <gtk/gtktreeviewcolumn.h> #include <gtk/gtkcellrenderertext.h> #include <gtk/gtkcellrendererpixbuf.h> +#include <gtk/gtkwindow.h> #include <libgnome/gnome-i18n.h> #include "eggtreemodelfilter.h" @@ -661,6 +662,30 @@ ephy_node_view_get_selection (EphyNodeView *view) } void +ephy_node_view_select_all (EphyNodeView *view) +{ + GtkTreeSelection *sel = gtk_tree_view_get_selection (view->priv->treeview); + gtk_tree_selection_select_all (sel); +} + +gboolean +ephy_node_view_has_focus (EphyNodeView *view) +{ + GtkWidget *window; + GtkWidget *focused_widget; + + window = gtk_widget_get_toplevel (view->priv->treeview); + focused_widget = gtk_window_get_focus (GTK_WINDOW(window)); + + if (view->priv->treeview == focused_widget) + { + return TRUE; + } + + return FALSE; +} + +void ephy_node_view_remove (EphyNodeView *view) { GList *list; |