[Xfce4-commits] <design:master> Set ellipsize again.
Nick Schermer
noreply at xfce.org
Thu Jun 2 22:22:01 CEST 2011
Updating branch refs/heads/master
to 1836d4aac09c5b8afae2b788d88da38011d48cae (commit)
from 61ffd62cc13d31ae1793215250c6ca65c7e2612f (commit)
commit 1836d4aac09c5b8afae2b788d88da38011d48cae
Author: Nick Schermer <nick at xfce.org>
Date: Thu Jun 2 22:19:33 2011 +0200
Set ellipsize again.
.../demo-code/c/appfinder-window.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/xfce4-appfinder/merge-with-xfrun/demo-code/c/appfinder-window.c b/xfce4-appfinder/merge-with-xfrun/demo-code/c/appfinder-window.c
index 12aef60..ad6ef43 100644
--- a/xfce4-appfinder/merge-with-xfrun/demo-code/c/appfinder-window.c
+++ b/xfce4-appfinder/merge-with-xfrun/demo-code/c/appfinder-window.c
@@ -216,7 +216,7 @@ xfce_appfinder_window_init (XfceAppfinderWindow *window)
scroll = gtk_scrolled_window_new (NULL, NULL);
gtk_paned_add2 (GTK_PANED (pane), scroll);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scroll), GTK_SHADOW_ETCHED_IN);
- gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+ gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
gtk_widget_show (scroll);
filter_model = gtk_tree_model_filter_new (GTK_TREE_MODEL (window->model), NULL);
@@ -244,6 +244,7 @@ xfce_appfinder_window_init (XfceAppfinderWindow *window)
gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), GTK_TREE_VIEW_COLUMN (column));
renderer = gtk_cell_renderer_text_new ();
+ g_object_set (renderer, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
column = gtk_tree_view_column_new_with_attributes (NULL, renderer, "markup", XFCE_APPFINDER_MODEL_COLUMN_ABSTRACT, NULL);
gtk_tree_view_append_column (GTK_TREE_VIEW (treeview), GTK_TREE_VIEW_COLUMN (column));
More information about the Xfce4-commits
mailing list