# HG changeset patch # User Paul Aurich # Date 1248755706 0 # Node ID 99517a959c6bc251e8936cb897589fb55ac29794 # Parent c55bba399426a938f8f3e34af1d4b74f12a6bc42 ft: This functionality has been "offered" for umpteen years. Fool me once, shame on me. Fool me twice, shame on you, gtkft.c. diff -r c55bba399426 -r 99517a959c6b pidgin/gtkft.c --- a/pidgin/gtkft.c Tue Jul 28 03:09:54 2009 +0000 +++ b/pidgin/gtkft.c Tue Jul 28 04:35:06 2009 +0000 @@ -75,8 +75,6 @@ /* Buttons */ GtkWidget *open_button; - GtkWidget *pause_button; - GtkWidget *resume_button; GtkWidget *remove_button; GtkWidget *stop_button; GtkWidget *close_button; @@ -330,8 +328,6 @@ 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 @@ 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 @@ 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 @@ 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 -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 @@ 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);