[gtk+] gtklabel: Set the correct initial cursor
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtklabel: Set the correct initial cursor
- Date: Sat, 12 Jul 2014 01:29:10 +0000 (UTC)
commit 0840f13c15b9ff8e1073b80cde50d2d2a13bf9f8
Author: Timm Bäder <mail baedert org>
Date: Thu Jul 10 00:25:49 2014 +0200
gtklabel: Set the correct initial cursor
Use GDK_XTERM only if the label is really selectable.
https://bugzilla.gnome.org/show_bug.cgi?id=732970
gtk/gtklabel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index b3fd153..3c64322 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -5198,7 +5198,7 @@ gtk_label_create_window (GtkLabel *label)
GDK_POINTER_MOTION_MASK |
GDK_POINTER_MOTION_HINT_MASK;
attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_NOREDIR;
- if (gtk_widget_is_sensitive (widget))
+ if (gtk_widget_is_sensitive (widget) && priv->select_info && priv->select_info->selectable)
{
attributes.cursor = gdk_cursor_new_for_display (gtk_widget_get_display (widget),
GDK_XTERM);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]