[rhythmbox] media-player: fix properties dialog title (bug #606470)
- From: Jonathan Matthew <jmatthew src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rhythmbox] media-player: fix properties dialog title (bug #606470)
- Date: Sun, 17 Jan 2010 08:39:45 +0000 (UTC)
commit 8aebab4817bf9fd242167c20e91fd5efe459f1fd
Author: Jonathan Matthew <jonathan d14n org>
Date: Sun Jan 17 18:35:17 2010 +1000
media-player: fix properties dialog title (bug #606470)
Use the device name in the dialog title, rather than incorrectly calling
everything an iPod.
data/ui/media-player-properties.ui | 2 +-
sources/rb-media-player-source.c | 7 +++++++
2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/data/ui/media-player-properties.ui b/data/ui/media-player-properties.ui
index 5194cd8..8c1133c 100644
--- a/data/ui/media-player-properties.ui
+++ b/data/ui/media-player-properties.ui
@@ -5,7 +5,7 @@
<object class="GtkTreeStore" id="treestore1"/>
<object class="GtkDialog" id="media-player-properties">
<property name="visible">True</property>
- <property name="title" translatable="yes">iPod Properties</property>
+ <property name="title" translatable="yes">Media Player Properties</property>
<property name="type_hint">dialog</property>
<property name="has_separator">False</property>
<child internal-child="vbox">
diff --git a/sources/rb-media-player-source.c b/sources/rb-media-player-source.c
index 9e27d3a..df943a5 100644
--- a/sources/rb-media-player-source.c
+++ b/sources/rb-media-player-source.c
@@ -169,6 +169,7 @@ rb_media_player_source_show_properties (RBMediaPlayerSource *source)
const char *ui_file;
char *used_str;
char *capacity_str;
+ char *name;
char *text;
guint64 capacity;
guint64 free_space;
@@ -197,6 +198,12 @@ rb_media_player_source_show_properties (RBMediaPlayerSource *source)
G_CALLBACK (properties_dialog_response_cb),
source, 0);
+ g_object_get (source, "name", &name, NULL);
+ text = g_strdup_printf (_("%s Properties"), name);
+ gtk_window_set_title (GTK_WINDOW (priv->properties_dialog), text);
+ g_free (text);
+ g_free (name);
+
/*
* fill in some common details:
* - volume usage (need to hook up signals etc. to update this live)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]