[epiphany] EphyHistoryWindow: Cannot copy more than one url.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] EphyHistoryWindow: Cannot copy more than one url.
- Date: Wed, 28 Oct 2015 07:54:23 +0000 (UTC)
commit efdb94fe943d9db4f8522ccfeb3a25ac0983e285
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Wed Oct 28 08:47:01 2015 +0100
EphyHistoryWindow: Cannot copy more than one url.
The copy-to-clipboard function only allows to copy one url,
so make the menuitem unsensitive if there's more than that.
src/ephy-history-window.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c
index 72ef525..87c7807 100644
--- a/src/ephy-history-window.c
+++ b/src/ephy-history-window.c
@@ -467,10 +467,10 @@ on_treeview_button_press_event (GtkWidget *widget,
gboolean bookmarks_locked;
n = gtk_tree_selection_count_selected_rows (self->priv->tree_selection);
- if (n == 0)
+ if (n <= 0)
return FALSE;
- gtk_widget_set_sensitive (self->priv->copy_location_menuitem, (n > 0));
+ gtk_widget_set_sensitive (self->priv->copy_location_menuitem, (n == 1));
bookmarks_locked = g_settings_get_boolean (EPHY_SETTINGS_LOCKDOWN,
EPHY_PREFS_LOCKDOWN_BOOKMARK_EDITING);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]