mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 15:10:53 +00:00
build: fix build on debian stable
This commit is contained in:
@ -212,9 +212,10 @@ sysprof_marks_page_tree_view_query_tooltip_cb (SysprofMarksPage *self,
|
|||||||
GtkTreeView *tree_view)
|
GtkTreeView *tree_view)
|
||||||
{
|
{
|
||||||
SysprofMarksPagePrivate *priv = sysprof_marks_page_get_instance_private (self);
|
SysprofMarksPagePrivate *priv = sysprof_marks_page_get_instance_private (self);
|
||||||
g_autoptr(GtkTreePath) path = NULL;
|
|
||||||
GtkTreeViewColumn *column;
|
GtkTreeViewColumn *column;
|
||||||
|
GtkTreePath *path = NULL;
|
||||||
gint cell_x, cell_y;
|
gint cell_x, cell_y;
|
||||||
|
gboolean ret = FALSE;
|
||||||
|
|
||||||
g_assert (SYSPROF_IS_MARKS_PAGE (self));
|
g_assert (SYSPROF_IS_MARKS_PAGE (self));
|
||||||
g_assert (GTK_IS_TOOLTIP (tooltip));
|
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);
|
gtk_tooltip_set_text (tooltip, tooltip_text);
|
||||||
|
|
||||||
return TRUE;
|
ret = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
gtk_tree_path_free (path);
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#include <dazzle.h>
|
||||||
#include <glib/gi18n.h>
|
#include <glib/gi18n.h>
|
||||||
|
|
||||||
#include "sysprof-visualizer.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->rows_menu);
|
||||||
g_clear_object (&priv->actions);
|
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);
|
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 (SYSPROF_IS_VISUALIZER_GROUP (self));
|
||||||
g_return_if_fail (!header || SYSPROF_IS_VISUALIZER_GROUP_HEADER (header));
|
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)
|
if (header != NULL)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user