From 6be8cbcc43f83953f3e869b341ea92aa0cb2abe4 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/branches/WX_3_0_BRANCH@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 8ca5c034d9..57d507d811 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)