]> spindle.queued.net Git - midori/commitdiff
Ellipsize text column in Addons panel
authorChristian Dywan <christian@twotoasts.de>
Wed, 29 Aug 2012 18:26:47 +0000 (20:26 +0200)
committerChristian Dywan <christian@twotoasts.de>
Wed, 29 Aug 2012 22:43:20 +0000 (00:43 +0200)
extensions/addons.c

index 4d76634b5fcacd4eb6416216fa1e0f4b3a5af248..f84d8068f825ede79ffb8b2ed52415e169a0fbd4 100644 (file)
@@ -777,11 +777,10 @@ addons_treeview_render_text_cb (GtkTreeViewColumn* column,
 
     gtk_tree_model_get (model, iter, 0, &element, -1);
 
-    g_object_set (renderer, "text", element->displayname, NULL);
-    if (!element->enabled)
-        g_object_set (renderer, "sensitive", false, NULL);
-    else
-        g_object_set (renderer, "sensitive", true, NULL);
+    g_object_set (renderer, "text", element->displayname,
+                            "sensitive", element->enabled,
+                            "ellipsize", PANGO_ELLIPSIZE_END,
+                            NULL);
 }
 
 static void