[gnome-todo] task-row: Use the new gdk_content_provider_new_typed()
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] task-row: Use the new gdk_content_provider_new_typed()
- Date: Thu, 20 Feb 2020 12:53:27 +0000 (UTC)
commit 75508276b818435d7e2aaccc892dfa4445b97ec0
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Feb 20 00:30:40 2020 -0300
task-row: Use the new gdk_content_provider_new_typed()
src/task-list-view/gtd-task-row.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/src/task-list-view/gtd-task-row.c b/src/task-list-view/gtd-task-row.c
index 86099fd..a2947c5 100644
--- a/src/task-list-view/gtd-task-row.c
+++ b/src/task-list-view/gtd-task-row.c
@@ -299,16 +299,10 @@ on_drag_prepare_cb (GtkDragSource *source,
GtdTaskRow *self)
{
GdkContentProvider *content;
- GValue value = G_VALUE_INIT;
-
GTD_ENTRY;
/* Setup the content provider */
- g_value_init (&value, GTD_TYPE_TASK);
- g_value_set_object (&value, self->task);
-
- content = gdk_content_provider_new_for_value (&value);
- g_value_unset (&value);
+ content = gdk_content_provider_new_typed (GTD_TYPE_TASK, self->task);
GTD_RETURN (content);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]