Commit e76910fb authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

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.
parent e9a778e0
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment