diff options
author | rbuj <[email protected]> | 2021-04-18 12:51:53 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-04-20 09:18:19 +0200 |
commit | 38f725d040c84d088a878ba9ad7481fa7adb7189 (patch) | |
tree | 970d3e2a768981a33081081c156d50cebda14487 /src | |
parent | 19791791d66ac55fb6a1cd36aa51c448067081fe (diff) | |
download | caja-38f725d040c84d088a878ba9ad7481fa7adb7189.tar.bz2 caja-38f725d040c84d088a878ba9ad7481fa7adb7189.tar.xz |
caja-property-browser: remove -Wcast-function-type warning
Diffstat (limited to 'src')
-rw-r--r-- | src/caja-property-browser.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/caja-property-browser.c b/src/caja-property-browser.c index b684467a..565fc5f0 100644 --- a/src/caja-property-browser.c +++ b/src/caja-property-browser.c @@ -2149,6 +2149,14 @@ property_browser_category_button_new (const char *display_name, return button; } +static void +free_category_link_name (gpointer data, + GClosure *closure) +{ + (void) closure; + g_free (data); +} + /* this is a utility routine to generate a category link widget and install it in the browser */ static void make_category_link (CajaPropertyBrowser *property_browser, @@ -2190,10 +2198,9 @@ make_category_link (CajaPropertyBrowser *property_browser, /* add a signal to handle clicks */ g_object_set_data (G_OBJECT(button), "user_data", property_browser); - g_signal_connect_data - (button, "toggled", - G_CALLBACK (category_toggled_callback), - g_strdup (name), (GClosureNotify) g_free, 0); + g_signal_connect_data (button, "toggled", + G_CALLBACK (category_toggled_callback), + g_strdup (name), free_category_link_name, 0); } /* update_contents populates the property browser with information specified by the path and other state variables */ |