From 9277713c575f7ac30fb218b5955895050894f63a Mon Sep 17 00:00:00 2001 From: monsta Date: Wed, 20 Jan 2016 13:11:30 +0300 Subject: use GtkBox instead of GtkHBox in both GTK+ builds and fix deprecated usage of GtkHBox and GtkVBox in GTK+3 build --- polkitgtkmate/example.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'polkitgtkmate/example.c') diff --git a/polkitgtkmate/example.c b/polkitgtkmate/example.c index da1d2e4..8b2da85 100644 --- a/polkitgtkmate/example.c +++ b/polkitgtkmate/example.c @@ -115,7 +115,11 @@ 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