В Чтв, 22/01/2009 в 00:17 +0100, Pablo Rodríguez пишет: > 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, As I wrote it used to be wrapped, but due to the problems with nautilus page size it was changed to ellipsis. If you could intellecutally restrict the size of the page that would work, otherwise large metadata contents could make page too big to fit the screen. I wonder if GtkLabel has or should have something like vertical ellipsis so the label will not be bigger than 3 lines.
Attachment:
signature.asc
Description: =?koi8-r?Q?=FC=D4=C1?= =?koi8-r?Q?_=DE=C1=D3=D4=D8?= =?koi8-r?Q?_=D3=CF=CF=C2=DD=C5=CE=C9=D1?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=C1=CE=C1?= =?koi8-r?Q?_=C3=C9=C6=D2=CF=D7=CF=CA?= =?koi8-r?Q?_=D0=CF=C4=D0=C9=D3=D8=C0?=