Commit 4b582207 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

always set "activates-default" on the name entry.

2005-05-08  Sven Neumann  <sven@gimp.org>

	* app/dialogs/layer-options-dialog.c (layer_options_dialog_new):
	always set "activates-default" on the name entry.
parent 001bd332
2005-05-08 Sven Neumann <sven@gimp.org>
* app/dialogs/layer-options-dialog.c (layer_options_dialog_new):
always set "activates-default" on the name entry.
2005-05-08 Sven Neumann <sven@gimp.org>
* app/base/tile-manager.[ch]: some code cleanup.
......
......@@ -94,8 +94,7 @@ layer_options_dialog_new (GimpImage *gimage,
NULL);
g_object_weak_ref (G_OBJECT (options->dialog),
(GWeakNotify) g_free,
options);
(GWeakNotify) g_free, options);
gtk_dialog_set_alternative_button_order (GTK_DIALOG (options->dialog),
GTK_RESPONSE_OK,
......@@ -120,11 +119,9 @@ layer_options_dialog_new (GimpImage *gimage,
_("Layer _Name:"), 0.0, 0.5,
options->name_entry, 1, FALSE);
gtk_entry_set_activates_default (GTK_ENTRY (options->name_entry), TRUE);
gtk_entry_set_text (GTK_ENTRY (options->name_entry), layer_name);
if (layer)
gtk_entry_set_activates_default (GTK_ENTRY (options->name_entry), TRUE);
if (! layer)
{
/* The size labels */
......
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