summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorOlaf Hering <olaf@aepfle.de>2020-12-24 08:55:37 +0100
committerOlaf Hering <olaf@aepfle.de>2020-12-24 08:55:37 +0100
commit1dc65d79733165ef10c53939bdf8a3966a66c6d0 (patch)
treec0f5ef9cb25ae92c54794358772b809b3d125c5c /plugins
parent61dcf30a046172f644f63b84570c4ca594e44028 (diff)
downloadthunar-1dc65d79733165ef10c53939bdf8a3966a66c6d0.tar.gz
Remove GSourceFunc casts
Convert the callbacks into a real GSourceFunc. Signed-off-by: Olaf Hering <olaf@aepfle.de>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/thunar-sendto-email/main.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/thunar-sendto-email/main.c b/plugins/thunar-sendto-email/main.c
index 4e1ee0c2..c2d1a511 100644
--- a/plugins/thunar-sendto-email/main.c
+++ b/plugins/thunar-sendto-email/main.c
@@ -266,6 +266,15 @@ tse_child_watch (GPid pid,
static gboolean
+tse_progress_cb(gpointer user_data)
+{
+ GtkWidget *pulse = user_data;
+
+ gtk_progress_bar_pulse(GTK_PROGRESS_BAR(pulse));
+ return TRUE;
+}
+
+static gboolean
tse_progress (const gchar *working_directory,
gchar **argv,
GError **error)
@@ -328,7 +337,7 @@ tse_progress (const gchar *working_directory,
watch_id = g_child_watch_add (pid, tse_child_watch, dialog);
/* start the pulse timer */
- pulse_timer_id = g_timeout_add (125, (GSourceFunc) (void (*)(void)) gtk_progress_bar_pulse, progress);
+ pulse_timer_id = g_timeout_add (125, tse_progress_cb, progress);
/* run the dialog */
response = gtk_dialog_run (GTK_DIALOG (dialog));