Update of /cvsroot/sharedaemon/ui-wx/src
In directory sc8-pr-cvs1:/tmp/cvs-serv19518
Modified Files:
SBPanel.cpp ServerWnd.cpp
Log Message:
Two minor sidebar fixes
Index: SBPanel.cpp
===================================================================
RCS file: /cvsroot/sharedaemon/ui-wx/src/SBPanel.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- SBPanel.cpp 6 Dec 2003 00:18:37 -0000 1.4
+++ SBPanel.cpp 17 Dec 2003 04:05:41 -0000 1.5
@@ -96,6 +96,7 @@
shown = true;
}
GetParent()->Layout();
+ wxGetTopLevelParent(this)->Layout();
}
/**
Index: ServerWnd.cpp
===================================================================
RCS file: /cvsroot/sharedaemon/ui-wx/src/ServerWnd.cpp,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- ServerWnd.cpp 6 Dec 2003 00:45:36 -0000 1.45
+++ ServerWnd.cpp 17 Dec 2003 04:05:41 -0000 1.46
@@ -193,13 +193,7 @@
sidebar, -1, _("Add new server"), wxT("SideBar_AddServer")
);
addserver->SetContent(AddServerPanel(addserver, false, false));
-
- /* Need to use border 0 on wxMSW to have correct layout */
- #ifdef __WXMSW__
- sbmain->Add(addserver, 0, wxGROW|wxALL|wxADJUST_MINSIZE, 0);
- #else
- sbmain->Add(addserver, 0, wxGROW|wxALL|wxADJUST_MINSIZE, 5);
- #endif
+ sbmain->Add(addserver, 0, wxGROW|wxALL|wxADJUST_MINSIZE, 0);
CSBPanel *updatelist = new CSBPanel(
sidebar, -1, _("Update from URL"), wxT("SideBar_UpdateServer")
|