aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c15
-rw-r--r--src/bookmarks/ephy-bookmarks.c2
2 files changed, 12 insertions, 5 deletions
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index 2049ad0df..860e9da3a 100644
--- a/src/bookmarks/ephy-bookmarks-editor.c
+++ b/src/bookmarks/ephy-bookmarks-editor.c
@@ -1255,10 +1255,10 @@ ephy_bookmarks_editor_update_menu (EphyBookmarksEditor *editor)
open_in_tab = (bmk_focus && bmk_selection);
rename = (bmk_focus && single_bmk_selected && mutable) ||
(key_selection && key_focus && key_normal);
- delete = (bmk_focus && bmk_selection) ||
+ delete = (bmk_focus && bmk_selection && mutable) ||
(key_selection && key_focus && key_normal);
properties = bmk_focus && single_bmk_selected && mutable;
- can_show_in_bookmarks_bar = (bmk_focus && single_bmk_selected) ||
+ can_show_in_bookmarks_bar = (bmk_focus && single_bmk_selected && mutable) ||
(key_selection && key_focus);
action_group = editor->priv->action_group;
@@ -1391,10 +1391,17 @@ key_pressed_cb (EphyNodeView *view,
GdkEventKey *event,
EphyBookmarksEditor *editor)
{
+ EphyBookmarksEditorPrivate *priv = editor->priv;
+ GtkAction *action;
+
if (event->keyval == GDK_Delete || event->keyval == GDK_KP_Delete)
{
- cmd_delete (NULL, editor);
- return TRUE;
+ action = gtk_action_group_get_action (priv->action_group, "Delete");
+ if (gtk_action_get_sensitive (action))
+ {
+ cmd_delete (NULL, editor);
+ return TRUE;
+ }
}
return FALSE;
diff --git a/src/bookmarks/ephy-bookmarks.c b/src/bookmarks/ephy-bookmarks.c
index 5ca86de27..916afac02 100644
--- a/src/bookmarks/ephy-bookmarks.c
+++ b/src/bookmarks/ephy-bookmarks.c
@@ -1047,7 +1047,7 @@ ephy_bookmarks_init (EphyBookmarks *eb)
/* Translators: The text before the "|" is context to help you decide on
* the correct translation. You MUST OMIT it in the translated string. */
/* Translators: this topic contains the local websites bookmarks */
- g_value_set_string (&value, Q_("bookmarks|Local sites"));
+ g_value_set_string (&value, Q_("bookmarks|Local Sites"));
ephy_node_set_property (eb->priv->local,
EPHY_NODE_KEYWORD_PROP_NAME,
&value);