[network-manager-vpnc] auth-dialog: limit label width characters
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [network-manager-vpnc] auth-dialog: limit label width characters
- Date: Fri,  4 Nov 2011 01:52:14 +0000 (UTC)
commit 20e6ab91ebddbfa2bd6d49db3036b898d68a9319
Author: Dan Williams <dcbw redhat com>
Date:   Thu Nov 3 20:51:43 2011 -0500
    auth-dialog: limit label width characters
    
    So that later GTK get the label wrapping right, apparently
    GTK 3.2 and later don't bother to wordwrap the label at all.
 auth-dialog/vpn-password-dialog.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/auth-dialog/vpn-password-dialog.c b/auth-dialog/vpn-password-dialog.c
index 2206c7a..f124317 100644
--- a/auth-dialog/vpn-password-dialog.c
+++ b/auth-dialog/vpn-password-dialog.c
@@ -280,6 +280,7 @@ vpn_password_dialog_new (const char *title,
 		message_label = GTK_LABEL (gtk_label_new (message));
 		gtk_label_set_justify (message_label, GTK_JUSTIFY_LEFT);
 		gtk_label_set_line_wrap (message_label, TRUE);
+		gtk_label_set_max_width_chars (message_label, 35);
 		gtk_size_group_add_widget (priv->group, GTK_WIDGET (message_label));
 		gtk_box_pack_start (GTK_BOX (main_vbox), GTK_WIDGET (message_label), FALSE, FALSE, 0);
 		gtk_size_group_add_widget (priv->group, priv->table_alignment);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]