summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/caja-share-bar.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/caja-share-bar.c b/src/caja-share-bar.c
index c1e0c06..c704d85 100644
--- a/src/caja-share-bar.c
+++ b/src/caja-share-bar.c
@@ -126,12 +126,8 @@ caja_share_bar_init (CajaShareBar *bar)
GtkWidget *
caja_share_bar_new (const char *label)
{
- GObject *result;
-
- result = g_object_new (CAJA_TYPE_SHARE_BAR,
- "message-type", GTK_MESSAGE_QUESTION,
- "label", label,
- NULL);
-
- return GTK_WIDGET (result);
+ return g_object_new (CAJA_TYPE_SHARE_BAR,
+ "message-type", GTK_MESSAGE_QUESTION,
+ "label", label,
+ NULL);
}