[gnome-bluetooth] Use the paired device name in summary page



commit 70b6676146f1897826828b86b929c195b0081adc
Author: Tambet Ingo <tambet gmail com>
Date:   Fri Dec 11 10:50:01 2009 +0200

    Use the paired device name in summary page
    
    Much nicer that 'Foobar'.

 moblin/moblin-panel.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/moblin/moblin-panel.c b/moblin/moblin-panel.c
index 438b059..374511c 100644
--- a/moblin/moblin-panel.c
+++ b/moblin/moblin-panel.c
@@ -71,6 +71,7 @@ struct _MoblinPanelPrivate
 	GtkWidget *label_pin;
 	GtkWidget *label_ssp_pin_help;
 	GtkWidget *label_ssp_pin;
+	GtkWidget *summary_frame;
 	GtkWidget *extra_config_vbox;
 	GtkWidget *label_failure;
 	GtkWidget *chooser;
@@ -679,8 +680,13 @@ set_current_page (MoblinPanel *self, MoblinPages page)
 		GValue value = { 0, };
 		const char **uuids;
 		GList *widgets;
+		char *title;
 		gboolean have_additional_widgets = FALSE;
 
+		title = g_strdup_printf (_("Successfully set up new device '%s'"), priv->target_name);
+		set_frame_title (GTK_FRAME (priv->summary_frame), title);
+		g_free (title);
+
 		if (bluetooth_chooser_get_selected_device_info (BLUETOOTH_CHOOSER (priv->chooser), "uuids", &value))
 			uuids = g_value_get_boxed (&value);
 		else
@@ -1148,8 +1154,8 @@ create_summary_page (MoblinPanel *self)
 	page = nbtk_gtk_frame_new ();
 	w = gtk_label_new (NULL);
 	gtk_frame_set_label_widget (GTK_FRAME (page), w);
-	set_frame_title (GTK_FRAME (page), _("Successfully setup new device 'Foobar'"));
 	gtk_widget_show (page);
+	priv->summary_frame = page;
 
 	vbox = gtk_vbox_new (FALSE, 12);
 	gtk_widget_show (vbox);



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