[rhythmbox] query-creator: set default sort order after connecting handlers



commit 677de5c29b9142f75e83b82f716592ea554b3fad
Author: Jonathan Matthew <jonathan d14n org>
Date:   Tue Aug 23 08:14:47 2016 +1000

    query-creator: set default sort order after connecting handlers
    
    This fixes the initial sort order description.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=770209

 widgets/rb-query-creator.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/widgets/rb-query-creator.c b/widgets/rb-query-creator.c
index c2edf4b..c410831 100644
--- a/widgets/rb-query-creator.c
+++ b/widgets/rb-query-creator.c
@@ -965,8 +965,8 @@ setup_sort_option_menu (RBQueryCreator *creator,
        }
 
        gtk_combo_box_set_model (GTK_COMBO_BOX (option_menu), GTK_TREE_MODEL (store));
-       gtk_combo_box_set_active (GTK_COMBO_BOX (option_menu), 0);
 
        g_signal_connect_object (G_OBJECT (option_menu), "changed",
                                 G_CALLBACK (sort_option_menu_changed), creator, 0);
+       gtk_combo_box_set_active (GTK_COMBO_BOX (option_menu), 0);
 }


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