>From f66a2bcccd4f312ca06dd967206057785bac318e Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Thu, 24 Mar 2011 20:02:28 -0700 Subject: [PATCH 05/10] Ellipsize plugin labels and remove horizontal scrollbar This ellipsizes the plugin label at the end using PANGO_ELLIPSIZE_END. If a plugin title is really long; showing the user important information, there should be an about button like Gedit and libpeas provide; as this is not the proper place to find said information. Signed-off-by: Christian Hergert --- libanjuta/anjuta-plugin-manager.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/libanjuta/anjuta-plugin-manager.c b/libanjuta/anjuta-plugin-manager.c index f80def9..434ee1c 100644 --- a/libanjuta/anjuta-plugin-manager.c +++ b/libanjuta/anjuta-plugin-manager.c @@ -919,6 +919,7 @@ create_plugin_tree (void) gtk_tree_view_column_add_attribute (column, renderer, "pixbuf", COL_ICON); renderer = gtk_cell_renderer_text_new (); + g_object_set(renderer, "ellipsize", PANGO_ELLIPSIZE_END, NULL); gtk_tree_view_column_pack_start (column, renderer, TRUE); gtk_tree_view_column_add_attribute (column, renderer, "markup", COL_NAME); @@ -1160,7 +1161,7 @@ anjuta_plugin_manager_get_plugins_page (AnjutaPluginManager *plugin_manager) gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled), GTK_SHADOW_IN); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled), - GTK_POLICY_AUTOMATIC, + GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); gtk_box_pack_start (GTK_BOX (vbox), scrolled, TRUE, TRUE, 0); -- 1.7.4.1