Commit 8af2fb72 authored by Sven Neumann's avatar Sven Neumann
Browse files

small dialog changes and german translation update


--Sven
parent d3315b90
Mon Dec 27 19:40:19 CET 1999 Sven Neumann <sven@gimp.org>
* plug-ins/common/align_layers.c
* plug-ins/common/despeckle.c: made them use the standard action_area
layout
Mon Dec 27 17:16:14 CET 1999 Sven Neumann <sven@gimp.org>
 
* plug-ins/common/grid.c
......
......@@ -708,7 +708,7 @@ gtkW_dialog_new (char * name,
GtkSignalFunc ok_callback,
GtkSignalFunc close_callback)
{
GtkWidget *dlg, *button;
GtkWidget *dlg, *button, *hbbox;
dlg = gtk_dialog_new ();
gtk_window_set_title (GTK_WINDOW (dlg), name);
......@@ -716,23 +716,29 @@ gtkW_dialog_new (char * name,
gtk_signal_connect (GTK_OBJECT (dlg), "destroy",
(GtkSignalFunc) close_callback, NULL);
/* Action Area */
button = gtk_button_new_with_label ( _("OK"));
/* Action area */
gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (dlg)->action_area), 2);
gtk_box_set_homogeneous (GTK_BOX (GTK_DIALOG (dlg)->action_area), FALSE);
hbbox = gtk_hbutton_box_new ();
gtk_button_box_set_spacing (GTK_BUTTON_BOX (hbbox), 4);
gtk_box_pack_end (GTK_BOX (GTK_DIALOG (dlg)->action_area), hbbox, FALSE, FALSE, 0);
gtk_widget_show (hbbox);
button = gtk_button_new_with_label (_("OK"));
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_signal_connect (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) ok_callback, dlg);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->action_area), button,
TRUE, TRUE, 0);
(GtkSignalFunc) ok_callback,
dlg);
gtk_box_pack_start (GTK_BOX (hbbox), button, FALSE, FALSE, 0);
gtk_widget_grab_default (button);
gtk_widget_show (button);
button = gtk_button_new_with_label ( _("Cancel"));
button = gtk_button_new_with_label (_("Cancel"));
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) gtk_widget_destroy,
GTK_OBJECT(dlg));
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->action_area), button,
TRUE, TRUE, 0);
GTK_OBJECT (dlg));
gtk_box_pack_start (GTK_BOX (hbbox), button, FALSE, FALSE, 0);
gtk_widget_show (button);
return dlg;
......
......@@ -43,6 +43,12 @@
* Revision History:
*
* $Log$
* Revision 1.20 1999/12/27 18:43:09 neo
* small dialog changes and german translation update
*
*
* --Sven
*
* Revision 1.19 1997/01/03 15:15:10 yasuhiro
* 1999-12-20 Shirasaki Yasuhiro <yasuhiro@gnome.gr.jp>
*
......@@ -715,6 +721,7 @@ despeckle_dialog(void)
*ftable, /* Filter table */
*frame, /* Frame for preview */
*scrollbar, /* Horizontal + vertical scroller */
*hbbox, /* Buttonbox for the OK/Cancel buttons */
*button; /* OK/Cancel buttons */
gint argc; /* Fake argc for GUI */
gchar **argv; /* Fake argv for GUI */
......@@ -869,28 +876,30 @@ despeckle_dialog(void)
dialog_create_ivalue( _("White Level"), GTK_TABLE(table), 4, &white_level, 0, 256);
/*
* OK, cancel buttons...
*/
gtk_container_border_width(GTK_CONTAINER(GTK_DIALOG(dialog)->action_area), 6);
button = gtk_button_new_with_label( _("OK"));
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
gtk_signal_connect(GTK_OBJECT(button), "clicked",
(GtkSignalFunc) dialog_ok_callback,
dialog);
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button, TRUE, TRUE, 0);
gtk_widget_grab_default(button);
gtk_widget_show(button);
button = gtk_button_new_with_label( _("Cancel"));
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
/* Action area */
gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (dialog)->action_area), 2);
gtk_box_set_homogeneous (GTK_BOX (GTK_DIALOG (dialog)->action_area), FALSE);
hbbox = gtk_hbutton_box_new ();
gtk_button_box_set_spacing (GTK_BUTTON_BOX (hbbox), 4);
gtk_box_pack_end (GTK_BOX (GTK_DIALOG (dialog)->action_area), hbbox, FALSE, FALSE, 0);
gtk_widget_show (hbbox);
button = gtk_button_new_with_label (_("OK"));
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_signal_connect (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) dialog_ok_callback,
dialog);
gtk_box_pack_start (GTK_BOX (hbbox), button, FALSE, FALSE, 0);
gtk_widget_grab_default (button);
gtk_widget_show (button);
button = gtk_button_new_with_label (_("Cancel"));
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_signal_connect(GTK_OBJECT(button), "clicked",
(GtkSignalFunc) dialog_cancel_callback,
dialog);
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button, TRUE, TRUE, 0);
gtk_widget_show(button);
gtk_box_pack_start (GTK_BOX (hbbox), button, FALSE, FALSE, 0);
gtk_widget_show (button);
/*
* Show it and wait for the user to do something...
......
Mon Dec 27 19:41:36 CET 1999 Sven Neumann <sven@gimp.org>
* de.po: updated german translation
1999-12-22 Shirasaki Yasuhiro <yasuhiro@gnome.gr.jp>
* ja.po: Updated japanese translation.
......
......@@ -87,6 +87,7 @@ plug-ins/fp/fp.c
plug-ins/fp/fp_gtk.c
plug-ins/gap/gap_arr_dialog.c
plug-ins/gap/gap_dbbrowser_utils.c
plug-ins/gap/gap_decode_mpeg_main.c
plug-ins/gap/gap_filter_foreach.c
plug-ins/gap/gap_filter_main.c
plug-ins/gap/gap_lib.c
......
This diff is collapsed.
......@@ -606,7 +606,7 @@ msgstr "Farbausgleich funktioniert nur bei Echtfarbbildern."
#: app/color_balance.c:253 app/dodgeburn.c:128
msgid "Shadows"
msgstr "Shatten"
msgstr "Schatten"
#: app/color_balance.c:254 app/dodgeburn.c:127
msgid "Midtones"
......
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