Commit 6a29e101 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

set "activates-default" on all entries.

2005-09-26  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-interface.c (script_fu_interface):
	set "activates-default" on all entries.
parent cae33841
2005-09-26 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/script-fu-interface.c (script_fu_interface):
set "activates-default" on all entries.
2005-09-26 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/script-fu-interface.c: removed some frames
......
......@@ -352,6 +352,7 @@ script_fu_interface (SFScript *script)
case SF_STRING:
widget = gtk_entry_new ();
gtk_widget_set_size_request (widget, TEXT_WIDTH, -1);
gtk_entry_set_activates_default (GTK_ENTRY (widget), TRUE);
gtk_entry_set_text (GTK_ENTRY (widget),
script->arg_values[i].sfa_value);
......@@ -400,6 +401,7 @@ script_fu_interface (SFScript *script)
script->arg_defaults[i].sfa_adjustment.digits,
TRUE, 0.0, 0.0,
NULL, NULL);
gtk_entry_set_activates_default (GIMP_SCALE_ENTRY_SPINBUTTON (script->arg_values[i].sfa_adjustment.adj), TRUE);
break;
case SF_SPINNER:
......@@ -413,6 +415,7 @@ script_fu_interface (SFScript *script)
script->arg_defaults[i].sfa_adjustment.page,
0, 0,
script->arg_defaults[i].sfa_adjustment.digits);
gtk_entry_set_activates_default (GTK_ENTRY (widget), TRUE);
script->arg_values[i].sfa_adjustment.adj = GTK_ADJUSTMENT (adj);
break;
}
......@@ -434,9 +437,11 @@ script_fu_interface (SFScript *script)
script->arg_values[i].sfa_file.filename,
TRUE, TRUE);
gtk_entry_set_activates_default (GTK_ENTRY (GIMP_FILE_ENTRY (widget)->entry), TRUE);
script->arg_values[i].sfa_file.file_entry = widget;
g_signal_connect (widget, "filename_changed",
g_signal_connect (widget, "filename-changed",
G_CALLBACK (script_fu_file_entry_callback),
&script->arg_values[i].sfa_file);
break;
......
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