diff options
author | rbuj <[email protected]> | 2021-01-03 11:15:57 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-01-20 07:48:05 +0100 |
commit | 7cd5fe838cfe53c06827377ab05530095ef69325 (patch) | |
tree | a117b557a86228b099389e9fb599ed6f5d3a16ed /src/eom-image.c | |
parent | d078a81fb1e23bb44f6b405edd93484597e7d4da (diff) | |
download | eom-7cd5fe838cfe53c06827377ab05530095ef69325.tar.bz2 eom-7cd5fe838cfe53c06827377ab05530095ef69325.tar.xz |
Remove unnecessary casts on signal function calls
Diffstat (limited to 'src/eom-image.c')
-rw-r--r-- | src/eom-image.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/eom-image.c b/src/eom-image.c index 36f6ff2..cbcf126 100644 --- a/src/eom-image.c +++ b/src/eom-image.c @@ -980,8 +980,7 @@ eom_image_real_load (EomImage *img, loader = gdk_pixbuf_loader_new (); } - g_signal_connect_object (G_OBJECT (loader), - "size-prepared", + g_signal_connect_object (loader, "size-prepared", G_CALLBACK (eom_image_size_prepared), img, 0); @@ -1457,8 +1456,7 @@ transfer_progress_cb (goffset cur_bytes, EomImage *image = EOM_IMAGE (user_data); if (cur_bytes > 0) { - g_signal_emit (G_OBJECT(image), - signals[SIGNAL_SAVE_PROGRESS], + g_signal_emit (image, signals[SIGNAL_SAVE_PROGRESS], 0, (gfloat) cur_bytes / (gfloat) total_bytes); } @@ -2110,7 +2108,7 @@ eom_image_modified (EomImage *img) { g_return_if_fail (EOM_IS_IMAGE (img)); - g_signal_emit (G_OBJECT (img), signals[SIGNAL_CHANGED], 0); + g_signal_emit (img, signals[SIGNAL_CHANGED], 0); } gchar* |