[gnome-user-share] share-bar: simplify code
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-user-share] share-bar: simplify code
- Date: Fri, 1 Jun 2012 14:46:01 +0000 (UTC)
commit 532c0b17416bff0937722d568f699597d9e54a66
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon May 21 14:34:07 2012 -0400
share-bar: simplify code
https://bugzilla.gnome.org/show_bug.cgi?id=676515
src/nautilus-share-bar.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/src/nautilus-share-bar.c b/src/nautilus-share-bar.c
index 7403270..1b0d6b0 100644
--- a/src/nautilus-share-bar.c
+++ b/src/nautilus-share-bar.c
@@ -169,12 +169,8 @@ nautilus_share_bar_init (NautilusShareBar *bar)
GtkWidget *
nautilus_share_bar_new (const char *label)
{
- GObject *result;
-
- result = g_object_new (NAUTILUS_TYPE_SHARE_BAR,
- "message-type", GTK_MESSAGE_QUESTION,
- "label", label,
- NULL);
-
- return GTK_WIDGET (result);
+ return g_object_new (NAUTILUS_TYPE_SHARE_BAR,
+ "message-type", GTK_MESSAGE_QUESTION,
+ "label", label,
+ NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]