Commit 5b3511a9 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

panel-utils: fix cast-function-type warning

parent edf554bd
......@@ -935,6 +935,13 @@ panel_util_query_tooltip_cb (GtkWidget *widget,
return TRUE;
static void
free_tooltip (gchar *tooltip,
GClosure *closure)
g_free (tooltip);
panel_util_set_tooltip_text (GtkWidget *widget,
const char *text)
......@@ -953,7 +960,7 @@ panel_util_set_tooltip_text (GtkWidget *widget,
g_object_set (widget, "has-tooltip", TRUE, NULL);
g_signal_connect_data (widget, "query-tooltip",
G_CALLBACK (panel_util_query_tooltip_cb),
g_strdup (text), (GClosureNotify) g_free, 0);
g_strdup (text), (GClosureNotify) free_tooltip, 0);
/* This is similar to what g_file_new_for_commandline_arg() does, but
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