Commit cdc3d38a authored by Diego Escalante Urrelo's avatar Diego Escalante Urrelo 🍄 Committed by Christian Hergert

todo: cleanup to use g_autoptr

parent ee873a45
......@@ -160,7 +160,7 @@ gbp_todo_panel_query_tooltip (GbpTodoPanel *self,
GtkTooltip *tooltip,
GtkTreeView *tree_view)
{
GtkTreePath *path = NULL;
g_autoptr(GtkTreePath) path = NULL;
GtkTreeModel *model;
g_assert (GBP_IS_TODO_PANEL (self));
......@@ -199,11 +199,9 @@ gbp_todo_panel_query_tooltip (GbpTodoPanel *self,
g_string_append (str, "</tt>");
gtk_tree_view_set_tooltip_row (tree_view, tooltip, path);
gtk_tooltip_set_markup (tooltip, str->str);
}
gtk_tree_path_free (path);
return TRUE;
return TRUE;
}
}
return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment