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

plug-ins/common/papertile.c plug-ins/common/pat.c

2004-05-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/papertile.c
	* plug-ins/common/pat.c
	* plug-ins/common/pixelize.c
	* plug-ins/common/png.c
	* plug-ins/common/postscript.c
	* plug-ins/common/psp.c: HIG-ified.
parent 08270066
2004-05-19 Sven Neumann <sven@gimp.org>
* plug-ins/common/papertile.c
* plug-ins/common/pat.c
* plug-ins/common/pixelize.c
* plug-ins/common/png.c
* plug-ins/common/postscript.c
* plug-ins/common/psp.c: HIG-ified.
2004-05-19 Sven Neumann <sven@gimp.org>
* plug-ins/common/mapcolor.c
......
......@@ -228,9 +228,7 @@ open_dialog (void)
GtkWidget *vbox;
GtkWidget *table;
GtkWidget *frame;
GtkWidget *box;
GtkWidget *color_button;
GtkWidget *sep;
gimp_ui_init ("papertile", TRUE);
......@@ -243,31 +241,30 @@ open_dialog (void)
NULL);
main_hbox = gtk_hbox_new (FALSE, 5);
gtk_container_set_border_width (GTK_CONTAINER (main_hbox), 6);
main_hbox = gtk_hbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_hbox), 12);
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), main_hbox);
gtk_widget_show (main_hbox);
/* Left */
vbox = gtk_vbox_new (FALSE, 4);
vbox = gtk_vbox_new (FALSE, 12);
gtk_box_pack_start (GTK_BOX (main_hbox), vbox, FALSE, FALSE, 0);
gtk_widget_show (vbox);
frame = gtk_frame_new (_("Division"));
frame = gimp_frame_new (_("Division"));
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
table = gtk_table_new (3, 2, FALSE);
gtk_table_set_col_spacings (GTK_TABLE (table), 4);
gtk_table_set_row_spacings (GTK_TABLE (table), 2);
gtk_container_set_border_width (GTK_CONTAINER (table), 4);
gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_table_set_row_spacings (GTK_TABLE (table), 6);
gtk_container_add (GTK_CONTAINER (frame), table);
gtk_widget_show (table);
button = gimp_spin_button_new (&w.division_x_adj, p.params.division_x,
1.0, p.drawable->width, 1.0, 5.0, 0, 1, 0);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
_("_X:"), 1.0, 0.5,
_("_X:"), 0.0, 0.5,
button, 1, TRUE);
g_signal_connect (w.division_x_adj, "value_changed",
G_CALLBACK (division_x_adj_changed),
......@@ -276,7 +273,7 @@ open_dialog (void)
button = gimp_spin_button_new (&w.division_y_adj, p.params.division_y,
1.0, p.drawable->width, 1.0, 5.0, 0, 1, 0);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
_("_Y:"), 1.0, 0.5,
_("_Y:"), 0.0, 0.5,
button, 1, TRUE);
g_signal_connect (w.division_y_adj, "value_changed",
G_CALLBACK (division_y_adj_changed),
......@@ -287,7 +284,7 @@ open_dialog (void)
p.drawable->height),
1.0, 5.0, 0, 1, 0);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 2,
_("_Size:"), 1.0, 0.5,
_("_Size:"), 0.0, 0.5,
button, 1, TRUE);
g_signal_connect (w.tile_size_adj, "value_changed",
G_CALLBACK (tile_size_adj_changed),
......@@ -306,19 +303,13 @@ open_dialog (void)
FRACTIONAL_TYPE_FORCE, NULL,
NULL);
gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
box = GTK_BIN (frame)->child;
sep = gtk_hseparator_new ();
gtk_box_pack_start (GTK_BOX (box), sep, FALSE, FALSE, 1);
gtk_widget_show (sep);
button = gtk_check_button_new_with_mnemonic(_("C_entering"));
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button),
p.params.centering);
gtk_box_pack_start (GTK_BOX (box), button, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
gtk_widget_show (button);
g_signal_connect (button, "toggled",
......@@ -326,25 +317,24 @@ open_dialog (void)
&p.params.centering);
/* Right */
vbox = gtk_vbox_new (FALSE, 4);
gtk_box_pack_start (GTK_BOX (main_hbox), vbox, FALSE, FALSE, 0);
vbox = gtk_vbox_new (FALSE, 12);
gtk_box_pack_start (GTK_BOX (main_hbox), vbox, TRUE, TRUE, 0);
gtk_widget_show (vbox);
frame = gtk_frame_new (_("Movement"));
frame = gimp_frame_new (_("Movement"));
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
table = gtk_table_new (2, 2, FALSE);
gtk_table_set_col_spacings (GTK_TABLE (table), 4);
gtk_table_set_row_spacings (GTK_TABLE (table), 2);
gtk_container_set_border_width (GTK_CONTAINER (table), 4);
gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_table_set_row_spacings (GTK_TABLE (table), 6);
gtk_container_add (GTK_CONTAINER (frame), table);
gtk_widget_show (table);
button = gimp_spin_button_new (&adjustment, p.params.move_max_rate,
0.0, 100.0, 1.0, 10.0, 0, 1, 0);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
_("_Max (%):"), 1.0, 0.5,
_("_Max (%):"), 0.0, 0.5,
button, 1, TRUE);
g_signal_connect (adjustment, "value_changed",
G_CALLBACK (gimp_double_adjustment_update),
......
......@@ -509,9 +509,8 @@ save_dialog (void)
/* The main table */
table = gtk_table_new (1, 2, FALSE);
gtk_table_set_row_spacings (GTK_TABLE (table), 2);
gtk_table_set_col_spacings (GTK_TABLE (table), 4);
gtk_container_set_border_width (GTK_CONTAINER (table), 6);
gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_container_set_border_width (GTK_CONTAINER (table), 12);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), table, TRUE, TRUE, 0);
gtk_widget_show (table);
......
......@@ -97,25 +97,25 @@ typedef struct
/* Declare local functions.
*/
static void query (void);
static void run (const gchar *name,
static void query (void);
static void run (const gchar *name,
gint nparams,
const GimpParam *param,
gint *nreturn_vals,
GimpParam **return_vals);
static gint pixelize_dialog (GimpDrawable *drawable);
static gboolean pixelize_dialog (GimpDrawable *drawable);
static void pixelize (GimpDrawable *drawable);
static void pixelize_large (GimpDrawable *drawable,
static void pixelize (GimpDrawable *drawable);
static void pixelize_large (GimpDrawable *drawable,
gint pixelwidth,
gint pixelheight);
static void pixelize_small (GimpDrawable *drawable,
static void pixelize_small (GimpDrawable *drawable,
gint pixelwidth,
gint pixelheight,
gint tile_width,
gint tile_height);
static void pixelize_sub (gint pixelwidth,
static void pixelize_sub (gint pixelwidth,
gint pixelheight,
gint bpp,
gint has_alpha);
......@@ -300,11 +300,10 @@ run (const gchar *name,
gimp_drawable_detach (drawable);
}
static gint
static gboolean
pixelize_dialog (GimpDrawable *drawable)
{
GtkWidget *dlg;
GtkWidget *frame;
GtkWidget *vbox;
GtkWidget *sizeentry;
guint32 image_id;
......@@ -323,15 +322,9 @@ pixelize_dialog (GimpDrawable *drawable)
NULL);
/* parameter settings */
frame = gtk_frame_new (_("Parameter Settings"));
gtk_container_set_border_width (GTK_CONTAINER (frame), 6);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), frame, TRUE, TRUE, 0);
gtk_widget_show (frame);
vbox = gtk_vbox_new (FALSE, 4);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
gtk_container_add (GTK_CONTAINER (frame), vbox);
vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), vbox, TRUE, TRUE, 0);
gtk_widget_show (vbox);
image_id = gimp_drawable_get_image (drawable->drawable_id);
......
......@@ -129,12 +129,12 @@ static void respin_cmap (png_structp pp,
gint32 image_ID,
GimpDrawable *drawable);
static gint save_dialog (gint32 image_ID,
gboolean alpha);
static gboolean save_dialog (gint32 image_ID,
gboolean alpha);
static void save_dialog_response (GtkWidget *widget,
gint response_id,
gpointer data);
static void save_dialog_response (GtkWidget *widget,
gint response_id,
gpointer data);
static int find_unused_ia_colour (guchar *pixels,
gint numpixels,
......@@ -1547,13 +1547,12 @@ respin_cmap (png_structp pp,
}
static gint
static gboolean
save_dialog (gint32 image_ID,
gboolean alpha)
{
PngSaveGui pg;
GtkWidget *dlg;
GtkWidget *frame;
GtkWidget *table;
GtkWidget *toggle;
GtkObject *scale;
......@@ -1577,16 +1576,11 @@ save_dialog (gint32 image_ID,
G_CALLBACK (gtk_main_quit),
NULL);
frame = gtk_frame_new (_("Settings"));
gtk_container_set_border_width (GTK_CONTAINER (frame), 6);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), frame, TRUE, TRUE, 0);
gtk_widget_show (frame);
table = gtk_table_new (9, 3, FALSE);
gtk_table_set_col_spacings (GTK_TABLE (table), 4);
gtk_table_set_row_spacings (GTK_TABLE (table), 2);
gtk_container_set_border_width (GTK_CONTAINER (table), 6);
gtk_container_add (GTK_CONTAINER (frame), table);
gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_table_set_row_spacings (GTK_TABLE (table), 6);
gtk_container_set_border_width (GTK_CONTAINER (table), 12);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), table, TRUE, TRUE, 0);
gtk_widget_show (table);
pg.interlaced = toggle =
......
......@@ -257,9 +257,9 @@ static void dither_grey (guchar *grey,
/* Dialog-handling */
static gint load_dialog (void);
static void load_pages_entry_callback (GtkWidget *widget,
gpointer data);
static gboolean load_dialog (void);
static void load_pages_entry_callback (GtkWidget *widget,
gpointer data);
typedef struct
{
......@@ -267,9 +267,9 @@ typedef struct
gint level;
} SaveDialogVals;
static gint save_dialog (void);
static void save_unit_toggle_update (GtkWidget *widget,
gpointer data);
static gboolean save_dialog (void);
static void save_unit_toggle_update (GtkWidget *widget,
gpointer data);
GimpPlugInInfo PLUG_IN_INFO =
{
......@@ -2776,7 +2776,7 @@ save_rgb (FILE *ofp,
/* Load interface functions */
static gint
static gboolean
load_dialog (void)
{
GtkWidget *dialog;
......@@ -2802,36 +2802,35 @@ load_dialog (void)
NULL);
main_vbox = gtk_vbox_new (FALSE, 6);
gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 6);
main_vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 12);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), main_vbox,
FALSE, FALSE, 0);
gtk_widget_show (main_vbox);
hbox = gtk_hbox_new (FALSE, 6);
hbox = gtk_hbox_new (TRUE, 12);
gtk_box_pack_start (GTK_BOX (main_vbox), hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);
/* Rendering */
frame = gtk_frame_new (_("Rendering"));
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
frame = gimp_frame_new (_("Rendering"));
gtk_box_pack_start (GTK_BOX (hbox), frame, FALSE, TRUE, 0);
vbox = gtk_vbox_new (FALSE, 4);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
vbox = gtk_vbox_new (FALSE, 6);
gtk_container_add (GTK_CONTAINER (frame), vbox);
/* Resolution/Width/Height/Pages labels */
table = gtk_table_new (4, 2, FALSE);
gtk_table_set_row_spacings (GTK_TABLE (table), 2);
gtk_table_set_col_spacings (GTK_TABLE (table), 4);
gtk_table_set_row_spacings (GTK_TABLE (table), 6);
gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0);
gtk_widget_show (table);
spinbutton = gimp_spin_button_new (&adj, plvals.resolution,
5, 1440, 1, 10, 0, 1, 0);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
_("Resolution:"), 1.0, 0.5,
spinbutton, 1, TRUE);
_("Resolution:"), 0.0, 0.5,
spinbutton, 1, FALSE);
g_signal_connect (adj, "value_changed",
G_CALLBACK (gimp_int_adjustment_update),
&plvals.resolution);
......@@ -2839,8 +2838,8 @@ load_dialog (void)
spinbutton = gimp_spin_button_new (&adj, plvals.width,
1, GIMP_MAX_IMAGE_SIZE, 1, 10, 0, 1, 0);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
_("_Width:"), 1.0, 0.5,
spinbutton, 1, TRUE);
_("_Width:"), 0.0, 0.5,
spinbutton, 1, FALSE);
g_signal_connect (adj, "value_changed",
G_CALLBACK (gimp_int_adjustment_update),
&plvals.width);
......@@ -2848,8 +2847,8 @@ load_dialog (void)
spinbutton = gimp_spin_button_new (&adj, plvals.height,
1, GIMP_MAX_IMAGE_SIZE, 1, 10, 0, 1, 0);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 2,
_("_Height:"), 1.0, 0.5,
spinbutton, 1, TRUE);
_("_Height:"), 0.0, 0.5,
spinbutton, 1, FALSE);
g_signal_connect (adj, "value_changed",
G_CALLBACK (gimp_int_adjustment_update),
&plvals.height);
......@@ -2858,8 +2857,8 @@ load_dialog (void)
gtk_widget_set_size_request (pages_entry, 80, -1);
gtk_entry_set_text (GTK_ENTRY (pages_entry), plvals.pages);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 3,
_("Pages:"), 1.0, 0.5,
pages_entry, 1, TRUE);
_("Pages:"), 0.0, 0.5,
pages_entry, 1, FALSE);
g_signal_connect (pages_entry, "changed",
G_CALLBACK (load_pages_entry_callback),
NULL);
......@@ -2887,10 +2886,10 @@ load_dialog (void)
_("Automatic"), 7, NULL,
NULL);
gtk_box_pack_start (GTK_BOX (hbox), frame, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (hbox), frame, FALSE, TRUE, 0);
gtk_widget_show (frame);
hbox = gtk_hbox_new (TRUE, 6);
hbox = gtk_hbox_new (TRUE, 12);
gtk_box_pack_start (GTK_BOX (main_vbox), hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);
......@@ -2940,7 +2939,7 @@ load_pages_entry_callback (GtkWidget *widget,
/* Save interface functions */
static gint
static gboolean
save_dialog (void)
{
SaveDialogVals *vals;
......@@ -2968,37 +2967,37 @@ save_dialog (void)
NULL);
/* Main hbox */
hbox = gtk_hbox_new (FALSE, 6);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 6);
hbox = gtk_hbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (hbox), 12);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), hbox,
FALSE, FALSE, 0);
main_vbox[0] = main_vbox[1] = NULL;
for (j = 0; j < G_N_ELEMENTS (main_vbox); j++)
{
main_vbox[j] = gtk_vbox_new (FALSE, 4);
gtk_box_pack_start (GTK_BOX (hbox), main_vbox[j], TRUE, TRUE, 0);
main_vbox[j] = gtk_vbox_new (FALSE, 12);
gtk_box_pack_start (GTK_BOX (hbox), main_vbox[j], FALSE, TRUE, 0);
gtk_widget_show (main_vbox[j]);
}
/* Image Size */
frame = gtk_frame_new (_("Image Size"));
gtk_box_pack_start (GTK_BOX (main_vbox[0]), frame, TRUE, TRUE, 0);
frame = gimp_frame_new (_("Image Size"));
gtk_box_pack_start (GTK_BOX (main_vbox[0]), frame, FALSE, TRUE, 0);
vbox = gtk_vbox_new (FALSE, 4);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
vbox = gtk_vbox_new (FALSE, 6);
gtk_container_add (GTK_CONTAINER (frame), vbox);
/* Width/Height/X-/Y-offset labels */
table = gtk_table_new (4, 2, FALSE);
gtk_table_set_row_spacings (GTK_TABLE (table), 2);
gtk_table_set_col_spacings (GTK_TABLE (table), 4);
gtk_table_set_row_spacings (GTK_TABLE (table), 6);
gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0);
gtk_widget_show (table);
spinbutton = gimp_spin_button_new (&vals->adjustment[0], psvals.width,
1e-5, GIMP_MAX_IMAGE_SIZE, 1, 10, 0, 1, 2);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
_("_Width:"), 1.0, 0.5,
_("_Width:"), 0.0, 0.5,
spinbutton, 1, FALSE);
g_signal_connect (vals->adjustment[0], "value_changed",
G_CALLBACK (gimp_double_adjustment_update),
......@@ -3007,7 +3006,7 @@ save_dialog (void)
spinbutton = gimp_spin_button_new (&vals->adjustment[1], psvals.height,
1e-5, GIMP_MAX_IMAGE_SIZE, 1, 10, 0, 1, 2);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
_("_Height:"), 1.0, 0.5,
_("_Height:"), 0.0, 0.5,
spinbutton, 1, FALSE);
g_signal_connect (vals->adjustment[1], "value_changed",
G_CALLBACK (gimp_double_adjustment_update),
......@@ -3016,7 +3015,7 @@ save_dialog (void)
spinbutton = gimp_spin_button_new (&vals->adjustment[2], psvals.x_offset,
0.0, GIMP_MAX_IMAGE_SIZE, 1, 10, 0, 1, 2);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 2,
_("_X-Offset:"), 1.0, 0.5,
_("_X Offset:"), 0.0, 0.5,
spinbutton, 1, FALSE);
g_signal_connect (vals->adjustment[2], "value_changed",
G_CALLBACK (gimp_double_adjustment_update),
......@@ -3025,14 +3024,14 @@ save_dialog (void)
spinbutton = gimp_spin_button_new (&vals->adjustment[3], psvals.y_offset,
0.0, GIMP_MAX_IMAGE_SIZE, 1, 10, 0, 1, 2);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 3,
_("_Y-Offset:"), 1.0, 0.5,
_("_Y Offset:"), 0.0, 0.5,
spinbutton, 1, FALSE);
g_signal_connect (vals->adjustment[3], "value_changed",
G_CALLBACK (gimp_double_adjustment_update),
&psvals.y_offset);
toggle = gtk_check_button_new_with_mnemonic (_("_Keep Aspect Ratio"));
gtk_box_pack_start (GTK_BOX (vbox), toggle, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), psvals.keep_ratio);
gtk_widget_show (toggle);
......@@ -3055,7 +3054,7 @@ save_dialog (void)
NULL);
gtk_box_pack_start (GTK_BOX (vbox), uframe, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (main_vbox[0]), uframe, TRUE, TRUE, 0);
gtk_widget_show (uframe);
gtk_widget_show (vbox);
......@@ -3073,19 +3072,18 @@ save_dialog (void)
NULL);
gtk_box_pack_start (GTK_BOX (main_vbox[1]), frame, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (main_vbox[1]), frame, TRUE, TRUE, 0);
gtk_widget_show (frame);
/* Format */
frame = gtk_frame_new (_("Output"));
frame = gimp_frame_new (_("Output"));
gtk_box_pack_start (GTK_BOX (main_vbox[1]), frame, TRUE, TRUE, 0);
vbox = gtk_vbox_new (FALSE, 2);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 4);
vbox = gtk_vbox_new (FALSE, 6);
gtk_container_add (GTK_CONTAINER (frame), vbox);
toggle = gtk_check_button_new_with_mnemonic (_("_PostScript Level 2"));
gtk_box_pack_start (GTK_BOX (vbox), toggle, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), vals->level);
gtk_widget_show (toggle);
......@@ -3094,7 +3092,7 @@ save_dialog (void)
&vals->level);
toggle = gtk_check_button_new_with_mnemonic (_("_Encapsulated PostScript"));
gtk_box_pack_start (GTK_BOX (vbox), toggle, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), psvals.eps);
gtk_widget_show (toggle);
......@@ -3103,7 +3101,7 @@ save_dialog (void)
&psvals.eps);
toggle = gtk_check_button_new_with_mnemonic (_("P_review"));
gtk_box_pack_start (GTK_BOX (vbox), toggle, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), psvals.preview);
gtk_widget_show (toggle);
......@@ -3113,7 +3111,7 @@ save_dialog (void)
/* Preview size label/entry */
table = gtk_table_new (1, 2, FALSE);
gtk_table_set_col_spacings (GTK_TABLE (table), 4);
gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0);
gtk_widget_show (table);
......@@ -3134,9 +3132,6 @@ save_dialog (void)
gtk_widget_show (vbox);
gtk_widget_show (frame);
for (j = 0; j < G_N_ELEMENTS (main_vbox); j++)
gtk_widget_show (main_vbox[j]);
gtk_widget_show (hbox);
gtk_widget_show (dialog);
......
......@@ -396,7 +396,7 @@ query (void)
*/
}
static gint
static gboolean
save_dialog (void)
{
GtkWidget *dlg;
......@@ -423,7 +423,7 @@ save_dialog (void)
NULL);
gtk_container_set_border_width (GTK_CONTAINER (frame), 6);
gtk_container_set_border_width (GTK_CONTAINER (frame), 12);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), frame, FALSE, TRUE, 0);
gtk_widget_show (frame);
......
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