diff options
author | Jasmine Hassan <[email protected]> | 2012-10-29 06:47:32 +0200 |
---|---|---|
committer | Jasmine Hassan <[email protected]> | 2012-10-29 15:23:13 +0200 |
commit | 15ff0663135e48ad2cc50e7e0059da948887f0d4 (patch) | |
tree | e81a526e1bcb325830ee365869c834661c794cca /src | |
parent | 7b59638eafc0950ac4778d144558311abfc4dcf6 (diff) | |
download | mate-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')
-rw-r--r-- | src/caja-share-bar.c | 12 |
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); } |