summaryrefslogtreecommitdiff
path: root/gtk/gtkbbox.h
diff options
context:
space:
mode:
authorOwen Taylor <owt1@cornell.edu>1998-02-25 18:36:39 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-02-25 18:36:39 +0000
commit777159913ba66a7cfa16c5e4c8bde95fd5660796 (patch)
treecc6e2b972bfae267d6e7399fe769dba8d43c58b4 /gtk/gtkbbox.h
parent97bbc97bb2ac6ae012d909c4de9fd9d479d1a40b (diff)
downloadgtk+-777159913ba66a7cfa16c5e4c8bde95fd5660796.tar.gz
Move layout constants into an enumeration, split GTK_BUTTONBOX_DEFAULT
Wed Feb 25 13:18:53 1998 Owen Taylor <owt1@cornell.edu> * gtk/gtkbbox.[ch] gtk/gtkhbox.[ch] gtk/gtkvbox.[ch] : Move layout constants into an enumeration, split GTK_BUTTONBOX_DEFAULT into GTK_BUTTONBOX_DEFAULT and GTK_BUTTONBOX_DEFAULT_STYLE (enumeration member). * gtk/gtkclist.c: Renamed gtk_clist_row_isvisable to .._is_visible From: Maciej Stachowiak <mstachow@mit.edu>
Diffstat (limited to 'gtk/gtkbbox.h')
-rw-r--r--gtk/gtkbbox.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/gtk/gtkbbox.h b/gtk/gtkbbox.h
index 816f1f0c24..6b454978a9 100644
--- a/gtk/gtkbbox.h
+++ b/gtk/gtkbbox.h
@@ -24,17 +24,22 @@
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
-
+
#define GTK_BUTTON_BOX(obj) GTK_CHECK_CAST (obj, gtk_button_box_get_type (), GtkButtonBox)
#define GTK_BUTTON_BOX_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_button_box_get_type (), GtkButtonBoxClass)
#define GTK_IS_BUTTON_BOX(obj) GTK_CHECK_TYPE (obj, gtk_button_box_get_type ())
+
#define GTK_BUTTONBOX_DEFAULT -1
-#define GTK_BUTTONBOX_SPREAD 1
-#define GTK_BUTTONBOX_EDGE 2
-#define GTK_BUTTONBOX_START 3
-#define GTK_BUTTONBOX_END 4
+
+typedef enum {
+ GTK_BUTTONBOX_DEFAULT_STYLE,
+ GTK_BUTTONBOX_SPREAD,
+ GTK_BUTTONBOX_EDGE,
+ GTK_BUTTONBOX_START,
+ GTK_BUTTONBOX_END
+} GtkButtonBoxStyle;
typedef struct _GtkButtonBox GtkButtonBox;
typedef struct _GtkButtonBoxClass GtkButtonBoxClass;
@@ -47,7 +52,7 @@ struct _GtkButtonBox
gint child_min_height;
gint child_ipad_x;
gint child_ipad_y;
- gint layout_style;
+ GtkButtonBoxStyle layout_style;
};
struct _GtkButtonBoxClass
@@ -65,13 +70,14 @@ void gtk_button_box_set_child_size_default (gint min_width, gint min_height);
void gtk_button_box_set_child_ipadding_default (gint ipad_x, gint ipad_y);
gint gtk_button_box_get_spacing (GtkButtonBox *widget);
-gint gtk_button_box_get_layout (GtkButtonBox *widget);
+GtkButtonBoxStyle gtk_button_box_get_layout (GtkButtonBox *widget);
void gtk_button_box_get_child_size (GtkButtonBox *widget,
gint *min_width, gint *min_height);
void gtk_button_box_get_child_ipadding (GtkButtonBox *widget, gint *ipad_x, gint *ipad_y);
void gtk_button_box_set_spacing (GtkButtonBox *widget, gint spacing);
-void gtk_button_box_set_layout (GtkButtonBox *widget, gint layout_style);
+void gtk_button_box_set_layout (GtkButtonBox *widget,
+ GtkButtonBoxStyle layout_style);
void gtk_button_box_set_child_size (GtkButtonBox *widget,
gint min_width, gint min_height);
void gtk_button_box_set_child_ipadding (GtkButtonBox *widget, gint ipad_x, gint ipad_y);