From 882f8f4d9959b6b27f08d2ddb525c7347df1797c Mon Sep 17 00:00:00 2001 From: Sorokin Alexei Date: Fri, 24 Jun 2016 23:33:04 +0300 Subject: use gtk_box_new instead of gtk_{h,v}box_new properly --- mate-panel/nothing.cP | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mate-panel/nothing.cP') diff --git a/mate-panel/nothing.cP b/mate-panel/nothing.cP index 71441287..e3f2b51e 100644 --- a/mate-panel/nothing.cP +++ b/mate-panel/nothing.cP @@ -6,9 +6,6 @@ #include #include #include -#if GTK_CHECK_VERSION (3, 0, 0) -#define gtk_vbox_new(X, Y) gtk_box_new(GTK_ORIENTATION_VERTICAL, Y) -#endif #include #ifdef CA_CHECK_VERSION @@ -1397,7 +1394,11 @@ start_geginv (void) gtk_widget_set_double_buffered (GTK_WIDGET (geginv_canvas), FALSE); gtk_widget_set_size_request (geginv_canvas, inv_width, inv_height); +#if GTK_CHECK_VERSION (3, 0, 0) + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); +#else vbox = gtk_vbox_new (FALSE, 0); +#endif gtk_container_add (GTK_CONTAINER (geginv), vbox); gtk_box_pack_start (GTK_BOX (vbox), geginv_canvas, TRUE, TRUE, 0); -- cgit v1.2.1