diff options
author | Andre Miranda <andreldm@xfce.org> | 2019-04-14 12:42:55 -0300 |
---|---|---|
committer | Andre Miranda <andreldm@xfce.org> | 2019-04-14 12:42:55 -0300 |
commit | 94a5e34e767ef52cd5461b67732096031c20a335 (patch) | |
tree | 6f76295db86d1c86cb006f9098e49ee2432c92eb /plugins | |
parent | c15594c0078a2f56f9d5c99942c96ba78bb153cb (diff) | |
download | thunar-94a5e34e767ef52cd5461b67732096031c20a335.tar.gz |
Fix compiler error -Wcast-function-type (GCC 8)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/thunar-sendto-email/main.c | 2 | ||||
-rw-r--r-- | plugins/thunar-uca/thunar-uca-provider.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/thunar-sendto-email/main.c b/plugins/thunar-sendto-email/main.c index 587cdd88..23b8c14a 100644 --- a/plugins/thunar-sendto-email/main.c +++ b/plugins/thunar-sendto-email/main.c @@ -307,7 +307,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) gtk_progress_bar_pulse, progress); + pulse_timer_id = g_timeout_add (125, (GSourceFunc) (void (*)(void)) gtk_progress_bar_pulse, progress); /* run the dialog */ response = gtk_dialog_run (GTK_DIALOG (dialog)); diff --git a/plugins/thunar-uca/thunar-uca-provider.c b/plugins/thunar-uca/thunar-uca-provider.c index 53dbc8d1..450616ce 100644 --- a/plugins/thunar-uca/thunar-uca-provider.c +++ b/plugins/thunar-uca/thunar-uca-provider.c @@ -246,7 +246,8 @@ thunar_uca_provider_get_file_menu_items (ThunarxMenuProvider *menu_provider, /* connect the "activate" signal */ g_signal_connect_data (G_OBJECT (item), "activate", G_CALLBACK (thunar_uca_provider_activated), - g_object_ref (G_OBJECT (uca_provider)), (GClosureNotify) g_object_unref, + g_object_ref (G_OBJECT (uca_provider)), + (GClosureNotify) (void (*)(void)) g_object_unref, G_CONNECT_SWAPPED); /* set the action path */ |