pidgin: 9c1125ab: ft: This functionality has been "offered...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Tue Jul 28 00:45:43 EDT 2009


-----------------------------------------------------------------
Revision: 9c1125abba639b96adf4f28fdba276f5b4a21eb0
Ancestor: 2d3c71cd060aec358a835e13aabe54d07ea730ac
Author: darkrain42 at pidgin.im
Date: 2009-07-28T04:35:06
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/9c1125abba639b96adf4f28fdba276f5b4a21eb0

Modified files:
        pidgin/gtkft.c

ChangeLog: 

ft: This functionality has been "offered" for umpteen years.

Fool me once, shame on me. Fool me twice, shame on you, gtkft.c.

-------------- next part --------------
============================================================
--- pidgin/gtkft.c	277b73dac5a654e69a564f3db7276253a4341297
+++ pidgin/gtkft.c	e4c60b4d21fb5b8db2adfa767900f8134817259f
@@ -75,8 +75,6 @@ struct _PidginXferDialog
 
 	/* Buttons */
 	GtkWidget *open_button;
-	GtkWidget *pause_button;
-	GtkWidget *resume_button;
 	GtkWidget *remove_button;
 	GtkWidget *stop_button;
 	GtkWidget *close_button;
@@ -330,8 +328,6 @@ update_buttons(PidginXferDialog *dialog,
 	if (dialog->selected_xfer == NULL) {
 		gtk_widget_set_sensitive(dialog->expander, FALSE);
 		gtk_widget_set_sensitive(dialog->open_button, FALSE);
-		gtk_widget_set_sensitive(dialog->pause_button, FALSE);
-		gtk_widget_set_sensitive(dialog->resume_button, FALSE);
 		gtk_widget_set_sensitive(dialog->stop_button, FALSE);
 
 		gtk_widget_show(dialog->stop_button);
@@ -361,8 +357,6 @@ update_buttons(PidginXferDialog *dialog,
 			gtk_widget_set_sensitive (dialog->open_button, FALSE);
 		}
 #endif
-		gtk_widget_set_sensitive(dialog->pause_button,  FALSE);
-		gtk_widget_set_sensitive(dialog->resume_button, FALSE);
 
 		gtk_widget_set_sensitive(dialog->remove_button, TRUE);
 	} else if (purple_xfer_is_canceled(xfer)) {
@@ -370,8 +364,6 @@ update_buttons(PidginXferDialog *dialog,
 		gtk_widget_show(dialog->remove_button);
 
 		gtk_widget_set_sensitive(dialog->open_button,  FALSE);
-		gtk_widget_set_sensitive(dialog->pause_button,  FALSE);
-		gtk_widget_set_sensitive(dialog->resume_button, FALSE);
 
 		gtk_widget_set_sensitive(dialog->remove_button, TRUE);
 	} else {
@@ -379,10 +371,6 @@ update_buttons(PidginXferDialog *dialog,
 		gtk_widget_hide(dialog->remove_button);
 
 		gtk_widget_set_sensitive(dialog->open_button,  FALSE);
-
-		/* TODO: If the transfer can pause, blah blah */
-		gtk_widget_set_sensitive(dialog->pause_button,  FALSE);
-		gtk_widget_set_sensitive(dialog->resume_button, FALSE);
 		gtk_widget_set_sensitive(dialog->stop_button,   TRUE);
 	}
 }
@@ -559,16 +547,6 @@ static void
 }
 
 static void
-pause_button_cb(GtkButton *button, PidginXferDialog *dialog)
-{
-}
-
-static void
-resume_button_cb(GtkButton *button, PidginXferDialog *dialog)
-{
-}
-
-static void
 remove_button_cb(GtkButton *button, PidginXferDialog *dialog)
 {
 	pidgin_xfer_dialog_remove_xfer(dialog, dialog->selected_xfer);
@@ -818,16 +796,6 @@ pidgin_xfer_dialog_new(void)
 	gtk_widget_set_sensitive(button, FALSE);
 	dialog->open_button = button;
 
-	/* Pause button */
-	button = pidgin_dialog_add_button(GTK_DIALOG(window), _("_Pause"), G_CALLBACK(pause_button_cb), dialog);
-	gtk_widget_set_sensitive(button, FALSE);
-	dialog->pause_button = button;
-
-	/* Resume button */
-	button = pidgin_dialog_add_button(GTK_DIALOG(window), _("_Resume"), G_CALLBACK(resume_button_cb), dialog);
-	gtk_widget_set_sensitive(button, FALSE);
-	dialog->resume_button = button;
-
 	/* Remove button */
 	button = pidgin_dialog_add_button(GTK_DIALOG(window), GTK_STOCK_REMOVE, G_CALLBACK(remove_button_cb), dialog);
 	gtk_widget_hide(button);


More information about the Commits mailing list