mirror of https://github.com/GNOME/gimp.git
app/widgets/gimpdataeditor.c set the editable state, not the sensitivity
2006-11-01 Sven Neumann <sven@gimp.org> * app/widgets/gimpdataeditor.c * app/widgets/gimppaletteeditor.c: set the editable state, not the sensitivity of the entries according to the data's editable state.
This commit is contained in:
parent
e9a778e0e3
commit
e76910fba4
|
@ -1,3 +1,9 @@
|
|||
2006-11-01 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/widgets/gimpdataeditor.c
|
||||
* app/widgets/gimppaletteeditor.c: set the editable state, not the
|
||||
sensitivity of the entries according to the data's editable state.
|
||||
|
||||
2006-11-01 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/core/core-enums.[ch]: string change.
|
||||
|
|
|
@ -154,7 +154,7 @@ gimp_data_editor_init (GimpDataEditor *editor)
|
|||
gtk_box_pack_start (GTK_BOX (editor), editor->name_entry, FALSE, FALSE, 0);
|
||||
gtk_widget_show (editor->name_entry);
|
||||
|
||||
gtk_widget_set_sensitive (editor->name_entry, FALSE);
|
||||
gtk_editable_set_editable (GTK_EDITABLE (editor->name_entry), FALSE);
|
||||
|
||||
g_signal_connect (editor->name_entry, "key-press-event",
|
||||
G_CALLBACK (gimp_data_editor_name_key_press),
|
||||
|
@ -449,7 +449,7 @@ gimp_data_editor_real_set_data (GimpDataEditor *editor,
|
|||
{
|
||||
editor->data_editable = editable;
|
||||
|
||||
gtk_widget_set_sensitive (editor->name_entry, editable);
|
||||
gtk_editable_set_editable (GTK_EDITABLE (editor->name_entry), editable);
|
||||
gimp_docked_title_changed (GIMP_DOCKED (editor));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -253,7 +253,7 @@ gimp_palette_editor_init (GimpPaletteEditor *editor)
|
|||
editor->color_name = gtk_entry_new ();
|
||||
gtk_box_pack_start (GTK_BOX (hbox), editor->color_name, TRUE, TRUE, 0);
|
||||
gtk_entry_set_text (GTK_ENTRY (editor->color_name), _("Undefined"));
|
||||
gtk_widget_set_sensitive (editor->color_name, FALSE);
|
||||
gtk_editable_set_editable (GTK_EDITABLE (editor->color_name), FALSE);
|
||||
gtk_widget_show (editor->color_name);
|
||||
|
||||
g_signal_connect (editor->color_name, "changed",
|
||||
|
@ -794,8 +794,8 @@ palette_editor_entry_selected (GimpPaletteView *view,
|
|||
palette_editor_color_name_changed,
|
||||
editor);
|
||||
|
||||
gtk_widget_set_sensitive (editor->color_name,
|
||||
entry && data_editor->data_editable);
|
||||
gtk_editable_set_editable (GTK_EDITABLE (editor->color_name),
|
||||
entry && data_editor->data_editable);
|
||||
|
||||
gimp_ui_manager_update (GIMP_EDITOR (editor)->ui_manager,
|
||||
GIMP_EDITOR (editor)->popup_data);
|
||||
|
|
Loading…
Reference in New Issue