[nautilus-image-converter] Remove duplicate code creating the resize dialog, and get rid of some depreciated calls also



commit 856f5b2bfc49cfd59343399c319d4d74cc0c9135
Author: Brian Pepple <bpepple fedoraproject org>
Date:   Sun Feb 13 18:02:37 2011 -0500

    Remove duplicate code creating the resize dialog, and get rid of some depreciated calls also

 src/nautilus-image-resizer.c |   40 ----------------------------------------
 1 files changed, 0 insertions(+), 40 deletions(-)
---
diff --git a/src/nautilus-image-resizer.c b/src/nautilus-image-resizer.c
index 9bd596f..8c351c8 100644
--- a/src/nautilus-image-resizer.c
+++ b/src/nautilus-image-resizer.c
@@ -248,52 +248,12 @@ op_finished (GPid pid, gint status, gpointer data)
 }
 
 static void
-nautilus_image_resizer_cancel_cb (GtkDialog *dialog, gint response_id, gpointer user_data)
-{
-	NautilusImageResizer *resizer = NAUTILUS_IMAGE_RESIZER (user_data);
-	NautilusImageResizerPrivate *priv = NAUTILUS_IMAGE_RESIZER_GET_PRIVATE (resizer);
-	
-	priv->cancelled = TRUE;
-	gtk_dialog_set_response_sensitive (dialog, GTK_RESPONSE_CANCEL, FALSE);
-}
-
-static void
 run_op (NautilusImageResizer *resizer)
 {
 	NautilusImageResizerPrivate *priv = NAUTILUS_IMAGE_RESIZER_GET_PRIVATE (resizer);
 	
 	g_return_if_fail (priv->files != NULL);
 	
-	if (priv->progress_dialog == NULL) {
-		GtkWidget *vbox;
-		GtkWidget *label;
-		
-		priv->progress_dialog = gtk_dialog_new ();
-		gtk_window_set_title (GTK_WINDOW (priv->progress_dialog), "Resizing files");
-		gtk_dialog_add_button (GTK_DIALOG (priv->progress_dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
-		g_signal_connect (priv->progress_dialog, "response", G_CALLBACK (nautilus_image_resizer_cancel_cb), resizer);
-		
-		vbox = GTK_DIALOG (priv->progress_dialog)->vbox;
-		gtk_container_set_border_width (GTK_CONTAINER (priv->progress_dialog), 5);
-		gtk_box_set_spacing (GTK_BOX (vbox), 8);
-		gtk_window_set_default_size (GTK_WINDOW (priv->progress_dialog), 400, -1);
-		
-		
-		label = gtk_label_new ("<big><b>Resizing images</b></big>");
-		gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
-		gtk_misc_set_alignment (GTK_MISC (label), 0, 0);
-		gtk_box_pack_start_defaults (GTK_BOX (vbox), label);
-
-		priv->progress_bar = gtk_progress_bar_new ();
-		gtk_box_pack_start (GTK_BOX (vbox), priv->progress_bar, FALSE, FALSE, 0);
-
-		priv->progress_label = gtk_label_new ("");
-		gtk_misc_set_alignment (GTK_MISC (priv->progress_label), 0, 0);
-		gtk_box_pack_start_defaults (GTK_BOX (vbox), priv->progress_label);
-		
-		gtk_widget_show_all (priv->progress_dialog);
-	}
-	
 	NautilusFileInfo *file = NAUTILUS_FILE_INFO (priv->files->data);
 
 	GFile *orig_location = nautilus_file_info_get_location (file);



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