gnome-control-center r8623 - trunk/capplets/sound
- From: jensg svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-control-center r8623 - trunk/capplets/sound
- Date: Tue, 1 Apr 2008 19:41:51 +0100 (BST)
Author: jensg
Date: Tue Apr 1 19:41:51 2008
New Revision: 8623
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=8623&view=rev
Log:
2008-04-01 Jens Granseuer <jensgr gmx net>
* mixer-support.c: (create_mixer_device_tree_model): sort mixer devices
alphabetically (bug #525530)
Modified:
trunk/capplets/sound/ChangeLog
trunk/capplets/sound/mixer-support.c
Modified: trunk/capplets/sound/mixer-support.c
==============================================================================
--- trunk/capplets/sound/mixer-support.c (original)
+++ trunk/capplets/sound/mixer-support.c Tue Apr 1 19:41:51 2008
@@ -64,7 +64,7 @@
factory = gst_element_get_factory (mixer);
longname = gst_element_factory_get_longname (factory);
- factory_name = gst_plugin_feature_get_name (GST_PLUGIN_FEATURE (factory));
+ factory_name = gst_plugin_feature_get_name (GST_PLUGIN_FEATURE (factory));
/* gst_element_set_state (mixer, GST_STATE_NULL); */
@@ -88,10 +88,10 @@
g_free (device);
device = tmp;
} else {
- device = g_strdup (factory_name);
+ device = g_strdup (factory_name);
}
- gtk_list_store_insert_with_values (device_store, &tree_iter, -1,
+ gtk_list_store_insert_with_values (device_store, &tree_iter, -1,
MIXER_DEVICE_MODEL_NAME_COLUMN, name,
MIXER_DEVICE_MODEL_DEVICE_COLUMN, device,
MIXER_DEVICE_MODEL_MIXER_COLUMN, mixer,
@@ -106,6 +106,10 @@
g_list_free (mixer_list);
+ gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (device_store),
+ MIXER_DEVICE_MODEL_NAME_COLUMN,
+ GTK_SORT_ASCENDING);
+
return GTK_TREE_MODEL (device_store);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]