Mercurial > pidgin
diff console/libgnt/gntbox.h @ 13939:5d5c84239eea
[gaim-migrate @ 16470]
Add an alignment option in a GntBox to align the widgets in it.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 09 Jul 2006 04:44:58 +0000 |
parents | cc60d0861337 |
children | 25be562aaca8 |
line wrap: on
line diff
--- a/console/libgnt/gntbox.h Sun Jul 09 01:23:12 2006 +0000 +++ b/console/libgnt/gntbox.h Sun Jul 09 04:44:58 2006 +0000 @@ -14,6 +14,19 @@ typedef struct _GnBox GntBox; typedef struct _GnBoxClass GntBoxClass; +typedef enum +{ + /* These for vertical boxes */ + GNT_ALIGN_LEFT, + GNT_ALIGN_RIGHT, + + GNT_ALIGN_MID, + + /* These for horizontal boxes */ + GNT_ALIGN_TOP, + GNT_ALIGN_BOTTOM +} GntAlignment; + struct _GnBox { GntWidget parent; @@ -24,6 +37,7 @@ GntWidget *active; int pad; /* Number of spaces to use between widgets */ + GntAlignment alignment; /* How are the widgets going to be aligned? */ char *title; GList *focus; /* List of widgets to cycle focus (only valid for parent boxes) */ @@ -60,6 +74,8 @@ void gnt_box_sync_children(GntBox *box); +void gnt_box_set_alignment(GntBox *box, GntAlignment alignment); + G_END_DECLS #endif /* GNT_BOX_H */