[gthumb/gthumb-2-14] resize_images: update width and height after connecting the signals



commit 4f2ca08b8c588c22ee7819c0f5d80699ec03ef7c
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Oct 25 12:30:34 2011 +0200

    resize_images: update width and height after connecting the signals
    
    this fixes a run-time warning

 extensions/resize_images/dlg-resize-images.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extensions/resize_images/dlg-resize-images.c b/extensions/resize_images/dlg-resize-images.c
index 28e79de..7bfd0f9 100644
--- a/extensions/resize_images/dlg-resize-images.c
+++ b/extensions/resize_images/dlg-resize-images.c
@@ -340,8 +340,6 @@ dlg_resize_images (GthBrowser *browser,
 		gtk_spin_button_set_value (GTK_SPIN_BUTTON (GET_WIDGET ("height_spinbutton")), data->latest_height_in_pixel);
 	}
 
-	update_width_height_properties (data);
-
 	savers = gth_main_get_type_set ("pixbuf-saver");
 	if (savers != NULL) {
 		GtkListStore *list_store;
@@ -433,6 +431,8 @@ dlg_resize_images (GthBrowser *browser,
 
 	/* Run dialog. */
 
+	update_width_height_properties (data);
+
         if (GTH_IS_FILE_SOURCE_VFS (gth_browser_get_location_source (browser)))
         	gtk_widget_hide (GET_WIDGET ("use_destination_checkbutton"));
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]