From f3c7002b8ae2ca19e7f264a6862b1e20616654a4 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Sun, 11 Aug 2013 18:48:36 +0200 Subject: Use GtkBox in GTK3 instead of GtkHBox --- polkitgtkmate/polkitlockbutton.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'polkitgtkmate/polkitlockbutton.c') diff --git a/polkitgtkmate/polkitlockbutton.c b/polkitgtkmate/polkitlockbutton.c index 079a94b..757c34c 100644 --- a/polkitgtkmate/polkitlockbutton.c +++ b/polkitgtkmate/polkitlockbutton.c @@ -209,7 +209,11 @@ static void on_authority_changed(PolkitAuthority* authority, gpointer user_data) static void on_clicked(GtkButton* button, gpointer user_data); +#if GTK_CHECK_VERSION (3, 0, 0) +G_DEFINE_TYPE(PolkitLockButton, polkit_lock_button, GTK_TYPE_BOX); +#else G_DEFINE_TYPE(PolkitLockButton, polkit_lock_button, GTK_TYPE_HBOX); +#endif static void polkit_lock_button_finalize(GObject* object) { -- cgit v1.2.1