GNOME Bugzilla – Bug 527416
Width of columns in people stock browser
Last modified: 2008-05-07 21:55:42 UTC
In the people stock browser, if people have: A) Long names (in particular for xmpp/email addresses when we don't have a better name) B) Long away messages C) Long music titles/albums. Then the columns can get very wide, and the browser looks ugly. For away/music messages, I think the solution is easy. Set the the size mode of the text labels to ellipsize and let the width of the columns be determined by the name. For the names it gets harder because we do want to size based on the size of the names, but only up to a point. Simple fix is to use the max_column_width property of the overview layout/table that we use in the app browser, though that is in pixels, which is less than ideal, since the names are in (if I'm not mistaken) the system font size. Two different slightly more complicated approaches: - Bind hippo_canvas_style_get_length(), use it to self.get_style().get_length("-hippo-max-column-width") which could be specified in ems in our CSS file. - Add a max-natural-width capability to HippoCanvasBox that would clamp the natural width to the min of max-natural-width and the minimum of the width of the item. (This a little similar to max-width in CSS, maybe close enough to reuse the name.) Something else to investigate is that I seem to get one column even when it looks like two columns would fit ... the flip point between one and two columns is in the wrong place, so probably some bug in OverviewLayout.
Hmm, ellipsizing the away/music won't help,and they may already be ellipsized, since what determines the column is the *natural* width of the item, not the max width. So the main quick fix would be to use the max_column_width for OverviewLayout.
Taking.
r7293 | otaylor | 2008-04-11 16:47:20 -0400 (Fri, 11 Apr 2008) | 3 lines Set a max column width and adjust sizes so that we get two columns by default. http://bugzilla.gnome.org/show_bug.cgi?id=527416