[gedit] close confirm dialog: max width for labels (multiple docs)
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] close confirm dialog: max width for labels (multiple docs)
- Date: Mon, 26 May 2014 13:46:42 +0000 (UTC)
commit b783f0134ea33c96f48c528d0a5e763394881e8f
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon May 26 15:44:55 2014 +0200
close confirm dialog: max width for labels (multiple docs)
https://bugzilla.gnome.org/show_bug.cgi?id=730693
gedit/gedit-close-confirmation-dialog.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-close-confirmation-dialog.c b/gedit/gedit-close-confirmation-dialog.c
index d0d2be1..c24dd71 100644
--- a/gedit/gedit-close-confirmation-dialog.c
+++ b/gedit/gedit-close-confirmation-dialog.c
@@ -565,6 +565,7 @@ build_multiple_docs_dialog (GeditCloseConfirmationDialog *dlg)
gtk_widget_set_valign (primary_label, GTK_ALIGN_START);
gtk_label_set_selectable (GTK_LABEL (primary_label), TRUE);
gtk_widget_set_can_focus (primary_label, FALSE);
+ gtk_label_set_max_width_chars (GTK_LABEL (primary_label), 72);
if (priv->disable_save_to_disk)
{
@@ -606,6 +607,7 @@ build_multiple_docs_dialog (GeditCloseConfirmationDialog *dlg)
gtk_box_pack_start (GTK_BOX (vbox2), select_label, FALSE, FALSE, 0);
gtk_label_set_line_wrap (GTK_LABEL (select_label), TRUE);
+ gtk_label_set_max_width_chars (GTK_LABEL (select_label), 72);
gtk_widget_set_halign (select_label, GTK_ALIGN_START);
scrolledwindow = gtk_scrolled_window_new (NULL, NULL);
@@ -633,6 +635,7 @@ build_multiple_docs_dialog (GeditCloseConfirmationDialog *dlg)
gtk_widget_set_halign (secondary_label, GTK_ALIGN_CENTER);
gtk_widget_set_valign (secondary_label, GTK_ALIGN_START);
gtk_label_set_selectable (GTK_LABEL (secondary_label), TRUE);
+ gtk_label_set_max_width_chars (GTK_LABEL (secondary_label), 72);
gtk_label_set_mnemonic_widget (GTK_LABEL (select_label), priv->list_box);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]