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
This commit is contained in:
Paul Cornett 2014-09-29 17:32:29 +00:00
parent 7ccffa24be
commit 87f55e5d14

View File

@ -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)