p2v: fix mode for gtk_label_set_line_wrap_mode

Accoding to its documentation [1], it takes as second parameter a
PangoWrapMode and not a GtkWrapMode.  While the change should reflect
the actual value intended, it should slightly change the label wrap
mode: GTK_WRAP_WORD is 2, which corresponds (as int value) to
PANGO_WRAP_WORD_CHAR.

[1] https://developer.gnome.org/gtk2/stable/GtkLabel.html#gtk-label-set-line-wrap-mode
This commit is contained in:
Pino Toscano
2015-10-05 14:39:33 +02:00
parent 29e6368f4c
commit 7c1bb1b40c

View File

@@ -525,7 +525,7 @@ create_conversion_dialog (struct config *config)
target_warning_label = gtk_label_new ("");
gtk_label_set_line_wrap (GTK_LABEL (target_warning_label), TRUE);
gtk_label_set_line_wrap_mode (GTK_LABEL (target_warning_label),
GTK_WRAP_WORD);
PANGO_WRAP_WORD);
gtk_widget_set_size_request (target_warning_label, -1, 7 * 16);
gtk_box_pack_end (GTK_BOX (target_vbox), target_warning_label, TRUE, TRUE, 0);