[rhythmbox] podcast: ensure the subscribe button is insensitive after subscribing



commit 62e30d40714408feac7e1d6b68291b41c2de8584
Author: Jonathan Matthew <jonathan d14n org>
Date:   Fri Apr 5 08:16:14 2013 +1000

    podcast: ensure the subscribe button is insensitive after subscribing
    
    gtk_tree_selection_unselect_all doesn't emit selection-changed when
    the model is empty, so we can't rely on that to make the button
    insensitive.  If there was only one feed, the subscribe button
    would remain sensitive, and clicking it would cause a crash.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=697267

 podcast/rb-podcast-add-dialog.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/podcast/rb-podcast-add-dialog.c b/podcast/rb-podcast-add-dialog.c
index ec4e6d0..5d2c96f 100644
--- a/podcast/rb-podcast-add-dialog.c
+++ b/podcast/rb-podcast-add-dialog.c
@@ -479,6 +479,7 @@ subscribe_clicked_cb (GtkButton *button, RBPodcastAddDialog *dialog)
        dialog->priv->clearing = FALSE;
 
        gtk_tree_selection_unselect_all (gtk_tree_view_get_selection (GTK_TREE_VIEW 
(dialog->priv->feed_view)));
+       gtk_widget_set_sensitive (dialog->priv->subscribe_button, FALSE);
 }
 
 static void


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