From 11ec2ede5623c052644af83c2e0c36d60744aa99 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Wed, 8 Jul 2009 16:37:29 +0200 Subject: [PATCH] Some indentation fixes and minor cleanup --- gtk/gtkhbbox.c | 20 ++++++++------------ gtk/gtkvbbox.c | 12 ++++-------- 2 files changed, 12 insertions(+), 20 deletions(-) diff --git a/gtk/gtkhbbox.c b/gtk/gtkhbbox.c index d852daf0a2..ea9c1f843b 100644 --- a/gtk/gtkhbbox.c +++ b/gtk/gtkhbbox.c @@ -21,7 +21,7 @@ * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS * file for a list of people on the GTK+ Team. See the ChangeLog * files for a list of changes. These files are distributed with - * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. */ #include "config.h" @@ -44,24 +44,20 @@ gtk_hbutton_box_class_init (GtkHButtonBoxClass *class) static void gtk_hbutton_box_init (GtkHButtonBox *hbutton_box) { - gtk_orientable_set_orientation (GTK_ORIENTABLE (hbutton_box), - GTK_ORIENTATION_HORIZONTAL); + gtk_orientable_set_orientation (GTK_ORIENTABLE (hbutton_box), + GTK_ORIENTATION_HORIZONTAL); } -GtkWidget* +GtkWidget * gtk_hbutton_box_new (void) { - GtkHButtonBox *hbutton_box; - - hbutton_box = g_object_new (GTK_TYPE_HBUTTON_BOX, NULL); - - return GTK_WIDGET (hbutton_box); + return g_object_new (GTK_TYPE_HBUTTON_BOX, NULL); } /* set default value for spacing */ -void +void gtk_hbutton_box_set_spacing_default (gint spacing) { default_spacing = spacing; @@ -70,7 +66,7 @@ gtk_hbutton_box_set_spacing_default (gint spacing) /* set default value for layout style */ -void +void gtk_hbutton_box_set_layout_default (GtkButtonBoxStyle layout) { g_return_if_fail (layout >= GTK_BUTTONBOX_DEFAULT_STYLE && @@ -81,7 +77,7 @@ gtk_hbutton_box_set_layout_default (GtkButtonBoxStyle layout) /* get default value for spacing */ -gint +gint gtk_hbutton_box_get_spacing_default (void) { return default_spacing; diff --git a/gtk/gtkvbbox.c b/gtk/gtkvbbox.c index 5198e46a30..0f9262171e 100644 --- a/gtk/gtkvbbox.c +++ b/gtk/gtkvbbox.c @@ -21,7 +21,7 @@ * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS * file for a list of people on the GTK+ Team. See the ChangeLog * files for a list of changes. These files are distributed with - * GTK+ at ftp://ftp.gtk.org/pub/gtk/. + * GTK+ at ftp://ftp.gtk.org/pub/gtk/. */ #include "config.h" @@ -45,17 +45,13 @@ static void gtk_vbutton_box_init (GtkVButtonBox *vbutton_box) { gtk_orientable_set_orientation (GTK_ORIENTABLE (vbutton_box), - GTK_ORIENTATION_VERTICAL); + GTK_ORIENTATION_VERTICAL); } -GtkWidget* +GtkWidget * gtk_vbutton_box_new (void) { - GtkVButtonBox *vbutton_box; - - vbutton_box = g_object_new (GTK_TYPE_VBUTTON_BOX, NULL); - - return GTK_WIDGET (vbutton_box); + return g_object_new (GTK_TYPE_VBUTTON_BOX, NULL); }