Layout should not be called until after a sizer is inserted into its parent. This fixes the "gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 17" type console warnings that are annoying on linux. If there are issues with this on other platforms let me know, but there shouldn't be.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6459 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice
2010-11-22 15:25:59 +00:00
parent 3ebd09efc9
commit cefaa393e6
3 changed files with 7 additions and 29 deletions

View File

@ -37,7 +37,6 @@ u32 Timer::GetTimeMs()
#ifdef _WIN32
return timeGetTime();
#else
printf("using gettimeofday\n");
struct timeval t;
(void)gettimeofday(&t, NULL);
return ((u32)(t.tv_sec * 1000 + t.tv_usec / 1000));