X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-buttonbox.h;h=d4b53787b34e79489e3fc7b3f682af0b11ca489b;hb=f790dbda9d498eef9c9c0a49078adbeecf768d56;hp=654f18144231b04ba5f33c2fbac6636720dbee73;hpb=6bb9fb8db1002ec00f58cae414a06769fe1a7e68;p=pspp diff --git a/src/ui/gui/psppire-buttonbox.h b/src/ui/gui/psppire-buttonbox.h index 654f181442..d4b53787b3 100644 --- a/src/ui/gui/psppire-buttonbox.h +++ b/src/ui/gui/psppire-buttonbox.h @@ -1,5 +1,5 @@ /* PSPPIRE - a graphical user interface for PSPP. - Copyright (C) 2007, 2010, 2011 Free Software Foundation + Copyright (C) 2007, 2010, 2011, 2012 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 @@ -25,15 +25,16 @@ G_BEGIN_DECLS -#define PSPPIRE_BUTTONBOX_TYPE (psppire_button_box_get_type ()) -#define PSPPIRE_BUTTONBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PSPPIRE_BUTTONBOX_TYPE, PsppireButtonBox)) -#define PSPPIRE_BUTTONBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PSPPIRE_BUTTONBOX_TYPE, PsppireButtonBoxClass)) +#define PSPPIRE_BUTTONBOX_TYPE (psppire_buttonbox_get_type ()) +#define PSPPIRE_BUTTONBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PSPPIRE_BUTTONBOX_TYPE, PsppireButtonbox)) +#define PSPPIRE_BUTTONBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PSPPIRE_BUTTONBOX_TYPE, PsppireButtonboxClass)) #define PSPPIRE_IS_BUTTONBOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PSPPIRE_BUTTONBOX_TYPE)) #define PSPPIRE_IS_BUTTONBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PSPPIRE_BUTTONBOX_TYPE)) -typedef struct _PsppireButtonBox PsppireButtonBox; -typedef struct _PsppireButtonBoxClass PsppireButtonBoxClass; +typedef struct _PsppireButtonbox PsppireButtonbox; +typedef struct _PsppireButtonboxClass PsppireButtonboxClass; + enum { @@ -41,40 +42,32 @@ enum PSPPIRE_BUTTON_GOTO, PSPPIRE_BUTTON_CONTINUE, PSPPIRE_BUTTON_CANCEL, + PSPPIRE_BUTTON_CLOSE, PSPPIRE_BUTTON_HELP, PSPPIRE_BUTTON_RESET, PSPPIRE_BUTTON_PASTE, - n_PsppireButtonBoxButtons + n_PsppireButtonboxButtons }; -struct _PsppireButtonBox + +struct _PsppireButtonbox { GtkButtonBox parent; /* */ - GtkWidget *button[n_PsppireButtonBoxButtons]; + GtkWidget *button[n_PsppireButtonboxButtons]; guint def; }; -struct _PsppireButtonBoxClass +struct _PsppireButtonboxClass { GtkButtonBoxClass parent_class; }; -GType psppire_button_box_get_type (void); - - -/* Internal function. Do not use */ -void -_psppire_button_box_child_requisition (GtkWidget *widget, - int *nvis_children, - int *nvis_secondaries, - int *width, +GType psppire_buttonbox_get_type (void); -#define PSPPIRE_TYPE_BUTTON_MASK \ - (psppire_button_flags_get_type()) - int *height); +#define PSPPIRE_TYPE_BUTTON_MASK psppire_button_flags_get_type() G_END_DECLS