gimp r26252 - in trunk: . app/gui plug-ins/common
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26252 - in trunk: . app/gui plug-ins/common
- Date: Mon, 21 Jul 2008 13:41:00 +0000 (UTC)
Author: mitch
Date: Mon Jul 21 13:41:00 2008
New Revision: 26252
URL: http://svn.gnome.org/viewvc/gimp?rev=26252&view=rev
Log:
2008-07-21 Michael Natterer <mitch gimp org>
* app/gui/splash.c
* plug-ins/common/*.c: don't use gtk_box_pack_start_defaults(),
it got deprecated in GTK+ trunk.
Modified:
trunk/ChangeLog
trunk/app/gui/splash.c
trunk/plug-ins/common/alien-map.c
trunk/plug-ins/common/blinds.c
trunk/plug-ins/common/channel-mixer.c
trunk/plug-ins/common/color-exchange.c
trunk/plug-ins/common/color-to-alpha.c
trunk/plug-ins/common/contrast-retinex.c
trunk/plug-ins/common/convolution-matrix.c
trunk/plug-ins/common/cubism.c
trunk/plug-ins/common/deinterlace.c
trunk/plug-ins/common/destripe.c
trunk/plug-ins/common/edge-dog.c
trunk/plug-ins/common/edge.c
trunk/plug-ins/common/emboss.c
trunk/plug-ins/common/engrave.c
trunk/plug-ins/common/filter-pack.c
trunk/plug-ins/common/gif-save.c
trunk/plug-ins/common/illusion.c
trunk/plug-ins/common/jigsaw.c
trunk/plug-ins/common/lens-apply.c
trunk/plug-ins/common/lens-distortion.c
trunk/plug-ins/common/max-rgb.c
trunk/plug-ins/common/newsprint.c
trunk/plug-ins/common/nl-filter.c
trunk/plug-ins/common/noise-hsv.c
trunk/plug-ins/common/noise-solid.c
trunk/plug-ins/common/pixelize.c
trunk/plug-ins/common/plasma.c
trunk/plug-ins/common/polar-coords.c
trunk/plug-ins/common/ripple.c
trunk/plug-ins/common/shift.c
trunk/plug-ins/common/sparkle.c
trunk/plug-ins/common/tile-glass.c
trunk/plug-ins/common/value-propagate.c
trunk/plug-ins/common/waves.c
trunk/plug-ins/common/whirl-pinch.c
trunk/plug-ins/common/wind.c
Modified: trunk/app/gui/splash.c
==============================================================================
--- trunk/app/gui/splash.c (original)
+++ trunk/app/gui/splash.c Mon Jul 21 13:41:00 2008
@@ -151,7 +151,7 @@
splash->area = gtk_image_new_from_animation (pixbuf);
}
- gtk_box_pack_start_defaults (GTK_BOX (vbox), splash->area);
+ gtk_box_pack_start (GTK_BOX (vbox), splash->area, TRUE, TRUE, 0);
gtk_widget_show (splash->area);
gtk_widget_set_size_request (splash->area, splash->width, splash->height);
Modified: trunk/plug-ins/common/alien-map.c
==============================================================================
--- trunk/plug-ins/common/alien-map.c (original)
+++ trunk/plug-ins/common/alien-map.c Mon Jul 21 13:41:00 2008
@@ -412,8 +412,9 @@
gtk_widget_show (main_vbox);
preview = gimp_zoom_preview_new (drawable);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (dialog_update_preview),
drawable);
Modified: trunk/plug-ins/common/blinds.c
==============================================================================
--- trunk/plug-ins/common/blinds.c (original)
+++ trunk/plug-ins/common/blinds.c Mon Jul 21 13:41:00 2008
@@ -245,8 +245,9 @@
gtk_widget_show (main_vbox);
preview = gimp_aspect_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (dialog_update_preview),
drawable);
Modified: trunk/plug-ins/common/channel-mixer.c
==============================================================================
--- trunk/plug-ins/common/channel-mixer.c (original)
+++ trunk/plug-ins/common/channel-mixer.c Mon Jul 21 13:41:00 2008
@@ -511,8 +511,9 @@
gtk_widget_show (main_vbox);
preview = gimp_zoom_preview_new (drawable);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (cm_preview),
mix);
Modified: trunk/plug-ins/common/color-exchange.c
==============================================================================
--- trunk/plug-ins/common/color-exchange.c (original)
+++ trunk/plug-ins/common/color-exchange.c Mon Jul 21 13:41:00 2008
@@ -307,7 +307,7 @@
gtk_widget_show (main_vbox);
frame = gimp_frame_new (_("Middle-Click Inside Preview to Pick \"From Color\""));
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), frame);
+ gtk_box_pack_start (GTK_BOX (main_vbox), frame, TRUE, TRUE, 0);
gtk_widget_show (frame);
preview = gimp_drawable_preview_new (drawable, NULL);
Modified: trunk/plug-ins/common/color-to-alpha.c
==============================================================================
--- trunk/plug-ins/common/color-to-alpha.c (original)
+++ trunk/plug-ins/common/color-to-alpha.c Mon Jul 21 13:41:00 2008
@@ -396,8 +396,9 @@
gtk_widget_show (main_vbox);
preview = gimp_drawable_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect (preview, "invalidated",
G_CALLBACK (color_to_alpha_preview),
drawable);
Modified: trunk/plug-ins/common/contrast-retinex.c
==============================================================================
--- trunk/plug-ins/common/contrast-retinex.c (original)
+++ trunk/plug-ins/common/contrast-retinex.c Mon Jul 21 13:41:00 2008
@@ -305,7 +305,7 @@
gtk_widget_show (main_vbox);
preview = gimp_zoom_preview_new (drawable);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
g_signal_connect_swapped (preview, "invalidated",
Modified: trunk/plug-ins/common/convolution-matrix.c
==============================================================================
--- trunk/plug-ins/common/convolution-matrix.c (original)
+++ trunk/plug-ins/common/convolution-matrix.c Mon Jul 21 13:41:00 2008
@@ -927,8 +927,9 @@
gtk_widget_show (main_vbox);
preview = gimp_drawable_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (convolve_image),
drawable);
Modified: trunk/plug-ins/common/cubism.c
==============================================================================
--- trunk/plug-ins/common/cubism.c (original)
+++ trunk/plug-ins/common/cubism.c Mon Jul 21 13:41:00 2008
@@ -287,8 +287,9 @@
gtk_widget_show (main_vbox);
preview = gimp_drawable_preview_new (drawable, &cvals.preview);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (cubism),
drawable);
Modified: trunk/plug-ins/common/deinterlace.c
==============================================================================
--- trunk/plug-ins/common/deinterlace.c (original)
+++ trunk/plug-ins/common/deinterlace.c Mon Jul 21 13:41:00 2008
@@ -344,7 +344,7 @@
gtk_widget_show (main_vbox);
preview = gimp_drawable_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (deinterlace),
Modified: trunk/plug-ins/common/destripe.c
==============================================================================
--- trunk/plug-ins/common/destripe.c (original)
+++ trunk/plug-ins/common/destripe.c Mon Jul 21 13:41:00 2008
@@ -457,8 +457,9 @@
gtk_widget_show (main_vbox);
preview = gimp_drawable_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (destripe),
drawable);
Modified: trunk/plug-ins/common/edge-dog.c
==============================================================================
--- trunk/plug-ins/common/edge-dog.c (original)
+++ trunk/plug-ins/common/edge-dog.c Mon Jul 21 13:41:00 2008
@@ -297,8 +297,9 @@
gtk_widget_show (main_vbox);
preview = gimp_drawable_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, FALSE, FALSE, 0);
gtk_widget_show (preview);
+
g_signal_connect (preview, "invalidated",
G_CALLBACK (preview_update_preview),
drawable);
Modified: trunk/plug-ins/common/edge.c
==============================================================================
--- trunk/plug-ins/common/edge.c (original)
+++ trunk/plug-ins/common/edge.c Mon Jul 21 13:41:00 2008
@@ -652,8 +652,9 @@
gtk_widget_show (main_vbox);
preview = gimp_drawable_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect (preview, "invalidated",
G_CALLBACK (edge_preview_update),
NULL);
Modified: trunk/plug-ins/common/emboss.c
==============================================================================
--- trunk/plug-ins/common/emboss.c (original)
+++ trunk/plug-ins/common/emboss.c Mon Jul 21 13:41:00 2008
@@ -465,7 +465,7 @@
gtk_widget_show (main_vbox);
preview = gimp_drawable_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (emboss),
Modified: trunk/plug-ins/common/engrave.c
==============================================================================
--- trunk/plug-ins/common/engrave.c (original)
+++ trunk/plug-ins/common/engrave.c Mon Jul 21 13:41:00 2008
@@ -228,8 +228,9 @@
gtk_widget_show (main_vbox);
preview = gimp_drawable_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (engrave),
drawable);
Modified: trunk/plug-ins/common/filter-pack.c
==============================================================================
--- trunk/plug-ins/common/filter-pack.c (original)
+++ trunk/plug-ins/common/filter-pack.c Mon Jul 21 13:41:00 2008
@@ -1333,7 +1333,7 @@
gtk_widget_show (inner_vbox);
alignment = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
- gtk_box_pack_start_defaults (GTK_BOX (inner_vbox), alignment);
+ gtk_box_pack_start (GTK_BOX (inner_vbox), alignment, TRUE, TRUE, 0);
gtk_widget_show (alignment);
innermost_vbox = gtk_vbox_new (FALSE, 0);
Modified: trunk/plug-ins/common/gif-save.c
==============================================================================
--- trunk/plug-ins/common/gif-save.c (original)
+++ trunk/plug-ins/common/gif-save.c Mon Jul 21 13:41:00 2008
@@ -1051,7 +1051,7 @@
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
- gtk_box_pack_start_defaults (GTK_BOX (hbox), scrolled_window);
+ gtk_box_pack_start (GTK_BOX (hbox), scrolled_window, TRUE, TRUE, 0);
gtk_widget_show (scrolled_window);
text_buffer = gtk_text_buffer_new (NULL);
Modified: trunk/plug-ins/common/illusion.c
==============================================================================
--- trunk/plug-ins/common/illusion.c (original)
+++ trunk/plug-ins/common/illusion.c Mon Jul 21 13:41:00 2008
@@ -369,7 +369,7 @@
gtk_widget_show (main_vbox);
preview = gimp_zoom_preview_new (drawable);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
g_signal_connect (preview, "invalidated",
Modified: trunk/plug-ins/common/jigsaw.c
==============================================================================
--- trunk/plug-ins/common/jigsaw.c (original)
+++ trunk/plug-ins/common/jigsaw.c Mon Jul 21 13:41:00 2008
@@ -2435,8 +2435,9 @@
gtk_widget_show (main_vbox);
preview = gimp_aspect_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (jigsaw),
drawable);
Modified: trunk/plug-ins/common/lens-apply.c
==============================================================================
--- trunk/plug-ins/common/lens-apply.c (original)
+++ trunk/plug-ins/common/lens-apply.c Mon Jul 21 13:41:00 2008
@@ -412,8 +412,9 @@
gtk_widget_show (main_vbox);
preview = gimp_aspect_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (drawlens),
drawable);
Modified: trunk/plug-ins/common/lens-distortion.c
==============================================================================
--- trunk/plug-ins/common/lens-distortion.c (original)
+++ trunk/plug-ins/common/lens-distortion.c Mon Jul 21 13:41:00 2008
@@ -504,8 +504,9 @@
gtk_widget_show (main_vbox);
preview = gimp_zoom_preview_new (drawable);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (lens_distort_preview),
drawable);
Modified: trunk/plug-ins/common/max-rgb.c
==============================================================================
--- trunk/plug-ins/common/max-rgb.c (original)
+++ trunk/plug-ins/common/max-rgb.c Mon Jul 21 13:41:00 2008
@@ -278,8 +278,9 @@
gtk_widget_show (main_vbox);
preview = gimp_zoom_preview_new (drawable);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (main_function),
drawable);
Modified: trunk/plug-ins/common/newsprint.c
==============================================================================
--- trunk/plug-ins/common/newsprint.c (original)
+++ trunk/plug-ins/common/newsprint.c Mon Jul 21 13:41:00 2008
@@ -1216,8 +1216,9 @@
gtk_widget_show (vbox);
preview = gimp_drawable_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (hbox), preview);
+ gtk_box_pack_start (GTK_BOX (hbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (newsprint),
drawable);
Modified: trunk/plug-ins/common/nl-filter.c
==============================================================================
--- trunk/plug-ins/common/nl-filter.c (original)
+++ trunk/plug-ins/common/nl-filter.c Mon Jul 21 13:41:00 2008
@@ -1034,8 +1034,9 @@
gtk_widget_show (main_vbox);
preview = gimp_drawable_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (nlfilter),
drawable);
Modified: trunk/plug-ins/common/noise-hsv.c
==============================================================================
--- trunk/plug-ins/common/noise-hsv.c (original)
+++ trunk/plug-ins/common/noise-hsv.c Mon Jul 21 13:41:00 2008
@@ -380,7 +380,7 @@
gtk_widget_show (main_vbox);
preview = gimp_drawable_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
g_signal_connect (preview, "invalidated",
Modified: trunk/plug-ins/common/noise-solid.c
==============================================================================
--- trunk/plug-ins/common/noise-solid.c (original)
+++ trunk/plug-ins/common/noise-solid.c Mon Jul 21 13:41:00 2008
@@ -582,8 +582,9 @@
gtk_widget_show (main_vbox);
preview = gimp_aspect_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (solid_noise),
drawable);
Modified: trunk/plug-ins/common/pixelize.c
==============================================================================
--- trunk/plug-ins/common/pixelize.c (original)
+++ trunk/plug-ins/common/pixelize.c Mon Jul 21 13:41:00 2008
@@ -333,7 +333,7 @@
gtk_widget_show (main_vbox);
preview = gimp_drawable_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (pixelize),
Modified: trunk/plug-ins/common/plasma.c
==============================================================================
--- trunk/plug-ins/common/plasma.c (original)
+++ trunk/plug-ins/common/plasma.c Mon Jul 21 13:41:00 2008
@@ -319,8 +319,9 @@
gtk_widget_show (main_vbox);
preview = gimp_aspect_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (plasma_seed_changed_callback),
drawable);
Modified: trunk/plug-ins/common/polar-coords.c
==============================================================================
--- trunk/plug-ins/common/polar-coords.c (original)
+++ trunk/plug-ins/common/polar-coords.c Mon Jul 21 13:41:00 2008
@@ -612,8 +612,9 @@
/* Preview */
preview = gimp_zoom_preview_new (drawable);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (dialog_update_preview),
drawable);
Modified: trunk/plug-ins/common/ripple.c
==============================================================================
--- trunk/plug-ins/common/ripple.c (original)
+++ trunk/plug-ins/common/ripple.c Mon Jul 21 13:41:00 2008
@@ -488,8 +488,9 @@
gtk_widget_show (main_vbox);
preview = gimp_drawable_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (ripple),
drawable);
Modified: trunk/plug-ins/common/shift.c
==============================================================================
--- trunk/plug-ins/common/shift.c (original)
+++ trunk/plug-ins/common/shift.c Mon Jul 21 13:41:00 2008
@@ -374,10 +374,12 @@
gtk_widget_show (main_vbox);
preview = gimp_drawable_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
- G_CALLBACK (shift), drawable);
+ G_CALLBACK (shift),
+ drawable);
frame = gimp_int_radio_group_new (FALSE, NULL,
G_CALLBACK (gimp_radio_button_update),
Modified: trunk/plug-ins/common/sparkle.c
==============================================================================
--- trunk/plug-ins/common/sparkle.c (original)
+++ trunk/plug-ins/common/sparkle.c Mon Jul 21 13:41:00 2008
@@ -356,7 +356,7 @@
gtk_widget_show (main_vbox);
preview = gimp_drawable_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (sparkle),
Modified: trunk/plug-ins/common/tile-glass.c
==============================================================================
--- trunk/plug-ins/common/tile-glass.c (original)
+++ trunk/plug-ins/common/tile-glass.c Mon Jul 21 13:41:00 2008
@@ -269,8 +269,9 @@
gtk_widget_show (main_vbox);
preview = gimp_drawable_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (glasstile),
drawable);
Modified: trunk/plug-ins/common/value-propagate.c
==============================================================================
--- trunk/plug-ins/common/value-propagate.c (original)
+++ trunk/plug-ins/common/value-propagate.c Mon Jul 21 13:41:00 2008
@@ -1082,8 +1082,9 @@
gtk_widget_show (main_vbox);
preview = gimp_drawable_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (value_propagate_body),
drawable);
Modified: trunk/plug-ins/common/waves.c
==============================================================================
--- trunk/plug-ins/common/waves.c (original)
+++ trunk/plug-ins/common/waves.c Mon Jul 21 13:41:00 2008
@@ -267,8 +267,9 @@
gtk_widget_show (main_vbox);
preview = gimp_zoom_preview_new (drawable);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (waves_preview),
drawable);
Modified: trunk/plug-ins/common/whirl-pinch.c
==============================================================================
--- trunk/plug-ins/common/whirl-pinch.c (original)
+++ trunk/plug-ins/common/whirl-pinch.c Mon Jul 21 13:41:00 2008
@@ -547,8 +547,9 @@
gtk_widget_show (main_vbox);
preview = gimp_zoom_preview_new (drawable);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
G_CALLBACK (dialog_update_preview),
drawable);
Modified: trunk/plug-ins/common/wind.c
==============================================================================
--- trunk/plug-ins/common/wind.c (original)
+++ trunk/plug-ins/common/wind.c Mon Jul 21 13:41:00 2008
@@ -898,10 +898,12 @@
gtk_widget_show (main_vbox);
preview = gimp_drawable_preview_new (drawable, NULL);
- gtk_box_pack_start_defaults (GTK_BOX (main_vbox), preview);
+ gtk_box_pack_start (GTK_BOX (main_vbox), preview, TRUE, TRUE, 0);
gtk_widget_show (preview);
+
g_signal_connect_swapped (preview, "invalidated",
- G_CALLBACK (render_effect), drawable);
+ G_CALLBACK (render_effect),
+ drawable);
/*****************************************************
outer frame and table
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]