Skip to content

Commit 4e42def

Browse files
vkarehlukefromdc
authored andcommitted
Fix incompatible pointer types
1 parent e99050a commit 4e42def

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

‎libcaja-private/caja-ui-utilities.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ caja_action_from_menu_item (CajaMenuItem *item,
192192
{
193193
g_object_set_data_full (G_OBJECT (action), "menu-icon",
194194
surface,
195-
cairo_surface_destroy);
195+
(GDestroyNotify)cairo_surface_destroy);
196196
}
197197
}
198198

@@ -241,7 +241,7 @@ caja_toolbar_action_from_menu_item (CajaMenuItem *item, GtkWidget *parent_widget
241241
{
242242
g_object_set_data_full (G_OBJECT (action), "toolbar-icon",
243243
surface,
244-
cairo_surface_destroy);
244+
(GDestroyNotify)cairo_surface_destroy);
245245
}
246246
}
247247

‎src/caja-bookmark-list.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ do_constructor (GType type,
212212

213213
if (singleton != NULL)
214214
{
215-
return g_object_ref (singleton);
215+
return g_object_ref (G_OBJECT (singleton));
216216
}
217217

218218
retval = G_OBJECT_CLASS (caja_bookmark_list_parent_class)->constructor

‎src/caja-window-menus.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ caja_menus_append_bookmark_to_menu (CajaWindow *window,
197197

198198
g_object_set_data_full (G_OBJECT (action), "menu-icon",
199199
cairo_surface_reference (surface),
200-
cairo_surface_destroy);
200+
(GDestroyNotify)cairo_surface_destroy);
201201

202202
g_signal_connect_data (action, "activate",
203203
G_CALLBACK (activate_bookmark_in_menu_item),

‎src/file-manager/fm-directory-view.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4441,7 +4441,7 @@ add_submenu (GtkUIManager *ui_manager,
44414441
if (surface != NULL) {
44424442
g_object_set_data_full (G_OBJECT (action), "menu-icon",
44434443
cairo_surface_reference (surface),
4444-
cairo_surface_destroy);
4444+
(GDestroyNotify)cairo_surface_destroy);
44454445
}
44464446

44474447
g_object_set (action, "hide-if-empty", FALSE, NULL);
@@ -4984,7 +4984,7 @@ add_extension_action_for_files (FMDirectoryView *view,
49844984
if (surface != NULL) {
49854985
g_object_set_data_full (G_OBJECT (action), "menu-icon",
49864986
surface,
4987-
cairo_surface_destroy);
4987+
(GDestroyNotify)cairo_surface_destroy);
49884988
}
49894989
}
49904990

@@ -5451,7 +5451,7 @@ add_script_to_scripts_menus (FMDirectoryView *directory_view,
54515451
if (surface != NULL) {
54525452
g_object_set_data_full (G_OBJECT (action), "menu-icon",
54535453
surface,
5454-
cairo_surface_destroy);
5454+
(GDestroyNotify)cairo_surface_destroy);
54555455
}
54565456

54575457
g_signal_connect_data (action, "activate",
@@ -5702,7 +5702,7 @@ add_template_to_templates_menus (FMDirectoryView *directory_view,
57025702
if (surface != NULL) {
57035703
g_object_set_data_full (G_OBJECT (action), "menu-icon",
57045704
surface,
5705-
cairo_surface_destroy);
5705+
(GDestroyNotify)cairo_surface_destroy);
57065706
}
57075707

57085708
g_signal_connect_data (action, "activate",

0 commit comments

Comments
 (0)