diff options
author | rbuj <[email protected]> | 2021-04-18 12:51:53 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-07-21 19:33:51 +0200 |
commit | a1ea3953fd50dbd7aa4943d95afa664dbae2b321 (patch) | |
tree | abbb8e06653ab77c59f2433d0eb4f2f251cd44d0 | |
parent | cae1e23b3d9800b78c14300914dc11730c2cf6b6 (diff) | |
download | caja-a1ea3953fd50dbd7aa4943d95afa664dbae2b321.tar.bz2 caja-a1ea3953fd50dbd7aa4943d95afa664dbae2b321.tar.xz |
caja-property-browser: remove -Wcast-function-type warning
-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 2f36a2a2..cdb05932 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 */ |