summaryrefslogtreecommitdiff
path: root/src/caja-share-bar.c
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-10-29 06:47:32 +0200
committerJasmine Hassan <[email protected]>2012-10-29 15:23:13 +0200
commit15ff0663135e48ad2cc50e7e0059da948887f0d4 (patch)
treee81a526e1bcb325830ee365869c834661c794cca /src/caja-share-bar.c
parent7b59638eafc0950ac4778d144558311abfc4dcf6 (diff)
downloadmate-user-share-15ff0663135e48ad2cc50e7e0059da948887f0d4.tar.bz2
mate-user-share-15ff0663135e48ad2cc50e7e0059da948887f0d4.tar.xz
[share-bar] simplify code
http://git.gnome.org/browse/gnome-user-share/commit/?id=532c0b17416bff0937722d568f699597d9e54a66
Diffstat (limited to 'src/caja-share-bar.c')
-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);
}