summaryrefslogtreecommitdiff
path: root/polkitgtkmate/polkitlockbutton.h
diff options
context:
space:
mode:
Diffstat (limited to 'polkitgtkmate/polkitlockbutton.h')
-rw-r--r--polkitgtkmate/polkitlockbutton.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/polkitgtkmate/polkitlockbutton.h b/polkitgtkmate/polkitlockbutton.h
index 519128b..ce3affe 100644
--- a/polkitgtkmate/polkitlockbutton.h
+++ b/polkitgtkmate/polkitlockbutton.h
@@ -57,7 +57,11 @@ typedef struct _PolkitLockButtonPrivate PolkitLockButtonPrivate;
* should be accessed using the provided API.
*/
struct _PolkitLockButton {
+#if GTK_CHECK_VERSION (3, 0, 0)
+ GtkBox parent;
+#else
GtkHBox parent;
+#endif
/*< private >*/
PolkitLockButtonPrivate* priv;
@@ -71,7 +75,11 @@ struct _PolkitLockButton {
* Class structure for #PolkitLockButton.
*/
struct _PolkitLockButtonClass {
+#if GTK_CHECK_VERSION (3, 0, 0)
+ GtkBoxClass parent_class;
+#else
GtkHBoxClass parent_class;
+#endif
/* Signals */
void (*changed)(PolkitLockButton* button);