From 67fb07d8b333ff4affae7ca5b37366652dad937d Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sat, 19 Aug 2017 15:11:49 +0200 Subject: 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. --- libcaja-private/caja-open-with-dialog.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.1