From 87f55e5d147491f9d96f984ea12ce0e307d48089 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 29 Sep 2014 17:32:29 +0000 Subject: [PATCH] avoid Gtk-WARNING about negative allocation size with GTK3, closes #16563 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/notebook.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gtk/notebook.cpp b/src/gtk/notebook.cpp index 9d20641108..fb93933a91 100644 --- a/src/gtk/notebook.cpp +++ b/src/gtk/notebook.cpp @@ -429,7 +429,9 @@ bool wxNotebook::InsertPage( size_t position, pageData->m_imageIndex = imageId; pageData->m_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 1); +#ifndef __WXGTK3__ gtk_container_set_border_width(GTK_CONTAINER(pageData->m_box), 2); +#endif pageData->m_image = NULL; if (imageId != -1)