Some indentation fixes and minor cleanup

This commit is contained in:
Michael Natterer 2009-07-08 16:37:29 +02:00
parent 872152d56b
commit 11ec2ede56
2 changed files with 12 additions and 20 deletions

View File

@ -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;

View File

@ -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);
}