[gtk/wip/baedert/gl-rework: 5/8] label: Fix assumptions regaring link
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/gl-rework: 5/8] label: Fix assumptions regaring link
- Date: Mon, 6 Jan 2020 13:54:54 +0000 (UTC)
commit 3f64bc287329aef89d31ad9522c00845613996c9
Author: Timm Bäder <mail baedert org>
Date: Thu Jan 2 14:05:30 2020 +0100
label: Fix assumptions regaring link
gtk/gtklabel.c | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 671f73d155..b8d8d1cf6f 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -6032,14 +6032,15 @@ gtk_label_update_actions (GtkLabel *label)
GtkLabelLink *link;
if (priv->select_info)
- has_selection = priv->select_info->selection_anchor != priv->select_info->selection_end;
- else
- has_selection = FALSE;
-
- if (priv->select_info->link_clicked)
- link = priv->select_info->active_link;
+ {
+ has_selection = priv->select_info->selection_anchor != priv->select_info->selection_end;
+ link = priv->select_info->active_link;
+ }
else
- link = gtk_label_get_focus_link (label);
+ {
+ has_selection = FALSE;
+ link = gtk_label_get_focus_link (label);
+ }
gtk_widget_action_set_enabled (widget, "clipboard.copy", has_selection);
gtk_widget_action_set_enabled (widget, "selection.select-all",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]