Commit ed6b14f0 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

keep the previews from expanding. Fixes bug #172284.

2005-04-01  Sven Neumann  <sven@gimp.org>

	* plug-ins/rcm/rcm_dialog.c: keep the previews from expanding. Fixes
	bug #172284.
parent 7b18c95e
2005-04-01 Sven Neumann <sven@gimp.org>
* plug-ins/rcm/rcm_dialog.c: keep the previews from expanding. Fixes
bug #172284.
2005-04-01 Sven Neumann <sven@gimp.org>
* configure.in (ALL_LINGUAS): removed sl until all required files
......
......@@ -71,21 +71,26 @@
/* Previews: create one preview */
static void
static GtkWidget *
rcm_create_one_preview (GtkWidget **preview,
GtkWidget **frame,
gint previewWidth,
gint previewHeight)
gint width,
gint height)
{
*frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (*frame), GTK_SHADOW_IN);
gtk_widget_show (*frame);
GtkWidget *align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
GtkWidget *frame;
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
gtk_container_add (GTK_CONTAINER (align), frame);
gtk_widget_show (frame);
*preview = gimp_preview_area_new ();
gtk_widget_set_size_request (*preview, previewWidth, previewHeight);
gtk_container_add (GTK_CONTAINER (*frame), *preview);
gtk_widget_set_size_request (*preview, width, height);
gtk_container_add (GTK_CONTAINER (frame), *preview);
gtk_widget_show (*preview);
return align;
}
......@@ -112,8 +117,9 @@ rcm_create_previews (void)
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
rcm_create_one_preview (&Current.Bna->before, &frame,
Current.reduced->width, Current.reduced->height);
frame = rcm_create_one_preview (&Current.Bna->before,
Current.reduced->width,
Current.reduced->height);
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
......@@ -125,8 +131,9 @@ rcm_create_previews (void)
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
rcm_create_one_preview (&Current.Bna->after, &frame,
Current.reduced->width, Current.reduced->height);
frame = rcm_create_one_preview (&Current.Bna->after,
Current.reduced->width,
Current.reduced->height);
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 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