[gnome-bluetooth] meego: try to keep the size of the visibility label constant



commit d28ce61441b0b76f34bc857a9fd2c543ebff54da
Author: Ross Burton <ross linux intel com>
Date:   Thu Apr 15 17:00:06 2010 +0100

    meego: try to keep the size of the visibility label constant

 moblin/moblin-panel.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/moblin/moblin-panel.c b/moblin/moblin-panel.c
index 3ef59b0..08de877 100644
--- a/moblin/moblin-panel.c
+++ b/moblin/moblin-panel.c
@@ -219,7 +219,8 @@ update_visible (gpointer data)
 		gtk_widget_show (priv->visible_label);
 
 		time = totem_time_to_string_text (priv->visible_countdown * 1000);
-		label = g_strdup_printf (_("Your computer is visible on Bluetooth for %s."), time);
+		label = g_strdup_printf (_("Your computer is visible on\n"
+					   "Bluetooth for %s."), time);
 		gtk_label_set_text (GTK_LABEL (priv->visible_label), label);
 		g_free (label);
 		g_free (time);
@@ -1572,7 +1573,9 @@ create_devices_page (MoblinPanel *self)
 	gtk_box_pack_start (GTK_BOX (hbox), priv->power_switch, FALSE, FALSE, 4);
 
 	priv->visible_label = gtk_label_new (NULL);
+	gtk_misc_set_alignment (GTK_MISC (priv->visible_label), 0.0, 0.5);
 	gtk_label_set_line_wrap (GTK_LABEL (priv->visible_label), TRUE);
+	gtk_label_set_width_chars (GTK_LABEL (priv->visible_label), 30);
 	gtk_box_pack_start (GTK_BOX (vbox), priv->visible_label, FALSE, FALSE, 4);
 
 	priv->visible_button = gtk_button_new_with_label (_("Make visible on Bluetooth"));



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