summaryrefslogtreecommitdiff
path: root/libmetacity/meta-button-layout-private.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmetacity/meta-button-layout-private.h')
-rw-r--r--libmetacity/meta-button-layout-private.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/libmetacity/meta-button-layout-private.h b/libmetacity/meta-button-layout-private.h
index 31341a57..62c62df1 100644
--- a/libmetacity/meta-button-layout-private.h
+++ b/libmetacity/meta-button-layout-private.h
@@ -26,16 +26,22 @@ G_BEGIN_DECLS
typedef struct
{
/* buttons in the group on the left side */
- MetaButtonType left_buttons[META_BUTTON_TYPE_LAST];
- gboolean left_buttons_has_spacer[META_BUTTON_TYPE_LAST];
+ MetaButtonType left_buttons[META_BUTTON_TYPE_LAST];
+ gboolean left_buttons_has_spacer[META_BUTTON_TYPE_LAST];
+ gint n_left_buttons;
/* buttons in the group on the right side */
- MetaButtonType right_buttons[META_BUTTON_TYPE_LAST];
- gboolean right_buttons_has_spacer[META_BUTTON_TYPE_LAST];
+ MetaButtonType right_buttons[META_BUTTON_TYPE_LAST];
+ gboolean right_buttons_has_spacer[META_BUTTON_TYPE_LAST];
+ gint n_right_buttons;
+
+ MetaButtonState button_states[META_BUTTON_TYPE_LAST];
} MetaButtonLayout;
-MetaButtonLayout meta_button_layout_new (const gchar *str,
- gboolean invert);
+MetaButtonLayout *meta_button_layout_new (const gchar *str,
+ gboolean invert);
+
+void meta_button_layout_free (MetaButtonLayout *layout);
G_END_DECLS