From: Zeeshan Ali (Khattak) Date: Wed, 16 Feb 2011 00:55:23 +0000 (+0200) Subject: data,ui: Remove MediaExport's title widgets X-Git-Tag: RYGEL_0_9_9~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba5f257e994414591224380bf961a21c0f202056;p=profile%2Fivi%2Frygel.git data,ui: Remove MediaExport's title widgets --- diff --git a/data/rygel-preferences.ui b/data/rygel-preferences.ui index 99e596f..1c06807 100644 --- a/data/rygel-preferences.ui +++ b/data/rygel-preferences.ui @@ -83,7 +83,7 @@ True False - 3 + 2 2 6 6 @@ -104,41 +104,6 @@ - - True - False - 0 - 12 - Ti_tle - True - - - 1 - 2 - GTK_FILL - GTK_FILL - - - - - True - True - True - Write %u for username, %n for real name of the user and %h for host name - Write %u for username, %n for real name of the user and %h for host name - ● - 30 - True - - - 1 - 2 - 1 - 2 - GTK_FILL - - - True False diff --git a/src/ui/rygel-media-export-pref-section.vala b/src/ui/rygel-media-export-pref-section.vala index ba32731..8902a3c 100644 --- a/src/ui/rygel-media-export-pref-section.vala +++ b/src/ui/rygel-media-export-pref-section.vala @@ -25,8 +25,6 @@ using Gee; public class Rygel.MediaExportPrefSection : PreferencesSection { const string ENABLED_CHECK = "-enabled-checkbutton"; - const string TITLE_LABEL = "-title-label"; - const string TITLE_ENTRY = "-title-entry"; const string NAME = "MediaExport"; const string URIS_KEY = "uris"; const string URIS_LABEL = URIS_KEY + "-label"; @@ -38,8 +36,6 @@ public class Rygel.MediaExportPrefSection : PreferencesSection { const string CLEAR_BUTTON = "clear-button"; private CheckButton enabled_check; - private Entry title_entry; - private ArrayList widgets; // All widgets in this section private TreeView treeview; @@ -55,13 +51,6 @@ public class Rygel.MediaExportPrefSection : PreferencesSection { this.enabled_check = (CheckButton) builder.get_object (name.down () + ENABLED_CHECK); assert (this.enabled_check != null); - this.title_entry = (Entry) builder.get_object (name.down () + - TITLE_ENTRY); - assert (this.title_entry != null); - var title_label = (Label) builder.get_object (name.down () + - TITLE_LABEL); - assert (title_label != null); - this.widgets.add (title_label); try { this.enabled_check.active = config.get_enabled (name); @@ -69,18 +58,6 @@ public class Rygel.MediaExportPrefSection : PreferencesSection { this.enabled_check.active = false; } - string title; - try { - title = config.get_title (name); - } catch (GLib.Error err) { - title = name; - } - - title = title.replace ("@REALNAME@", "%n"); - title = title.replace ("@USERNAME@", "%u"); - title = title.replace ("@HOSTNAME@", "%h"); - this.title_entry.set_text (title); - this.enabled_check.toggled.connect (this.on_enabled_check_toggled); this.treeview = (TreeView) builder.get_object (URIS_TEXTVIEW); @@ -136,11 +113,6 @@ public class Rygel.MediaExportPrefSection : PreferencesSection { UserConfig.ENABLED_KEY, this.enabled_check.active); - var title = this.title_entry.get_text ().replace ("%n", "@REALNAME@"); - title = title.replace ("%u", "@USERNAME@"); - title = title.replace ("%h", "@HOSTNAME@"); - this.config.set_string (this.name, UserConfig.TITLE_KEY, title); - TreeIter iter; var uri_list = new ArrayList ();