[Xfce4-commits] <garcon:master> Use g_value_dub_object where possible.
Nick Schermer
noreply at xfce.org
Tue Feb 16 14:44:02 CET 2010
Updating branch refs/heads/master
to 2fded9b061372be5df499672c8d8942cb5658012 (commit)
from 7146d9bf2013e627adf1cf4aae52c426bd3f89d5 (commit)
commit 2fded9b061372be5df499672c8d8942cb5658012
Author: Nick Schermer <nick at xfce.org>
Date: Tue Feb 16 14:37:21 2010 +0100
Use g_value_dub_object where possible.
garcon/garcon-menu-directory.c | 2 +-
garcon/garcon-menu-item.c | 2 +-
garcon/garcon-menu-merger.c | 2 +-
garcon/garcon-menu-parser.c | 2 +-
garcon/garcon-menu.c | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/garcon/garcon-menu-directory.c b/garcon/garcon-menu-directory.c
index f4ef851..a20647c 100644
--- a/garcon/garcon-menu-directory.c
+++ b/garcon/garcon-menu-directory.c
@@ -287,7 +287,7 @@ garcon_menu_directory_set_property (GObject *object,
switch (prop_id)
{
case PROP_FILE:
- directory->priv->file = g_object_ref (g_value_get_object (value));
+ directory->priv->file = g_value_dup_object (value);
break;
case PROP_NAME:
diff --git a/garcon/garcon-menu-item.c b/garcon/garcon-menu-item.c
index ba21aed..461ed02 100644
--- a/garcon/garcon-menu-item.c
+++ b/garcon/garcon-menu-item.c
@@ -505,7 +505,7 @@ garcon_menu_item_set_property (GObject *object,
switch (prop_id)
{
case PROP_FILE:
- item->priv->file = g_object_ref (g_value_get_object (value));
+ item->priv->file = g_value_dup_object (value);
break;
case PROP_DESKTOP_ID:
diff --git a/garcon/garcon-menu-merger.c b/garcon/garcon-menu-merger.c
index ad58639..b917782 100644
--- a/garcon/garcon-menu-merger.c
+++ b/garcon/garcon-menu-merger.c
@@ -208,7 +208,7 @@ garcon_menu_merger_set_property (GObject *object,
switch (prop_id)
{
case PROP_TREE_PROVIDER:
- merger->priv->tree_provider = g_object_ref (g_value_get_object (value));
+ merger->priv->tree_provider = g_value_dup_object (value);
break;
default:
diff --git a/garcon/garcon-menu-parser.c b/garcon/garcon-menu-parser.c
index ebfe693..bc939dd 100644
--- a/garcon/garcon-menu-parser.c
+++ b/garcon/garcon-menu-parser.c
@@ -225,7 +225,7 @@ garcon_menu_parser_set_property (GObject *object,
switch (prop_id)
{
case PROP_FILE:
- parser->priv->file = g_object_ref (g_value_get_object (value));
+ parser->priv->file = g_value_dup_object (value);
break;
default:
diff --git a/garcon/garcon-menu.c b/garcon/garcon-menu.c
index 910ca80..194e00c 100644
--- a/garcon/garcon-menu.c
+++ b/garcon/garcon-menu.c
@@ -309,7 +309,7 @@ garcon_menu_set_property (GObject *object,
switch (prop_id)
{
case PROP_FILE:
- menu->priv->file = g_object_ref (g_value_get_object (value));
+ menu->priv->file = g_value_dup_object (value);
break;
case PROP_DIRECTORY:
More information about the Xfce4-commits
mailing list