[gnome-control-center] media: re-add accidentally removed code



commit ebfaa486784535613c1f343c4f7136190c599424
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Dec 1 20:18:37 2010 +0100

    media: re-add accidentally removed code

 panels/media/cc-media-panel.c |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/panels/media/cc-media-panel.c b/panels/media/cc-media-panel.c
index 3ca27fd..ef37e59 100644
--- a/panels/media/cc-media-panel.c
+++ b/panels/media/cc-media-panel.c
@@ -433,12 +433,15 @@ media_panel_setup (CcMediaPanel *self)
   GtkTreeIter iter;
   GtkBuilder *builder = self->priv->builder;
 
-  const gchar *widget_names[] = {
-    "media_audio_cdda_combobox",
-    "media_video_dvd_combobox",
-    "media_music_player_combobox",
-    "media_dcf_combobox",
-    "media_software_combobox",
+  struct {
+    const gchar *widget_name;
+    const gchar *content_type;
+  } const defs[] = {
+    { "media_audio_cdda_combobox", "x-content/audio-cdda" },
+    { "media_video_dvd_combobox", "x-content/video-dvd" },
+    { "media_music_player_combobox", "x-content/audio-player" },
+    { "media_dcf_combobox", "x-content/image-dcf" },
+    { "media_software_combobox", "x-content/software" },
   };
 
   for (n = 0; n < G_N_ELEMENTS (defs); n++) {



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