[network-manager-openvpn] auth-dialog: limit label width characters
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openvpn] auth-dialog: limit label width characters
- Date: Tue, 13 Dec 2011 00:36:11 +0000 (UTC)
commit 57ba64a01faf9ad0acd903ddb6702d92b793734b
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 590fb05..6c976a3 100644
--- a/auth-dialog/vpn-password-dialog.c
+++ b/auth-dialog/vpn-password-dialog.c
@@ -281,6 +281,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]