aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks
diff options
context:
space:
mode:
authorDavid Bordoley <bordoley@msu.edu>2003-04-16 00:41:23 +0800
committerDave Bordoley <Bordoley@src.gnome.org>2003-04-16 00:41:23 +0800
commit9419650a822caaa2310a323ec8199fa5eb1f0e33 (patch)
tree4af32c8b8a5d12f581513b1c66c3b1529896cd58 /src/bookmarks
parent6eb4292b469aa9a12247f2cd1b22d742624adf81 (diff)
downloadgsoc2013-epiphany-9419650a822caaa2310a323ec8199fa5eb1f0e33.tar
gsoc2013-epiphany-9419650a822caaa2310a323ec8199fa5eb1f0e33.tar.gz
gsoc2013-epiphany-9419650a822caaa2310a323ec8199fa5eb1f0e33.tar.bz2
gsoc2013-epiphany-9419650a822caaa2310a323ec8199fa5eb1f0e33.tar.lz
gsoc2013-epiphany-9419650a822caaa2310a323ec8199fa5eb1f0e33.tar.xz
gsoc2013-epiphany-9419650a822caaa2310a323ec8199fa5eb1f0e33.tar.zst
gsoc2013-epiphany-9419650a822caaa2310a323ec8199fa5eb1f0e33.zip
*src/bookmarks/ephy-bookmark-editor.c:
2003-04-15 David Bordoley <bordoley@msu.edu> *src/bookmarks/ephy-bookmark-editor.c: (ephy_bookmarks_editor_update_menu): Fix select all for the bmview. Paste only sensitive when in an editable.
Diffstat (limited to 'src/bookmarks')
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index 8434635d9..0216b708f 100644
--- a/src/bookmarks/ephy-bookmarks-editor.c
+++ b/src/bookmarks/ephy-bookmarks-editor.c
@@ -502,13 +502,17 @@ ephy_bookmarks_editor_update_menu (EphyBookmarksEditor *editor)
gboolean key_selection, bmk_selection;
gboolean key_normal = FALSE;
gboolean bmk_multiple_selection;
- gboolean cut, copy, select_all;
+ gboolean cut, copy, paste, select_all;
EggActionGroup *action_group;
EggAction *action;
GList *selected;
GtkWidget *focus_widget;
+ bmk_focus = gtk_widget_is_focus (editor->priv->bm_view);
+ key_focus = gtk_widget_is_focus (editor->priv->key_view);
+
focus_widget = gtk_window_get_focus (GTK_WINDOW (editor));
+
if (GTK_IS_EDITABLE (focus_widget))
{
gboolean has_selection;
@@ -516,20 +520,17 @@ ephy_bookmarks_editor_update_menu (EphyBookmarksEditor *editor)
has_selection = gtk_editable_get_selection_bounds
(GTK_EDITABLE (focus_widget), NULL, NULL);
- select_all = TRUE;
+ select_all = paste = TRUE;
cut = has_selection;
copy = has_selection;
}
else
{
- select_all = FALSE;
+ select_all = bmk_focus;
cut = FALSE;
copy = FALSE;
}
- bmk_focus = gtk_widget_is_focus (editor->priv->bm_view);
- key_focus = gtk_widget_is_focus (editor->priv->key_view);
-
bmk_selection = ephy_node_view_has_selection
(EPHY_NODE_VIEW (editor->priv->bm_view),
&bmk_multiple_selection);
@@ -585,6 +586,8 @@ ephy_bookmarks_editor_update_menu (EphyBookmarksEditor *editor)
g_object_set (action, "sensitive", cut, NULL);
action = egg_action_group_get_action (action_group, "Copy");
g_object_set (action, "sensitive", copy, NULL);
+ action = egg_action_group_get_action (action_group, "Paste");
+ g_object_set (action, "sensitive", paste, NULL);
action = egg_action_group_get_action (action_group, "SelectAll");
g_object_set (action, "sensitive", select_all, NULL);
}