X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-hbuttonbox.c;h=2d036a415630df7621df1afd9df9de4a0a14117c;hb=0a2ee97da7736d31c23b6b2cac91303b925dab50;hp=ae5f30945e538f7a86b1ce92c33a3765df49f45f;hpb=43b1296aafe7582e7dbe6c2b6a8b478d7d9b0fcf;p=pspp diff --git a/src/ui/gui/psppire-hbuttonbox.c b/src/ui/gui/psppire-hbuttonbox.c index ae5f30945e..2d036a4156 100644 --- a/src/ui/gui/psppire-hbuttonbox.c +++ b/src/ui/gui/psppire-hbuttonbox.c @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyright (C) 2007 Free Software Foundation + Copyright (C) 2007, 2010, 2011 Free Software Foundation This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,12 +19,9 @@ #include #include -#include #include "psppire-hbuttonbox.h" #include "psppire-dialog.h" -#include - #include #define _(msgid) gettext (msgid) @@ -40,7 +37,7 @@ static void gtk_hbutton_box_size_allocate (GtkWidget *widget, GtkAllocation *allocation); -static GtkButtonBoxStyle default_layout_style = GTK_BUTTONBOX_EDGE; +static const GtkButtonBoxStyle default_layout_style = GTK_BUTTONBOX_EDGE; GType psppire_hbutton_box_get_type (void) @@ -246,7 +243,7 @@ gtk_hbutton_box_size_allocate (GtkWidget *widget, child = children->data; children = children->next; - if (GTK_WIDGET_VISIBLE (child->widget)) + if (gtk_widget_get_visible (child->widget)) { child_allocation.width = child_width; child_allocation.height = child_height;