build: fix build on debian stable

This commit is contained in:
Christian Hergert
2019-06-24 21:14:34 -07:00
parent e8528609ec
commit 2035c7e086
2 changed files with 9 additions and 5 deletions

View File

@ -212,9 +212,10 @@ sysprof_marks_page_tree_view_query_tooltip_cb (SysprofMarksPage *self,
GtkTreeView *tree_view)
{
SysprofMarksPagePrivate *priv = sysprof_marks_page_get_instance_private (self);
g_autoptr(GtkTreePath) path = NULL;
GtkTreeViewColumn *column;
GtkTreePath *path = NULL;
gint cell_x, cell_y;
gboolean ret = FALSE;
g_assert (SYSPROF_IS_MARKS_PAGE (self));
g_assert (GTK_IS_TOOLTIP (tooltip));
@ -252,11 +253,13 @@ sysprof_marks_page_tree_view_query_tooltip_cb (SysprofMarksPage *self,
gtk_tooltip_set_text (tooltip, tooltip_text);
return TRUE;
ret = TRUE;
}
}
return FALSE;
gtk_tree_path_free (path);
return ret;
}
static void

View File

@ -22,6 +22,7 @@
#include "config.h"
#include <dazzle.h>
#include <glib/gi18n.h>
#include "sysprof-visualizer.h"
@ -185,7 +186,7 @@ sysprof_visualizer_group_finalize (GObject *object)
g_clear_object (&priv->rows_menu);
g_clear_object (&priv->actions);
g_clear_weak_pointer (&priv->header);
dzl_clear_weak_pointer (&priv->header);
G_OBJECT_CLASS (sysprof_visualizer_group_parent_class)->finalize (object);
}
@ -342,7 +343,7 @@ _sysprof_visualizer_group_set_header (SysprofVisualizerGroup *self,
g_return_if_fail (SYSPROF_IS_VISUALIZER_GROUP (self));
g_return_if_fail (!header || SYSPROF_IS_VISUALIZER_GROUP_HEADER (header));
if (g_set_weak_pointer (&priv->header, header))
if (dzl_set_weak_pointer (&priv->header, header))
{
if (header != NULL)
{