diff options
Diffstat (limited to 'Tests/FindGTK2/gtkmm/helloworld.cpp')
-rw-r--r-- | Tests/FindGTK2/gtkmm/helloworld.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Tests/FindGTK2/gtkmm/helloworld.cpp b/Tests/FindGTK2/gtkmm/helloworld.cpp index 535f44a..5f4e0ae 100644 --- a/Tests/FindGTK2/gtkmm/helloworld.cpp +++ b/Tests/FindGTK2/gtkmm/helloworld.cpp @@ -2,21 +2,21 @@ #include <iostream> HelloWorld::HelloWorld() - : m_button("Hello World") // creates a new button with label "Hello World". + : m_button("Hello World") // creates a new button with label "Hello World". { - // Sets the border width of the window. - set_border_width(10); + // Sets the border width of the window. + set_border_width(10); - // When the button receives the "clicked" signal, it will call the - // on_button_clicked() method defined below. - m_button.signal_clicked().connect(sigc::mem_fun(*this, - &HelloWorld::on_button_clicked)); + // When the button receives the "clicked" signal, it will call the + // on_button_clicked() method defined below. + m_button.signal_clicked().connect( + sigc::mem_fun(*this, &HelloWorld::on_button_clicked)); - // This packs the button into the Window (a container). - add(m_button); + // This packs the button into the Window (a container). + add(m_button); - // The final step is to display this newly created widget... - m_button.show(); + // The final step is to display this newly created widget... + m_button.show(); } HelloWorld::~HelloWorld() @@ -25,5 +25,5 @@ HelloWorld::~HelloWorld() void HelloWorld::on_button_clicked() { - std::cout << "Hello World" << std::endl; + std::cout << "Hello World" << std::endl; } |