help wrapping metadata fields



Hi there,

more than two years ago, I reported the following bug http://bugzilla.gnome.org/show_bug.cgi?id=319402: metadata must be wrapped and not ellipsized (this is what I have just understood after some time trying to understand the code).

With the following changes, metadata are wrapped:

--- ev-properties-view.c        2009-01-21 23:35:36.000000000 +0100
+++ evince-2.25.5/properties/ev-properties-view.c       2009-01-21
23:09:53.000000000 +0100
@@ -192,9 +192,10 @@
     label = gtk_label_new (NULL);
     g_object_set (G_OBJECT (label),
               "xalign", 0.0,
-              "width_chars", 25,
+              "width_chars", -1,
               "selectable", TRUE,
-              "ellipsize", PANGO_ELLIPSIZE_END,
+              "wrap", TRUE,
+              "wrap-mode", PANGO_WRAP_WORD,
               NULL);

but when resizing the window word wrap doesn't work.

I'm afraid I don't code (I don't even know whether the code is C or C++). But it seems that gtk_label_set_line_wrap() might explain how to solve the resizing issue.

Could anyone be so kind to fix my changes and commit them in the final code?

Many thanks for your help,


Pablo


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]