summaryrefslogtreecommitdiff
path: root/image-converter
diff options
context:
space:
mode:
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);