diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-04-05 22:50:05 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-04-05 22:50:05 +0800 |
commit | 86fe205bedd65bbc15d6f2bcbbabeb8cf7e9582d (patch) | |
tree | bdcd9d0909a1fe35f02b3a5a76b147f7cb15cb88 /src/bookmarks/ephy-node-view.c | |
parent | b3b66a73fca6da255a313862b68a147ec7fcf707 (diff) | |
download | gsoc2013-epiphany-86fe205bedd65bbc15d6f2bcbbabeb8cf7e9582d.tar gsoc2013-epiphany-86fe205bedd65bbc15d6f2bcbbabeb8cf7e9582d.tar.gz gsoc2013-epiphany-86fe205bedd65bbc15d6f2bcbbabeb8cf7e9582d.tar.bz2 gsoc2013-epiphany-86fe205bedd65bbc15d6f2bcbbabeb8cf7e9582d.tar.lz gsoc2013-epiphany-86fe205bedd65bbc15d6f2bcbbabeb8cf7e9582d.tar.xz gsoc2013-epiphany-86fe205bedd65bbc15d6f2bcbbabeb8cf7e9582d.tar.zst gsoc2013-epiphany-86fe205bedd65bbc15d6f2bcbbabeb8cf7e9582d.zip |
Rewrite sensitivity code. Should take in account focus now.
2003-04-05 Marco Pesenti Gritti <marco@it.gnome.org>
* src/bookmarks/ephy-bookmarks-editor.c:
(ephy_bookmarks_editor_update_menu),
(ephy_bookmarks_editor_node_selected_cb), (view_focus_cb),
(keyword_node_selected_cb), (build_search_box),
(ephy_bookmarks_editor_construct), (ephy_bookmarks_editor_init):
* src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_add_keyword):
* src/bookmarks/ephy-node-view.c: (ephy_node_view_has_selection):
* src/bookmarks/ephy-node-view.h:
Rewrite sensitivity code. Should take in account focus now.
* src/ephy-window.c: (ephy_window_show):
Remove some unused code.
Diffstat (limited to 'src/bookmarks/ephy-node-view.c')
-rw-r--r-- | src/bookmarks/ephy-node-view.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/bookmarks/ephy-node-view.c b/src/bookmarks/ephy-node-view.c index d03de5a09..8c75a40cf 100644 --- a/src/bookmarks/ephy-node-view.c +++ b/src/bookmarks/ephy-node-view.c @@ -918,3 +918,21 @@ ephy_node_view_edit (EphyNodeView *view) g_list_free (rows); } +gboolean +ephy_node_view_has_selection (EphyNodeView *view, gboolean *multiple) +{ + GtkTreeSelection *selection; + int rows; + + selection = gtk_tree_view_get_selection + (GTK_TREE_VIEW (view)); + + rows = gtk_tree_selection_count_selected_rows (selection); + + if (multiple) + { + *multiple = rows > 1; + } + + return rows > 0; +} |