[evolution/evolution-3-12] Bug 729305 - EAlertDialog too wide with wrapped GtkLabel-s
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/evolution-3-12] Bug 729305 - EAlertDialog too wide with wrapped GtkLabel-s
- Date: Mon, 13 Oct 2014 12:14:43 +0000 (UTC)
commit f79e4215a5ffb5eed37fd2716363bb19b956ee49
Author: Milan Crha <mcrha redhat com>
Date: Mon Oct 13 14:12:24 2014 +0200
Bug 729305 - EAlertDialog too wide with wrapped GtkLabel-s
e-util/e-alert-dialog.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-alert-dialog.c b/e-util/e-alert-dialog.c
index a85c7fe..e072775 100644
--- a/e-util/e-alert-dialog.c
+++ b/e-util/e-alert-dialog.c
@@ -240,6 +240,8 @@ alert_dialog_constructed (GObject *object)
gtk_label_set_attributes (GTK_LABEL (widget), list);
gtk_label_set_line_wrap (GTK_LABEL (widget), TRUE);
gtk_label_set_selectable (GTK_LABEL (widget), TRUE);
+ gtk_label_set_width_chars (GTK_LABEL (widget), 40);
+ gtk_label_set_max_width_chars (GTK_LABEL (widget), 60);
gtk_misc_set_alignment (GTK_MISC (widget), 0.0, 0.0);
gtk_box_pack_start (GTK_BOX (container), widget, FALSE, FALSE, 0);
gtk_widget_set_can_focus (widget, FALSE);
@@ -248,6 +250,8 @@ alert_dialog_constructed (GObject *object)
widget = gtk_label_new (secondary);
gtk_label_set_line_wrap (GTK_LABEL (widget), TRUE);
gtk_label_set_selectable (GTK_LABEL (widget), TRUE);
+ gtk_label_set_width_chars (GTK_LABEL (widget), 60);
+ gtk_label_set_max_width_chars (GTK_LABEL (widget), 80);
gtk_misc_set_alignment (GTK_MISC (widget), 0.0, 0.0);
gtk_box_pack_start (GTK_BOX (container), widget, FALSE, FALSE, 0);
gtk_widget_set_can_focus (widget, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]