[nautilus/gnome-2-32: 56/283] Don't give input focus to the selectable label (#591902).



commit 557a87c85a242aa0ba2902081f20f54449c5acba
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon May 3 18:32:49 2010 +0200

    Don't give input focus to the selectable label (#591902).

 src/nautilus-image-properties-page.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-image-properties-page.c b/src/nautilus-image-properties-page.c
index 95a9567..8c0b8fc 100644
--- a/src/nautilus-image-properties-page.c
+++ b/src/nautilus-image-properties-page.c
@@ -139,6 +139,11 @@ append_label (GtkWidget *vbox,
 	gtk_misc_set_alignment (GTK_MISC (label), 0, 0);
 	gtk_label_set_selectable (GTK_LABEL (label), TRUE);
 
+	/* setting can_focus to FALSE will allow to make the label
+	 * selectable but without the cursor showing.
+	 */
+	gtk_widget_set_can_focus (label, FALSE);
+
 	gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
 	gtk_widget_show (label);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]