[network-manager-applet] bluetooth: don't enlarge dialog wider than screen on some errors



commit 9b065e8cf602af03d5ae09316e3398023f08b003
Author: Dan Williams <dcbw redhat com>
Date:   Wed Feb 15 19:44:54 2012 -0600

    bluetooth: don't enlarge dialog wider than screen on some errors
    
    Constrain the GTK label so GTK doesn't make it larger than the
    screen by failing to wordwrap.

 src/gnome-bluetooth/bt-widget.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-bluetooth/bt-widget.c b/src/gnome-bluetooth/bt-widget.c
index 32b3af5..bf55695 100644
--- a/src/gnome-bluetooth/bt-widget.c
+++ b/src/gnome-bluetooth/bt-widget.c
@@ -1127,6 +1127,8 @@ get_config_widgets (const char *bdaddr, const char **uuids)
 	gtk_box_pack_start (GTK_BOX (hbox), info->hbox, FALSE, FALSE, 0);
 
 	info->label = gtk_label_new ("");
+	gtk_label_set_max_width_chars (GTK_LABEL (info->label), 80);
+	gtk_label_set_line_wrap (GTK_LABEL (info->label), TRUE);
 	gtk_box_pack_start (GTK_BOX (hbox), info->label, FALSE, TRUE, 6);
 
 	default_adapter_powered_changed (G_OBJECT (info->btclient), NULL, info);



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