mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
sysprof: clear focus when setting model
We seem to run into some weird ownership issues when there is focus during the transition. Just work around it a bit for now.
This commit is contained in:
@ -93,6 +93,8 @@ sysprof_callgraph_view_set_descendants (SysprofCallgraphView *self,
|
||||
g_assert (SYSPROF_IS_CALLGRAPH_VIEW (self));
|
||||
g_assert (G_IS_LIST_MODEL (model));
|
||||
|
||||
gtk_root_set_focus (gtk_widget_get_root (GTK_WIDGET (self)), NULL);
|
||||
|
||||
column_sorter = gtk_column_view_get_sorter (self->descendants_column_view);
|
||||
descendants_tree = gtk_tree_list_model_new (g_object_ref (model),
|
||||
FALSE, FALSE,
|
||||
|
||||
Reference in New Issue
Block a user