[sysprof] build: fix build on debian stable
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] build: fix build on debian stable
- Date: Tue, 25 Jun 2019 04:14:44 +0000 (UTC)
commit 2035c7e086c7df75bd412f628eaf17a79095d213
Author: Christian Hergert <chergert redhat com>
Date: Mon Jun 24 21:14:34 2019 -0700
build: fix build on debian stable
src/libsysprof-ui/sysprof-marks-page.c | 9 ++++++---
src/libsysprof-ui/sysprof-visualizer-group.c | 5 +++--
2 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/src/libsysprof-ui/sysprof-marks-page.c b/src/libsysprof-ui/sysprof-marks-page.c
index 3c4ce2f..a0e0ae5 100644
--- a/src/libsysprof-ui/sysprof-marks-page.c
+++ b/src/libsysprof-ui/sysprof-marks-page.c
@@ -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
diff --git a/src/libsysprof-ui/sysprof-visualizer-group.c b/src/libsysprof-ui/sysprof-visualizer-group.c
index 851ffba..3c5e81d 100644
--- a/src/libsysprof-ui/sysprof-visualizer-group.c
+++ b/src/libsysprof-ui/sysprof-visualizer-group.c
@@ -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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]