From 29befc58e1f1fd61d4d6d1a6db024d32182f7488 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Thu, 18 Apr 2013 11:41:22 -0500 Subject: g_object_unref doesn't need a G_OBJECT() cast --- src/service.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/service.c b/src/service.c index 9a4e561..2e42bd0 100644 --- a/src/service.c +++ b/src/service.c @@ -468,7 +468,7 @@ create_switch_section (IndicatorSessionService * self) g_menu_item_set_attribute (item, "accel", "s", str); g_free (str); g_menu_append_item (menu, item); - g_object_unref (G_OBJECT(item)); + g_object_unref (item); if (indicator_session_guest_is_allowed (p->backend_guest)) g_menu_append (menu, _("Guest Session"), "indicator.switch-to-guest"); @@ -496,7 +496,7 @@ create_switch_section (IndicatorSessionService * self) item = g_menu_item_new (u->real_name, NULL); g_menu_item_set_action_and_target (item, "indicator.switch-to-user", "s", u->user_name); g_menu_append_item (menu, item); - g_object_unref (G_OBJECT(item)); + g_object_unref (item); } /* cleanup */ @@ -571,19 +571,19 @@ create_menu (IndicatorSessionService * self, int form_factor) for (i=0; ipriv->menus[form_factor].menu = menu; self->priv->menus[form_factor].submenu = submenu; @@ -761,7 +761,7 @@ rebuild_section (GMenu * parent, int pos, GMenuModel * new_section) { g_menu_remove (parent, pos); g_menu_insert_section (parent, pos, NULL, new_section); - g_object_unref (G_OBJECT(new_section)); + g_object_unref (new_section); } static void -- cgit v1.2.3