summaryrefslogtreecommitdiff
path: root/src/eom-jobs.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-01-03 11:15:57 +0100
committerraveit65 <[email protected]>2021-01-20 07:48:05 +0100
commit7cd5fe838cfe53c06827377ab05530095ef69325 (patch)
treea117b557a86228b099389e9fb599ed6f5d3a16ed /src/eom-jobs.c
parentd078a81fb1e23bb44f6b405edd93484597e7d4da (diff)
downloadeom-7cd5fe838cfe53c06827377ab05530095ef69325.tar.bz2
eom-7cd5fe838cfe53c06827377ab05530095ef69325.tar.xz
Remove unnecessary casts on signal function calls
Diffstat (limited to 'src/eom-jobs.c')
-rw-r--r--src/eom-jobs.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/eom-jobs.c b/src/eom-jobs.c
index c78b707..bde2517 100644
--- a/src/eom-jobs.c
+++ b/src/eom-jobs.c
@@ -651,8 +651,7 @@ eom_job_save_run (EomJob *ejob)
}
}
- handler_id = g_signal_connect (G_OBJECT (image),
- "save-progress",
+ handler_id = g_signal_connect (image, "save-progress",
G_CALLBACK (save_progress_handler),
job);
@@ -666,7 +665,7 @@ eom_job_save_run (EomJob *ejob)
g_object_unref (save_info);
if (handler_id != 0)
- g_signal_handler_disconnect (G_OBJECT (image), handler_id);
+ g_signal_handler_disconnect (image, handler_id);
eom_image_data_unref (image);
@@ -782,8 +781,7 @@ eom_job_save_as_run (EomJob *ejob)
g_assert (ejob->error == NULL);
- handler_id = g_signal_connect (G_OBJECT (image),
- "save-progress",
+ handler_id = g_signal_connect (image, "save-progress",
G_CALLBACK (save_progress_handler),
job);
@@ -829,7 +827,7 @@ eom_job_save_as_run (EomJob *ejob)
g_object_unref (dest_info);
if (handler_id != 0)
- g_signal_handler_disconnect (G_OBJECT (image), handler_id);
+ g_signal_handler_disconnect (image, handler_id);
eom_image_data_unref (image);