From ae06676815e24a27549e0c79a74bc81c77822554 Mon Sep 17 00:00:00 2001 From: Jasmine Hassan Date: Fri, 23 Nov 2012 11:58:30 +0200 Subject: [src] fix some incompatible pointer type warnings including a silly mistake in caja-window where destroy function's return type was accidently ommitted during the addition of gtk version checks. --- src/caja-application.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/caja-application.c') diff --git a/src/caja-application.c b/src/caja-application.c index 6c68198f..47a956c4 100644 --- a/src/caja-application.c +++ b/src/caja-application.c @@ -434,7 +434,11 @@ check_required_directories (CajaApplication *application) dialog = eel_show_error_dialog (error_string, detail_string, NULL); /* We need the main event loop so the user has a chance to see the dialog. */ +#if GTK_CHECK_VERSION (3, 0, 0) caja_main_event_loop_register (GTK_WIDGET (dialog)); +#else + caja_main_event_loop_register (GTK_OBJECT (dialog)); +#endif g_string_free (directories_as_string, TRUE); g_free (error_string); @@ -1171,7 +1175,7 @@ caja_application_close_desktop (void) { if (caja_application_desktop_windows != NULL) { - g_list_free_full (caja_application_desktop_windows, gtk_widget_destroy); + g_list_free_full (caja_application_desktop_windows, (GDestroyNotify) gtk_widget_destroy); caja_application_desktop_windows = NULL; } } -- cgit v1.2.1