GtkMyFixed is now more "GTK 1.2.3 ready".
Test added to notebook sample (showing that GTK 1.2.3 is not GTK 1.2.3 ready). Touched frame? git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -789,7 +789,7 @@ void wxFrame::OnSize( wxSizeEvent &WXUNUSED(event) )
|
||||
{
|
||||
/* yes: set it's size to fill all the frame */
|
||||
int client_x, client_y;
|
||||
GetClientSize( &client_x, &client_y );
|
||||
DoGetClientSize( &client_x, &client_y );
|
||||
child->SetSize( 1, 1, client_x-2, client_y-2 );
|
||||
}
|
||||
}
|
||||
|
@@ -225,14 +225,16 @@ gtk_myfixed_put (GtkMyFixed *myfixed,
|
||||
|
||||
myfixed->children = g_list_append (myfixed->children, child_info);
|
||||
|
||||
if (GTK_WIDGET_REALIZED (myfixed) && !GTK_WIDGET_REALIZED (widget))
|
||||
if (GTK_WIDGET_REALIZED (myfixed))
|
||||
gtk_widget_realize (widget);
|
||||
|
||||
if (GTK_WIDGET_MAPPED (myfixed) && !GTK_WIDGET_MAPPED (widget) && GTK_WIDGET_VISIBLE (widget))
|
||||
gtk_widget_map (widget);
|
||||
|
||||
if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_VISIBLE (myfixed))
|
||||
gtk_widget_queue_resize (GTK_WIDGET (myfixed));
|
||||
if (GTK_WIDGET_VISIBLE (myfixed) && GTK_WIDGET_VISIBLE (widget))
|
||||
{
|
||||
if (GTK_WIDGET_MAPPED (myfixed))
|
||||
gtk_widget_map (widget);
|
||||
|
||||
gtk_widget_queue_resize (GTK_WIDGET (myfixed));
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user