Commit fddb9ce0 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

app/gui/color-notebook.c (color_notebook_new) app/tools/gimpcroptool.c

2004-03-19  Michael Natterer  <mitch@gimp.org>

	* app/gui/color-notebook.c (color_notebook_new)
	* app/tools/gimpcroptool.c (crop_info_create)
	* app/tools/gimptransformtool.c (gimp_transform_tool_dialog):
	explicitely set a default response for dialog buttons which were
	created using gtk_dialog_add_buttons().
parent cbb29619
2004-03-19 Michael Natterer <mitch@gimp.org>
* app/gui/color-notebook.c (color_notebook_new)
* app/tools/gimpcroptool.c (crop_info_create)
* app/tools/gimptransformtool.c (gimp_transform_tool_dialog):
explicitely set a default response for dialog buttons which were
created using gtk_dialog_add_buttons().
2004-03-18 Sven Neumann <sven@gimp.org>
* app/tools/gimptexttool.[ch]: cleaned up text tool logic.
......@@ -137,12 +137,11 @@ color_notebook_new (GimpViewable *viewable,
g_object_set_data (G_OBJECT (cnp->shell), "color-notebook", cnp);
gtk_dialog_add_buttons (GTK_DIALOG (cnp->shell),
GIMP_STOCK_RESET, RESPONSE_RESET,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
NULL);
gtk_dialog_set_default_response (GTK_DIALOG (cnp->shell), GTK_RESPONSE_OK);
g_signal_connect (cnp->shell, "response",
G_CALLBACK (color_notebook_response),
......
......@@ -137,12 +137,11 @@ color_notebook_new (GimpViewable *viewable,
g_object_set_data (G_OBJECT (cnp->shell), "color-notebook", cnp);
gtk_dialog_add_buttons (GTK_DIALOG (cnp->shell),
GIMP_STOCK_RESET, RESPONSE_RESET,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
NULL);
gtk_dialog_set_default_response (GTK_DIALOG (cnp->shell), GTK_RESPONSE_OK);
g_signal_connect (cnp->shell, "response",
G_CALLBACK (color_notebook_response),
......
......@@ -967,12 +967,12 @@ crop_info_create (GimpCropTool *crop)
tool->tool_info->help_id);
gtk_dialog_add_buttons (GTK_DIALOG (crop->crop_info->shell),
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GIMP_STOCK_RESIZE, GIMP_CROP_MODE_RESIZE,
GIMP_STOCK_TOOL_CROP, GIMP_CROP_MODE_CROP,
NULL);
gtk_dialog_set_default_response (GTK_DIALOG (crop->crop_info->shell),
GIMP_CROP_MODE_CROP);
g_signal_connect (crop->crop_info->shell, "response",
G_CALLBACK (crop_response),
......
......@@ -1263,12 +1263,12 @@ gimp_transform_tool_dialog (GimpTransformTool *tr_tool)
tool_info->help_id);
gtk_dialog_add_buttons (GTK_DIALOG (tr_tool->info_dialog->shell),
GIMP_STOCK_RESET, RESPONSE_RESET,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
stock_id, GTK_RESPONSE_OK,
NULL);
gtk_dialog_set_default_response (GTK_DIALOG (tr_tool->info_dialog->shell),
GTK_RESPONSE_OK);
g_signal_connect (tr_tool->info_dialog->shell, "response",
G_CALLBACK (gimp_transform_tool_response),
......
......@@ -137,12 +137,11 @@ color_notebook_new (GimpViewable *viewable,
g_object_set_data (G_OBJECT (cnp->shell), "color-notebook", cnp);
gtk_dialog_add_buttons (GTK_DIALOG (cnp->shell),
GIMP_STOCK_RESET, RESPONSE_RESET,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
NULL);
gtk_dialog_set_default_response (GTK_DIALOG (cnp->shell), GTK_RESPONSE_OK);
g_signal_connect (cnp->shell, "response",
G_CALLBACK (color_notebook_response),
......
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