summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authormonsta <[email protected]>2015-06-19 10:45:43 +0300
committermonsta <[email protected]>2015-06-19 10:45:43 +0300
commit77ebf88b678149862def827a7e5d134e9df13122 (patch)
treee405b20391c6a6e255d1d0fb65702ac89366bbab /eel
parente3147a24808fdd0cedecfa6b6ca42f376128c76c (diff)
parent2365acdcb607f7cbb3820900b2a979b1bf23778a (diff)
downloadcaja-77ebf88b678149862def827a7e5d134e9df13122.tar.bz2
caja-77ebf88b678149862def827a7e5d134e9df13122.tar.xz
Merge pull request #428 from NiceandGently/master
GTK3: editable-label : only clear the selection if we change to insensitive
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-editable-label.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c
index 54ed3087..fe7d5e2f 100644
--- a/eel/eel-editable-label.c
+++ b/eel/eel-editable-label.c
@@ -1208,7 +1208,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);