summaryrefslogtreecommitdiff
path: root/libgd/gd-main-icon-box.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgd/gd-main-icon-box.c')
-rw-r--r--libgd/gd-main-icon-box.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libgd/gd-main-icon-box.c b/libgd/gd-main-icon-box.c
index 341df19..1d6cdf4 100644
--- a/libgd/gd-main-icon-box.c
+++ b/libgd/gd-main-icon-box.c
@@ -323,7 +323,7 @@ gd_main_icon_box_activate_cursor_child (GtkFlowBox *flow_box)
out:
GTK_FLOW_BOX_CLASS (gd_main_icon_box_parent_class)->activate_cursor_child (flow_box);
- g_clear_pointer (&event, (GDestroyNotify) gdk_event_free);
+ g_clear_pointer (&event, gdk_event_free);
}
static gboolean
@@ -522,7 +522,7 @@ gd_main_icon_box_child_activated (GtkFlowBox *flow_box, GtkFlowBoxChild *child)
}
out:
- g_clear_pointer (&event, (GDestroyNotify) gdk_event_free);
+ g_clear_pointer (&event, gdk_event_free);
}
static void
@@ -571,7 +571,7 @@ gd_main_icon_box_drag_begin (GtkWidget *widget, GdkDragContext *context)
gtk_drag_set_icon_surface (context, drag_icon);
out:
- g_clear_pointer (&drag_icon, (GDestroyNotify) cairo_surface_destroy);
+ g_clear_pointer (&drag_icon, cairo_surface_destroy);
}
static void
@@ -636,7 +636,7 @@ gd_main_icon_box_drag_data_get (GtkWidget *widget,
gtk_selection_data_set_uris (data, (gchar **) uri_array->pdata);
out:
- g_clear_pointer (&uri_array, (GDestroyNotify) g_ptr_array_unref);
+ g_clear_pointer (&uri_array, g_ptr_array_unref);
}
static gboolean
@@ -676,8 +676,8 @@ gd_main_icon_box_focus (GtkWidget *widget, GtkDirectionType direction)
res = GDK_EVENT_STOP;
out:
- g_clear_pointer (&fake_event, (GDestroyNotify) gdk_event_free);
- g_clear_pointer (&event, (GDestroyNotify) gdk_event_free);
+ g_clear_pointer (&fake_event, gdk_event_free);
+ g_clear_pointer (&event, gdk_event_free);
return res;
}
@@ -759,8 +759,8 @@ gd_main_icon_box_move_cursor (GtkFlowBox *flow_box, GtkMovementStep step, gint c
res = GDK_EVENT_STOP;
out:
- g_clear_pointer (&fake_event, (GDestroyNotify) gdk_event_free);
- g_clear_pointer (&event, (GDestroyNotify) gdk_event_free);
+ g_clear_pointer (&fake_event, gdk_event_free);
+ g_clear_pointer (&event, gdk_event_free);
return res;
}