Commit fd6ff177 authored by Kevin Cozens's avatar Kevin Cozens Committed by Kevin Cozens
Browse files

First step in changing the UI to match the layout suggested in bug #82591.

2005-06-25  Kevin Cozens  <kcozens@cvs.gimp.org>

	* plug-ins/maze/maze_face.c: First step in changing the UI to match
	the layout suggested in bug #82591.
parent d588e744
2005-06-25 Kevin Cozens <kcozens@cvs.gimp.org>
* plug-ins/maze/maze_face.c: First step in changing the UI to match
the layout suggested in bug #82591.
2005-06-25 Sven Neumann <sven@gimp.org>
* app/widgets/gimpcolordisplayeditor.c: shortened bold labels.
......@@ -100,7 +105,7 @@
2005-06-24 Kevin Cozens <kcozens@cvs.gimp.org>
* plug-ins/script-fu/scripts/text-circle.scm: Incorporated changes
made by Daniel P. Stasinski in his text-circle3.scm script. Letters
made by Daniel P. Stasinski in his text-circle2.scm script. Letters
are now placed properly for both positive and negative fill angles.
Last(?) fix for bug #144588.
......
......@@ -162,15 +162,18 @@ static GtkWidget *msg_label;
gboolean
maze_dialog (void)
{
GtkWidget *dialog;
GtkWidget *vbox;
GtkWidget *table;
GtkWidget *tilecheck;
GtkWidget *entry;
GtkWidget *hbox;
GtkWidget *frame;
gboolean run;
gint trow = 0;
GtkWidget *dialog;
GtkWidget *vbox;
GtkWidget *vbox2;
GtkWidget *table;
GtkWidget *table2;
GtkWidget *tilecheck;
GtkWidget *entry;
GtkWidget *hbox;
GtkWidget *frame;
GtkSizeGroup *group;
gboolean run;
gint trow = 0;
gimp_ui_init ("maze", FALSE);
......@@ -193,6 +196,11 @@ maze_dialog (void)
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox),
vbox, FALSE, FALSE, 0);
/* The maze size frame */
frame = gimp_frame_new (_("Maze Size"));
gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0);
gtk_widget_show (frame);
#ifdef SHOW_PRNG_PRIVATES
table = gtk_table_new (8, 3, FALSE);
#else
......@@ -200,9 +208,11 @@ maze_dialog (void)
#endif
gtk_table_set_col_spacings (GTK_TABLE (table), 6);
gtk_table_set_row_spacings (GTK_TABLE (table), 6);
gtk_box_pack_start (GTK_BOX (vbox), table, TRUE, TRUE, 0);
gtk_container_add (GTK_CONTAINER (frame), table);
gtk_widget_show (table);
group = gtk_size_group_new (GTK_SIZE_GROUP_HORIZONTAL);
/* entscale == Entry and Scale pair function found in pixelize.c */
entry = entscale_int_new (table, 0, trow, _("Width (pixels):"),
&mvals.width,
......@@ -265,23 +275,28 @@ maze_dialog (void)
&mvals.offset);
#endif
/* Tileable checkbox */
tilecheck = gtk_check_button_new_with_label (_("Tileable"));
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (tilecheck), mvals.tile);
gimp_table_attach_aligned (GTK_TABLE (table), 0, trow,
NULL, 0.0, 0.5,
tilecheck, 1, FALSE);
trow++;
g_signal_connect (tilecheck, "clicked",
G_CALLBACK (gimp_toggle_button_update),
&mvals.tile);
g_object_unref (group);
/* The maze algorithm frame */
frame = gimp_frame_new (_("Algorithm"));
gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0);
gtk_widget_show (frame);
vbox2 = gtk_vbox_new (FALSE, 6);
gtk_container_add (GTK_CONTAINER (frame), vbox2);
gtk_widget_show (vbox2);
/* Seed input box */
table2 = gtk_table_new (3, 3, FALSE);
gtk_table_set_col_spacings (GTK_TABLE (table2), 6);
gtk_table_set_row_spacings (GTK_TABLE (table2), 6);
gtk_box_pack_start (GTK_BOX (vbox2), table2, FALSE, FALSE, 0);
gtk_widget_show (table2);
hbox = gimp_random_seed_new (&mvals.seed, &mvals.random_seed);
gimp_table_attach_aligned (GTK_TABLE (table), 0, trow,
gimp_table_attach_aligned (GTK_TABLE (table2), 0, 0,
_("Seed:"), 0.0, 0.5,
hbox, 1, TRUE);
trow++;
/* Algorithm Choice */
frame =
......@@ -294,7 +309,16 @@ maze_dialog (void)
NULL);
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox2), frame, FALSE, FALSE, 0);
/* Tileable checkbox */
tilecheck = gtk_check_button_new_with_label (_("Tileable"));
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (tilecheck), mvals.tile);
g_signal_connect (tilecheck, "clicked",
G_CALLBACK (gimp_toggle_button_update),
&mvals.tile);
gtk_box_pack_start (GTK_BOX (vbox2), tilecheck, FALSE, FALSE, 0);
msg_label = gtk_label_new (NULL);
gimp_label_set_attributes (GTK_LABEL (msg_label),
......
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