[gtk+] csd: Make link activation work reliably
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] csd: Make link activation work reliably
- Date: Thu, 21 Mar 2013 22:07:08 +0000 (UTC)
commit 02a0759c5db5c73243699e1e72ae5af7ec3917e6
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Mar 21 13:39:06 2013 -0400
csd: Make link activation work reliably
The label code was just letting some button press events bubble
up, which caused misbehaviour with the window dragging code.
https://bugzilla.gnome.org/show_bug.cgi?id=695506
gtk/gtklabel.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 587a61f..20d2c2e 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -4597,6 +4597,8 @@ gtk_label_button_press (GtkWidget *widget,
{
info->link_clicked = 1;
gtk_widget_queue_draw (widget);
+ if (!info->selectable)
+ return TRUE;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]