mirror of https://github.com/GNOME/gimp.git
app: fix GimpDataEditor name entry set_editable() logic
Small fix to last commit: make the name entry editable when the data is renamable, even if it's not otherwise writable (completely hypothetical for now.)
This commit is contained in:
parent
bccef43049
commit
262f25b319
|
@ -448,6 +448,11 @@ gimp_data_editor_real_set_data (GimpDataEditor *editor,
|
|||
gtk_entry_set_text (GTK_ENTRY (editor->name_entry), "");
|
||||
}
|
||||
|
||||
gtk_editable_set_editable (
|
||||
GTK_EDITABLE (editor->name_entry),
|
||||
editor->data &&
|
||||
gimp_viewable_is_name_editable (GIMP_VIEWABLE (editor->data)));
|
||||
|
||||
editable = (editor->data && gimp_data_is_writable (editor->data));
|
||||
|
||||
if (editor->data_editable != editable)
|
||||
|
@ -456,11 +461,6 @@ gimp_data_editor_real_set_data (GimpDataEditor *editor,
|
|||
|
||||
gimp_docked_title_changed (GIMP_DOCKED (editor));
|
||||
}
|
||||
|
||||
gtk_editable_set_editable (
|
||||
GTK_EDITABLE (editor->name_entry),
|
||||
editable &&
|
||||
gimp_viewable_is_name_editable (GIMP_VIEWABLE (editor->data)));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue