mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
callgraph-view: ensure expand is set for function label
Using the .ui file to create the name cell does not allow us to set the expand property (it defaults to FALSE and cannot be changed). So instead, we just add the cell manually like we do for the tag cell.
This commit is contained in:
@ -146,14 +146,6 @@
|
||||
<property name="sizing">fixed</property>
|
||||
<property name="sort-column-id">0</property>
|
||||
<property name="title" translatable="yes">Descendants</property>
|
||||
<child>
|
||||
<object class="GtkCellRendererText">
|
||||
<property name="ellipsize">middle</property>
|
||||
</object>
|
||||
<attributes>
|
||||
<attribute name="text">0</attribute>
|
||||
</attributes>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
|
||||
@ -796,6 +796,12 @@ sp_callgraph_view_init (SpCallgraphView *self)
|
||||
G_CALLBACK (descendants_view_move_cursor_cb),
|
||||
NULL);
|
||||
|
||||
cell = g_object_new (GTK_TYPE_CELL_RENDERER_TEXT,
|
||||
"ellipsize", PANGO_ELLIPSIZE_MIDDLE,
|
||||
"xalign", 0.0f,
|
||||
NULL);
|
||||
gtk_tree_view_column_pack_start (priv->descendants_name_column, cell, TRUE);
|
||||
gtk_tree_view_column_add_attribute (priv->descendants_name_column, cell, "text", 0);
|
||||
|
||||
cell = g_object_new (GTK_TYPE_CELL_RENDERER_TEXT,
|
||||
"foreground", "#666666",
|
||||
|
||||
Reference in New Issue
Block a user