From a9222b1af3b486e12147dc0e0fe7143aa809cdec Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 17 May 2016 14:17:36 +0300 Subject: require GTK+ >= 3.14, drop GTK+2 code and --with-gtk build option --- polkitgtkmate/Makefile.am | 4 ++-- polkitgtkmate/example.c | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'polkitgtkmate') diff --git a/polkitgtkmate/Makefile.am b/polkitgtkmate/Makefile.am index 0a543b0..6e6e751 100644 --- a/polkitgtkmate/Makefile.am +++ b/polkitgtkmate/Makefile.am @@ -83,12 +83,12 @@ PolkitGtkMate-1.0.gir: libpolkit-gtk-mate-1.la $(G_IR_SCANNER) Makefile.am --namespace PolkitGtkMate \ --strip-prefix=Polkit \ --nsversion=1.0 \ - --include=Gtk-${GTK_API_VERSION} \ + --include=Gtk-3.0 \ --include=Polkit-1.0 \ --library=polkit-gtk-mate-1 \ --output $@ \ --pkg=polkit-gobject-1 \ - --pkg=gtk+-${GTK_API_VERSION} \ + --pkg=gtk+-3.0 \ --pkg-export=polkit-mate-gtk-1 \ --c-include='polkitgtkmate/polkitgtkmate.h' \ --libtool=$(top_builddir)/libtool \ diff --git a/polkitgtkmate/example.c b/polkitgtkmate/example.c index f5c9f0a..6fc09da 100644 --- a/polkitgtkmate/example.c +++ b/polkitgtkmate/example.c @@ -115,11 +115,7 @@ int main(int argc, char* argv[]) window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_resizable(GTK_WINDOW(window), TRUE); -#if GTK_CHECK_VERSION (3, 0, 0) vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12); -#else - vbox = gtk_vbox_new(FALSE, 12); -#endif gtk_container_set_border_width(GTK_CONTAINER(window), 12); gtk_container_add(GTK_CONTAINER(window), vbox); -- cgit v1.2.1