online-accounts: Remove horizontal scrolling from accounts list

We have enough space. Therefore, instead of having horizontal
scrollbars, widen the text renderer and then ellipsize, if required.

Implemented design:
https://live.gnome.org/Design/SystemSettings/OnlineAccounts

Fixes: https://bugzilla.gnome.org/671980
This commit is contained in:
Debarshi Ray 2012-04-04 17:28:54 +02:00
parent 93051830a7
commit f86d8eb26c
2 changed files with 7 additions and 1 deletions

View file

@ -177,6 +177,11 @@ goa_panel_init (GoaPanel *panel)
renderer = gtk_cell_renderer_text_new ();
gtk_tree_view_column_pack_start (column, renderer, FALSE);
g_object_set (G_OBJECT (renderer),
"ellipsize", PANGO_ELLIPSIZE_END,
"ellipsize-set", TRUE,
"width-chars", 30,
NULL);
gtk_tree_view_column_set_attributes (column,
renderer,
"markup", GOA_PANEL_ACCOUNTS_MODEL_COLUMN_MARKUP,

View file

@ -19,11 +19,12 @@
<object class="GtkScrolledWindow" id="accounts-tree-scrolledwindow">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">never</property>
<property name="shadow_type">in</property>
<property name="min_content_width">200</property>
<property name="min_content_height">250</property>
<child>
<object class="GtkTreeView" id="accounts-tree-treeview">
<property name="width_request">200</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="headers_visible">False</property>