summaryrefslogtreecommitdiff
path: root/image-converter
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-12-31 15:17:24 +0100
committerraveit65 <[email protected]>2021-01-28 21:11:52 +0100
commit453b66a3213f5760e311572ab54f75f6e76d1c4d (patch)
tree6ef2b2ecf34459ba719692d87c43fea86c62402e /image-converter
parent734703786e9770ca4415d18d2451afa505a2b126 (diff)
downloadcaja-extensions-453b66a3213f5760e311572ab54f75f6e76d1c4d.tar.bz2
caja-extensions-453b66a3213f5760e311572ab54f75f6e76d1c4d.tar.xz
caja-image-resizer: remove user_data cast on signal handler
Diffstat (limited to 'image-converter')
-rw-r--r--image-converter/caja-image-resizer.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/image-converter/caja-image-resizer.c b/image-converter/caja-image-resizer.c
index 0979a1a..c16de1e 100644
--- a/image-converter/caja-image-resizer.c
+++ b/image-converter/caja-image-resizer.c
@@ -295,12 +295,10 @@ run_op (CajaImageResizer *resizer)
}
static void
-caja_image_resizer_response_cb (GtkDialog *dialog,
- gint response_id,
- gpointer user_data)
+on_caja_image_resizer_response (GtkDialog *dialog,
+ gint response_id,
+ CajaImageResizer *resizer)
{
- CajaImageResizer *resizer = CAJA_IMAGE_RESIZER (user_data);
-
if (response_id == GTK_RESPONSE_OK) {
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (resizer->append_radiobutton))) {
if (strlen (gtk_entry_get_text (resizer->name_entry)) == 0) {
@@ -362,7 +360,7 @@ caja_image_resizer_init (CajaImageResizer *resizer)
/* Connect signal */
g_signal_connect (resizer->resize_dialog, "response",
- G_CALLBACK (caja_image_resizer_response_cb),
+ G_CALLBACK (on_caja_image_resizer_response),
resizer);
g_object_unref (builder);