summaryrefslogtreecommitdiff
path: root/image-converter
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-12-31 15:18:02 +0100
committerraveit65 <[email protected]>2021-01-28 21:11:52 +0100
commitc6dba2ce2ec09f2c6202fd1a22f1b5ae89532f50 (patch)
tree95d93b3511986d84a529a8cd409e40f6cff07e8a /image-converter
parent453b66a3213f5760e311572ab54f75f6e76d1c4d (diff)
downloadcaja-extensions-c6dba2ce2ec09f2c6202fd1a22f1b5ae89532f50.tar.bz2
caja-extensions-c6dba2ce2ec09f2c6202fd1a22f1b5ae89532f50.tar.xz
caja-image-rotator: remove user_data cast on signal handler
Diffstat (limited to 'image-converter')
-rw-r--r--image-converter/caja-image-rotator.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/image-converter/caja-image-rotator.c b/image-converter/caja-image-rotator.c
index d5fbaeb..aad9b12 100644
--- a/image-converter/caja-image-rotator.c
+++ b/image-converter/caja-image-rotator.c
@@ -290,10 +290,10 @@ run_op (CajaImageRotator *rotator)
}
static void
-caja_image_rotator_response_cb (GtkDialog *dialog, gint response_id, gpointer user_data)
+on_caja_image_rotator_response (GtkDialog *dialog,
+ gint response_id,
+ CajaImageRotator *rotator)
{
- CajaImageRotator *rotator = CAJA_IMAGE_ROTATOR (user_data);
-
if (response_id == GTK_RESPONSE_OK) {
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (rotator->append_radiobutton))) {
if (strlen (gtk_entry_get_text (rotator->name_entry)) == 0) {
@@ -361,7 +361,7 @@ caja_image_rotator_init (CajaImageRotator *rotator)
/* Connect the signal */
g_signal_connect (rotator->rotate_dialog, "response",
- G_CALLBACK (caja_image_rotator_response_cb),
+ G_CALLBACK (on_caja_image_rotator_response),
rotator);
g_object_unref (builder);