~om26er/ubuntu/oneiric/unity/sru-778256

« back to all changes in this revision

Viewing changes to tests/TestPanel.cpp

Update formatting to match style (as close as possible)

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
void ThreadWidgetInit(nux::NThread* thread, void* InitData)
32
32
{
33
 
  nux::VLayout *layout = new nux::VLayout(TEXT(""), NUX_TRACKER_LOCATION);
34
 
  unity::PanelView *view = new unity::PanelView ();
 
33
  nux::VLayout* layout = new nux::VLayout(TEXT(""), NUX_TRACKER_LOCATION);
 
34
  unity::PanelView* view = new unity::PanelView();
35
35
 
36
36
  //view->SetMinMaxSize(1024, 24);
37
37
  layout->AddView(view, 1, nux::eCenter, nux::eFull);
38
38
  layout->SetContentDistribution(nux::eStackCenter);
39
39
 
40
 
  nux::GetGraphicsThread()->SetLayout (layout);
 
40
  nux::GetGraphicsThread()->SetLayout(layout);
41
41
}
42
42
 
43
 
int main(int argc, char **argv)
 
43
int main(int argc, char** argv)
44
44
{
45
 
  g_type_init ();
46
 
  g_thread_init (NULL);
47
 
  gtk_init (&argc, &argv);
 
45
  g_type_init();
 
46
  g_thread_init(NULL);
 
47
  gtk_init(&argc, &argv);
48
48
 
49
 
  dbus_g_thread_init ();
 
49
  dbus_g_thread_init();
50
50
 
51
51
  nux::NuxInitialize(0);
52
52
 
53
53
  nux::WindowThread* wt = nux::CreateGUIThread(TEXT("Unity Panel"), 1024, 24, 0, &ThreadWidgetInit, 0);
54
 
  
 
54
 
55
55
  wt->Run(NULL);
56
56
  delete wt;
57
57
  return 0;