[nautilus] editable-label: only clear the selection if we change to insensitive
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] editable-label: only clear the selection if we change to insensitive
- Date: Thu, 24 Feb 2011 18:08:03 +0000 (UTC)
commit d2c34101172415c63fe3c89e62ea1bf8bca15d9d
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Feb 24 13:06:45 2011 -0500
editable-label: only clear the selection if we change to insensitive
This is borrowed from GtkEntry, and should properly fix
https://bugzilla.gnome.org/show_bug.cgi?id=642766
eel/eel-editable-label.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c
index c8c9b0f..64d861f 100644
--- a/eel/eel-editable-label.c
+++ b/eel/eel-editable-label.c
@@ -1182,7 +1182,9 @@ eel_editable_label_state_changed (GtkWidget *widget,
label = EEL_EDITABLE_LABEL (widget);
- eel_editable_label_select_region (label, 0, 0);
+ /* clear any selection if we're insensitive */
+ if (!gtk_widget_is_sensitive (widget))
+ eel_editable_label_select_region (label, 0, 0);
if (GTK_WIDGET_CLASS (eel_editable_label_parent_class)->state_changed)
GTK_WIDGET_CLASS (eel_editable_label_parent_class)->state_changed (widget, prev_state);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]