[anjuta] Ellipsize plugin labels and remove horizontal scrollbar
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] Ellipsize plugin labels and remove horizontal scrollbar
- Date: Wed, 6 Apr 2011 21:11:07 +0000 (UTC)
commit 875e0e8a921c3e92ab0389ae775055f4a1fe8555
Author: Christian Hergert <chris dronelabs com>
Date: Thu Mar 24 20:02:28 2011 -0700
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 <chris dronelabs com>
https://bugzilla.gnome.org/show_bug.cgi?id=645659
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]