diff options
Diffstat (limited to 'eel/eel-editable-label.c')
-rw-r--r-- | 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 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); |