summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-08-19 15:11:49 +0200
committerraveit65 <[email protected]>2017-08-19 15:11:49 +0200
commit67fb07d8b333ff4affae7ca5b37366652dad937d (patch)
tree26679e7a95e4c7db1869aa0f21caf43676f12cc9
parentecc5c08b411fa9c12044fa3ebd374b5b8b4dc543 (diff)
downloadcaja-67fb07d8b333ff4affae7ca5b37366652dad937d.tar.bz2
caja-67fb07d8b333ff4affae7ca5b37366652dad937d.tar.xz
open-with-dialog: set max-char-width for a label
use max_char_width for 'Select and application to view his description' label, as this can cause a window size jumping for this gui. Depends on language translations. Ie. german language was affected.
-rw-r--r--libcaja-private/caja-open-with-dialog.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcaja-private/caja-open-with-dialog.c b/libcaja-private/caja-open-with-dialog.c
index 07179683..f43ea133 100644
--- a/libcaja-private/caja-open-with-dialog.c
+++ b/libcaja-private/caja-open-with-dialog.c
@@ -884,6 +884,7 @@ caja_open_with_dialog_init (CajaOpenWithDialog *dialog)
gtk_misc_set_alignment (GTK_MISC (dialog->details->desc_label), 0.0, 0.5);
#endif
gtk_label_set_justify (GTK_LABEL (dialog->details->desc_label), GTK_JUSTIFY_LEFT);
+ gtk_label_set_max_width_chars (GTK_LABEL (dialog->details->desc_label), 54);
gtk_label_set_line_wrap (GTK_LABEL (dialog->details->desc_label), TRUE);
gtk_label_set_single_line_mode (GTK_LABEL (dialog->details->desc_label), FALSE);
gtk_box_pack_start (GTK_BOX (vbox2), dialog->details->desc_label, FALSE, FALSE, 0);