rhythmbox r6270 - in trunk: . widgets



Author: jmatthew
Date: Fri Apr  3 10:22:40 2009
New Revision: 6270
URL: http://svn.gnome.org/viewvc/rhythmbox?rev=6270&view=rev

Log:
2009-04-03  Jonathan Matthew  <jonathan d14n org>

	* widgets/rb-query-creator-properties.c:
	(create_time_unit_option_menu):
	* widgets/rb-query-creator.c: (rb_query_creator_constructor),
	(setup_sort_option_menu):
	Ensure all combo boxes always have an item selected.


Modified:
   trunk/ChangeLog
   trunk/widgets/rb-query-creator-properties.c
   trunk/widgets/rb-query-creator.c

Modified: trunk/widgets/rb-query-creator-properties.c
==============================================================================
--- trunk/widgets/rb-query-creator-properties.c	(original)
+++ trunk/widgets/rb-query-creator-properties.c	Fri Apr  3 10:22:40 2009
@@ -489,6 +489,7 @@
 	for (i = 0; i < length; i++) {
 		gtk_combo_box_append_text (GTK_COMBO_BOX (combo), _(options[i].name));
 	}
+	gtk_combo_box_set_active (GTK_COMBO_BOX (combo), 0);
 
 	return combo;
 }

Modified: trunk/widgets/rb-query-creator.c
==============================================================================
--- trunk/widgets/rb-query-creator.c	(original)
+++ trunk/widgets/rb-query-creator.c	Fri Apr  3 10:22:40 2009
@@ -232,6 +232,8 @@
 	priv->sort_menu = GTK_WIDGET (glade_xml_get_widget (xml, "sortMenu"));
 	priv->sort_desc = GTK_WIDGET (glade_xml_get_widget (xml, "sortDesc"));
 
+	gtk_combo_box_set_active (GTK_COMBO_BOX (priv->limit_option), 0);
+
 	g_signal_connect_object (G_OBJECT (priv->limit_check), "toggled", G_CALLBACK (limit_toggled_cb),
 				 creator, 0);
 	limit_toggled_cb (priv->limit_check, creator);
@@ -970,6 +972,7 @@
 	}
 
 	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);



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