From 4e42def6ff1c846d54e93260d116dc69eac97d2f Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Fri, 1 Feb 2019 07:07:24 -0500 Subject: Fix incompatible pointer types --- src/caja-bookmark-list.c | 2 +- src/caja-window-menus.c | 2 +- src/file-manager/fm-directory-view.c | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/caja-bookmark-list.c b/src/caja-bookmark-list.c index d39b2b98..a8a2adb2 100644 --- a/src/caja-bookmark-list.c +++ b/src/caja-bookmark-list.c @@ -212,7 +212,7 @@ do_constructor (GType type, if (singleton != NULL) { - return g_object_ref (singleton); + return g_object_ref (G_OBJECT (singleton)); } retval = G_OBJECT_CLASS (caja_bookmark_list_parent_class)->constructor diff --git a/src/caja-window-menus.c b/src/caja-window-menus.c index d96df926..3e7b208c 100644 --- a/src/caja-window-menus.c +++ b/src/caja-window-menus.c @@ -197,7 +197,7 @@ caja_menus_append_bookmark_to_menu (CajaWindow *window, g_object_set_data_full (G_OBJECT (action), "menu-icon", cairo_surface_reference (surface), - cairo_surface_destroy); + (GDestroyNotify)cairo_surface_destroy); g_signal_connect_data (action, "activate", G_CALLBACK (activate_bookmark_in_menu_item), diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c index 7105036a..3c61e5a6 100644 --- a/src/file-manager/fm-directory-view.c +++ b/src/file-manager/fm-directory-view.c @@ -4441,7 +4441,7 @@ add_submenu (GtkUIManager *ui_manager, if (surface != NULL) { g_object_set_data_full (G_OBJECT (action), "menu-icon", cairo_surface_reference (surface), - cairo_surface_destroy); + (GDestroyNotify)cairo_surface_destroy); } g_object_set (action, "hide-if-empty", FALSE, NULL); @@ -4984,7 +4984,7 @@ add_extension_action_for_files (FMDirectoryView *view, if (surface != NULL) { g_object_set_data_full (G_OBJECT (action), "menu-icon", surface, - cairo_surface_destroy); + (GDestroyNotify)cairo_surface_destroy); } } @@ -5451,7 +5451,7 @@ add_script_to_scripts_menus (FMDirectoryView *directory_view, if (surface != NULL) { g_object_set_data_full (G_OBJECT (action), "menu-icon", surface, - cairo_surface_destroy); + (GDestroyNotify)cairo_surface_destroy); } g_signal_connect_data (action, "activate", @@ -5702,7 +5702,7 @@ add_template_to_templates_menus (FMDirectoryView *directory_view, if (surface != NULL) { g_object_set_data_full (G_OBJECT (action), "menu-icon", surface, - cairo_surface_destroy); + (GDestroyNotify)cairo_surface_destroy); } g_signal_connect_data (action, "activate", -- cgit v1.2.1