Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
avoid Gtk-WARNING about negative allocation size with GTK3, closes #1…
  • Loading branch information
Paul Cornett committed Sep 29, 2014
1 parent fee3442 commit 6be8cbc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gtk/notebook.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 6be8cbc

Please sign in to comment.