mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user