[gtkmm-documentation] Remove trailing whitespace.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm-documentation] Remove trailing whitespace.
- Date: Mon, 16 May 2016 15:16:07 +0000 (UTC)
commit e5a99a805470c70ded503a594acdd250c94f614e
Author: Murray Cumming <murrayc murrayc com>
Date: Mon May 16 17:15:45 2016 +0200
Remove trailing whitespace.
.../app_and_win_menus/exampleapplication.cc | 2 +-
.../app_and_win_menus/exampleapplication.h | 2 +-
.../application/app_and_win_menus/examplewindow.cc | 2 +-
.../application/app_and_win_menus/examplewindow.h | 2 +-
.../book/application/app_and_win_menus/main.cc | 4 +-
.../command_line_handling/exampleapplication.h | 4 +-
.../command_line_handling/examplewindow.cc | 12 +++---
.../command_line_handling/examplewindow.h | 2 +-
.../book/application/command_line_handling/main.cc | 4 +-
.../book/application/simple/exampleapplication.h | 2 +-
examples/book/application/simple/examplewindow.cc | 12 +++---
examples/book/application/simple/examplewindow.h | 2 +-
examples/book/application/simple/main.cc | 4 +-
examples/book/builder/derived/deriveddialog.cc | 2 +-
.../buttons/filechooserbutton/examplewindow.cc | 2 +-
examples/book/clipboard/ideal/examplewindow.cc | 2 +-
examples/book/clipboard/ideal/examplewindow.h | 2 +-
examples/book/clipboard/simple/examplewindow.h | 2 +-
examples/book/custom/custom_widget/mywidget.cc | 2 +-
examples/book/dialogs/aboutdialog/examplewindow.cc | 2 +-
examples/book/entry/completion/examplewindow.h | 2 +-
examples/book/entry/icon/examplewindow.cc | 2 +-
examples/book/entry/progress/examplewindow.cc | 2 +-
examples/book/giomm/directory_list/main.cc | 2 +-
examples/book/giomm/read_file/main.cc | 4 +-
examples/book/giomm/read_file_async/main.cc | 8 ++--
examples/book/giomm/volumes/main.cc | 2 +-
examples/book/giomm/write_file/main.cc | 8 ++--
examples/book/headerbar/examplewindow.cc | 2 +-
examples/book/headerbar/examplewindow.h | 2 +-
examples/book/idle/idleexample.cc | 2 +-
examples/book/infobar/examplewindow.h | 2 +-
.../keyboard_events/propagation/examplewindow.cc | 2 +-
.../book/keyboard_events/simple/examplewindow.cc | 2 +-
examples/book/menus/main_menu/examplewindow.cc | 2 +-
examples/book/menus/popup/examplewindow.cc | 2 +-
examples/book/placessidebar/examplewindow.h | 2 +-
examples/book/popover/examplewindow.h | 2 +-
examples/book/printing/advanced/examplewindow.cc | 8 ++--
examples/book/printing/advanced/examplewindow.h | 4 +-
examples/book/printing/simple/examplewindow.cc | 8 ++--
examples/book/printing/simple/examplewindow.h | 2 +-
examples/book/revealer/examplewindow.h | 2 +-
examples/book/searchbar/examplewindow.h | 4 +-
examples/book/textview/examplewindow.h | 4 +-
examples/book/toolpalette/canvas.h | 6 +-
examples/book/toolpalette/examplewindow.cc | 8 ++--
.../book/treeview/combo_renderer/examplewindow.cc | 4 +-
.../book/treeview/combo_renderer/examplewindow.h | 8 ++--
.../book/treeview/drag_and_drop/treemodel_dnd.h | 2 +-
.../book/treeview/editable_cells/examplewindow.cc | 8 ++--
.../book/treeview/filter_modify/examplewindow.cc | 2 +-
.../book/treeview/filter_modify/examplewindow.h | 2 +-
examples/book/treeview/popup/examplewindow.h | 2 +-
examples/book/treeview/popup/treeview_withpopup.cc | 4 +-
examples/book/treeview/popup/treeview_withpopup.h | 4 +-
examples/book/treeview/tree/examplewindow.h | 2 +-
examples/others/arrow/arrow.cc | 6 +-
examples/others/calendar/calendar.cc | 20 +++++-----
.../others/cellrenderercustom/cellrendererlist.cc | 2 +-
.../others/cellrenderercustom/cellrendererlist.h | 2 +-
examples/others/cellrenderercustom/popupentry.h | 2 +-
examples/others/cellrenderercustom/testpopup.cc | 2 +-
examples/others/exception/exceptiontest.cc | 4 +-
examples/others/idle/idle.cc | 2 +-
examples/others/statusbar/statusbar.cc | 10 ++--
examples/others/tictactoe/tictactoe.cc | 4 +-
.../others/treemodelcustom/exampletreemodel.cc | 40 ++++++++++----------
examples/others/treemodelcustom/exampletreemodel.h | 10 ++--
69 files changed, 153 insertions(+), 153 deletions(-)
---
diff --git a/examples/book/application/app_and_win_menus/exampleapplication.cc
b/examples/book/application/app_and_win_menus/exampleapplication.cc
index 2f7254e..9fe8268 100644
--- a/examples/book/application/app_and_win_menus/exampleapplication.cc
+++ b/examples/book/application/app_and_win_menus/exampleapplication.cc
@@ -41,7 +41,7 @@ void ExampleApplication::on_startup()
add_action("quit",
sigc::mem_fun(*this, &ExampleApplication::on_action_quit) );
-
+
auto app_menu = Gio::Menu::create();
app_menu->append("_Something", "app.something");
app_menu->append("_Quit", "app.quit");
diff --git a/examples/book/application/app_and_win_menus/exampleapplication.h
b/examples/book/application/app_and_win_menus/exampleapplication.h
index d639906..16d68c4 100644
--- a/examples/book/application/app_and_win_menus/exampleapplication.h
+++ b/examples/book/application/app_and_win_menus/exampleapplication.h
@@ -26,7 +26,7 @@ protected:
public:
static Glib::RefPtr<ExampleApplication> create();
-
+
protected:
//Overrides of default signal handlers:
void on_activate() override;
diff --git a/examples/book/application/app_and_win_menus/examplewindow.cc
b/examples/book/application/app_and_win_menus/examplewindow.cc
index 2978fc9..a997d52 100644
--- a/examples/book/application/app_and_win_menus/examplewindow.cc
+++ b/examples/book/application/app_and_win_menus/examplewindow.cc
@@ -25,7 +25,7 @@ ExampleWindow::ExampleWindow()
// We can use add_action because Gtk::ApplicationWindow derives from ActionMap.
// This Action Map uses a "win." prefix for the actions.
// Therefore, for instance, "win.new", is used in ExampleApplication::on_startup()
- // to layout the menu.
+ // to layout the menu.
add_action("new",
sigc::mem_fun(*this, &ExampleWindow::on_action_something) );
add_action("close",
diff --git a/examples/book/application/app_and_win_menus/examplewindow.h
b/examples/book/application/app_and_win_menus/examplewindow.h
index d0f00be..a982ce1 100644
--- a/examples/book/application/app_and_win_menus/examplewindow.h
+++ b/examples/book/application/app_and_win_menus/examplewindow.h
@@ -23,7 +23,7 @@ class ExampleWindow: public Gtk::ApplicationWindow
{
public:
explicit ExampleWindow();
-
+
private:
void on_action_something();
void on_action_close();
diff --git a/examples/book/application/app_and_win_menus/main.cc
b/examples/book/application/app_and_win_menus/main.cc
index e9afea5..57acdfc 100644
--- a/examples/book/application/app_and_win_menus/main.cc
+++ b/examples/book/application/app_and_win_menus/main.cc
@@ -21,10 +21,10 @@
int main(int argc, char *argv[])
{
- auto application =
+ auto application =
ExampleApplication::create();
- // Start the application, showing the initial window,
+ // Start the application, showing the initial window,
// and opening extra windows for any files that it is asked to open,
// for instance as a command-line parameter.
// run() will return when the last window has been closed by the user.
diff --git a/examples/book/application/command_line_handling/exampleapplication.h
b/examples/book/application/command_line_handling/exampleapplication.h
index 8302cf2..bf78241 100644
--- a/examples/book/application/command_line_handling/exampleapplication.h
+++ b/examples/book/application/command_line_handling/exampleapplication.h
@@ -26,7 +26,7 @@ protected:
public:
static Glib::RefPtr<ExampleApplication> create();
-
+
protected:
//Overrides of default signal handlers:
void on_activate() override;
@@ -42,7 +42,7 @@ protected:
const Glib::ustring& value, bool has_value);
bool on_option_arg_filename(const Glib::ustring& option_name,
const std::string& value, bool has_value);
-
+
private:
void create_window(const Glib::RefPtr<Gio::File>& file = Glib::RefPtr<Gio::File>());
diff --git a/examples/book/application/command_line_handling/examplewindow.cc
b/examples/book/application/command_line_handling/examplewindow.cc
index 164ad38..05810b3 100644
--- a/examples/book/application/command_line_handling/examplewindow.cc
+++ b/examples/book/application/command_line_handling/examplewindow.cc
@@ -27,7 +27,7 @@ ExampleWindow::ExampleWindow()
}
bool ExampleWindow::load_file(const Glib::RefPtr<Gio::File>& file)
-{
+{
if(!file)
return false;
@@ -51,12 +51,12 @@ bool ExampleWindow::load_file(const Glib::RefPtr<Gio::File>& file)
{
std::cerr << G_STRFUNC << ": exception while opening file: " << file->get_uri() << std::endl <<
" exception: " << ex.what() << std::endl;
-
- //Tell the application that this window can no longer be useful to
- //this application, so it can forget about it. The instance might then exit
+
+ //Tell the application that this window can no longer be useful to
+ //this application, so it can forget about it. The instance might then exit
//if this is its last open window.
- //Note that we must be careful that the caller only calls this method _after_
- //calling show(), or this would be useless:
+ //Note that we must be careful that the caller only calls this method _after_
+ //calling show(), or this would be useless:
hide();
return false;
}
diff --git a/examples/book/application/command_line_handling/examplewindow.h
b/examples/book/application/command_line_handling/examplewindow.h
index 1180135..2c5eade 100644
--- a/examples/book/application/command_line_handling/examplewindow.h
+++ b/examples/book/application/command_line_handling/examplewindow.h
@@ -27,7 +27,7 @@ public:
//so we can separate window creation and hiding of the window
//when loading fails.
explicit ExampleWindow();
-
+
bool load_file(const Glib::RefPtr<Gio::File>& file);
private:
diff --git a/examples/book/application/command_line_handling/main.cc
b/examples/book/application/command_line_handling/main.cc
index e9afea5..57acdfc 100644
--- a/examples/book/application/command_line_handling/main.cc
+++ b/examples/book/application/command_line_handling/main.cc
@@ -21,10 +21,10 @@
int main(int argc, char *argv[])
{
- auto application =
+ auto application =
ExampleApplication::create();
- // Start the application, showing the initial window,
+ // Start the application, showing the initial window,
// and opening extra windows for any files that it is asked to open,
// for instance as a command-line parameter.
// run() will return when the last window has been closed by the user.
diff --git a/examples/book/application/simple/exampleapplication.h
b/examples/book/application/simple/exampleapplication.h
index aa508fb..b61cd5c 100644
--- a/examples/book/application/simple/exampleapplication.h
+++ b/examples/book/application/simple/exampleapplication.h
@@ -26,7 +26,7 @@ protected:
public:
static Glib::RefPtr<ExampleApplication> create();
-
+
protected:
//Overrides of default signal handlers:
void on_activate() override;
diff --git a/examples/book/application/simple/examplewindow.cc
b/examples/book/application/simple/examplewindow.cc
index 164ad38..05810b3 100644
--- a/examples/book/application/simple/examplewindow.cc
+++ b/examples/book/application/simple/examplewindow.cc
@@ -27,7 +27,7 @@ ExampleWindow::ExampleWindow()
}
bool ExampleWindow::load_file(const Glib::RefPtr<Gio::File>& file)
-{
+{
if(!file)
return false;
@@ -51,12 +51,12 @@ bool ExampleWindow::load_file(const Glib::RefPtr<Gio::File>& file)
{
std::cerr << G_STRFUNC << ": exception while opening file: " << file->get_uri() << std::endl <<
" exception: " << ex.what() << std::endl;
-
- //Tell the application that this window can no longer be useful to
- //this application, so it can forget about it. The instance might then exit
+
+ //Tell the application that this window can no longer be useful to
+ //this application, so it can forget about it. The instance might then exit
//if this is its last open window.
- //Note that we must be careful that the caller only calls this method _after_
- //calling show(), or this would be useless:
+ //Note that we must be careful that the caller only calls this method _after_
+ //calling show(), or this would be useless:
hide();
return false;
}
diff --git a/examples/book/application/simple/examplewindow.h
b/examples/book/application/simple/examplewindow.h
index 1180135..2c5eade 100644
--- a/examples/book/application/simple/examplewindow.h
+++ b/examples/book/application/simple/examplewindow.h
@@ -27,7 +27,7 @@ public:
//so we can separate window creation and hiding of the window
//when loading fails.
explicit ExampleWindow();
-
+
bool load_file(const Glib::RefPtr<Gio::File>& file);
private:
diff --git a/examples/book/application/simple/main.cc b/examples/book/application/simple/main.cc
index e9afea5..57acdfc 100644
--- a/examples/book/application/simple/main.cc
+++ b/examples/book/application/simple/main.cc
@@ -21,10 +21,10 @@
int main(int argc, char *argv[])
{
- auto application =
+ auto application =
ExampleApplication::create();
- // Start the application, showing the initial window,
+ // Start the application, showing the initial window,
// and opening extra windows for any files that it is asked to open,
// for instance as a command-line parameter.
// run() will return when the last window has been closed by the user.
diff --git a/examples/book/builder/derived/deriveddialog.cc b/examples/book/builder/derived/deriveddialog.cc
index 4a4b0ca..bf73a81 100644
--- a/examples/book/builder/derived/deriveddialog.cc
+++ b/examples/book/builder/derived/deriveddialog.cc
@@ -25,7 +25,7 @@ DerivedDialog::DerivedDialog(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Bu
m_refGlade->get_widget("quit_button", m_pButton);
if(m_pButton)
{
- m_pButton->signal_clicked().connect( sigc::mem_fun(*this, &DerivedDialog::on_button_quit) );
+ m_pButton->signal_clicked().connect( sigc::mem_fun(*this, &DerivedDialog::on_button_quit) );
}
}
diff --git a/examples/book/buttons/filechooserbutton/examplewindow.cc
b/examples/book/buttons/filechooserbutton/examplewindow.cc
index 53adb41..881f3a3 100644
--- a/examples/book/buttons/filechooserbutton/examplewindow.cc
+++ b/examples/book/buttons/filechooserbutton/examplewindow.cc
@@ -29,7 +29,7 @@ ExampleWindow::ExampleWindow()
add(m_button);
- //Allow our file chooser to select remote URIs,
+ //Allow our file chooser to select remote URIs,
//for instance via bookmarked servers:
m_button.set_local_only(false);
diff --git a/examples/book/clipboard/ideal/examplewindow.cc b/examples/book/clipboard/ideal/examplewindow.cc
index 769a606..6441a8c 100644
--- a/examples/book/clipboard/ideal/examplewindow.cc
+++ b/examples/book/clipboard/ideal/examplewindow.cc
@@ -115,7 +115,7 @@ void ExampleWindow::on_button_paste()
//Tell the clipboard to call our method when it is ready:
auto refClipboard = Gtk::Clipboard::get();
- refClipboard->request_contents(example_target_custom,
+ refClipboard->request_contents(example_target_custom,
sigc::mem_fun(*this, &ExampleWindow::on_clipboard_received) );
update_paste_status();
diff --git a/examples/book/clipboard/ideal/examplewindow.h b/examples/book/clipboard/ideal/examplewindow.h
index e122035..d0ea50c 100644
--- a/examples/book/clipboard/ideal/examplewindow.h
+++ b/examples/book/clipboard/ideal/examplewindow.h
@@ -45,7 +45,7 @@ protected:
Gtk::Box m_VBox;
Gtk::Label m_Label;
-
+
Gtk::Grid m_Grid;
Gtk::ToggleButton m_ButtonA1, m_ButtonA2, m_ButtonB1, m_ButtonB2;
diff --git a/examples/book/clipboard/simple/examplewindow.h b/examples/book/clipboard/simple/examplewindow.h
index 9d1a867..047a561 100644
--- a/examples/book/clipboard/simple/examplewindow.h
+++ b/examples/book/clipboard/simple/examplewindow.h
@@ -37,7 +37,7 @@ protected:
Gtk::Box m_VBox;
Gtk::Label m_Label;
-
+
Gtk::Grid m_Grid;
Gtk::ToggleButton m_ButtonA1, m_ButtonA2, m_ButtonB1, m_ButtonB2;
diff --git a/examples/book/custom/custom_widget/mywidget.cc b/examples/book/custom/custom_widget/mywidget.cc
index 280400a..39ceac4 100644
--- a/examples/book/custom/custom_widget/mywidget.cc
+++ b/examples/book/custom/custom_widget/mywidget.cc
@@ -62,7 +62,7 @@ MyWidget::MyWidget() :
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
m_refCssProvider->signal_parsing_error().connect(
sigc::mem_fun(*this, &MyWidget::on_parsing_error));
-
+
try
{
m_refCssProvider->load_from_path("custom_gtk.css");
diff --git a/examples/book/dialogs/aboutdialog/examplewindow.cc
b/examples/book/dialogs/aboutdialog/examplewindow.cc
index 1427c2c..31820c0 100644
--- a/examples/book/dialogs/aboutdialog/examplewindow.cc
+++ b/examples/book/dialogs/aboutdialog/examplewindow.cc
@@ -68,7 +68,7 @@ ExampleWindow::ExampleWindow()
ExampleWindow::~ExampleWindow()
{
-
+
}
void ExampleWindow::on_about_dialog_response(int response_id)
diff --git a/examples/book/entry/completion/examplewindow.h b/examples/book/entry/completion/examplewindow.h
index ce09e2f..2c94cf2 100644
--- a/examples/book/entry/completion/examplewindow.h
+++ b/examples/book/entry/completion/examplewindow.h
@@ -53,7 +53,7 @@ protected:
typedef std::map<int, Glib::ustring> type_actions_map;
type_actions_map m_CompletionActions;
-
+
//Child widgets:
Gtk::Box m_HBox;
Gtk::Box m_VBox;
diff --git a/examples/book/entry/icon/examplewindow.cc b/examples/book/entry/icon/examplewindow.cc
index 56631a6..0252e96 100644
--- a/examples/book/entry/icon/examplewindow.cc
+++ b/examples/book/entry/icon/examplewindow.cc
@@ -33,7 +33,7 @@ ExampleWindow::ExampleWindow()
m_Entry.set_icon_from_icon_name("edit-find");
m_Entry.signal_icon_press().connect( sigc::mem_fun(*this, &ExampleWindow::on_icon_pressed) );
-
+
m_Button_Close.signal_clicked().connect( sigc::mem_fun(*this,
&ExampleWindow::on_button_close) );
diff --git a/examples/book/entry/progress/examplewindow.cc b/examples/book/entry/progress/examplewindow.cc
index 168d836..aceb9c3 100644
--- a/examples/book/entry/progress/examplewindow.cc
+++ b/examples/book/entry/progress/examplewindow.cc
@@ -33,7 +33,7 @@ ExampleWindow::ExampleWindow()
//Change the progress fraction every 0.1 second:
Glib::signal_timeout().connect(
- sigc::mem_fun(*this, &ExampleWindow::on_timeout),
+ sigc::mem_fun(*this, &ExampleWindow::on_timeout),
100
);
diff --git a/examples/book/giomm/directory_list/main.cc b/examples/book/giomm/directory_list/main.cc
index 2bb218d..0ffc9bb 100644
--- a/examples/book/giomm/directory_list/main.cc
+++ b/examples/book/giomm/directory_list/main.cc
@@ -44,7 +44,7 @@ int main(int /* argc */, char** /* argv */)
}
catch(const Glib::Exception& ex)
{
- std::cerr << "Exception caught: " << ex.what() << std::endl;
+ std::cerr << "Exception caught: " << ex.what() << std::endl;
}
diff --git a/examples/book/giomm/read_file/main.cc b/examples/book/giomm/read_file/main.cc
index 10fbece..4fb4645 100644
--- a/examples/book/giomm/read_file/main.cc
+++ b/examples/book/giomm/read_file/main.cc
@@ -38,7 +38,7 @@ int main(int /* argc */, char** /* argv */)
gchar buffer[1000]; //TODO: This is unpleasant.
memset(buffer, 0, 1000);
const gsize bytes_read = stream->read(buffer, 1000);
-
+
if(bytes_read)
std::cout << "File contents read: " << buffer << std::endl;
else
@@ -47,7 +47,7 @@ int main(int /* argc */, char** /* argv */)
}
catch(const Glib::Exception& ex)
{
- std::cerr << "Exception caught: " << ex.what() << std::endl;
+ std::cerr << "Exception caught: " << ex.what() << std::endl;
}
diff --git a/examples/book/giomm/read_file_async/main.cc b/examples/book/giomm/read_file_async/main.cc
index 876e510..93d7e41 100644
--- a/examples/book/giomm/read_file_async/main.cc
+++ b/examples/book/giomm/read_file_async/main.cc
@@ -34,7 +34,7 @@ void on_stream_read_async_ready(Glib::RefPtr<Gio::AsyncResult>& result)
try
{
const gsize bytes_read = stream->read_finish(result);
-
+
if(bytes_read)
std::cout << "File contents read: " << buffer << std::endl;
else
@@ -43,7 +43,7 @@ void on_stream_read_async_ready(Glib::RefPtr<Gio::AsyncResult>& result)
}
catch(const Glib::Exception& ex)
{
- std::cerr << "Exception caught: " << ex.what() << std::endl;
+ std::cerr << "Exception caught: " << ex.what() << std::endl;
}
mainloop->quit();
@@ -62,7 +62,7 @@ void on_file_read_async_ready(Glib::RefPtr<Gio::AsyncResult>& result)
catch(const Glib::Exception& ex)
{
std::cerr << "Exception caught: " << ex.what() << std::endl;
- mainloop->quit();
+ mainloop->quit();
}
if(stream)
@@ -84,7 +84,7 @@ int main(int /* argc */, char** /* argv */)
}
catch(const Glib::Exception& ex)
{
- std::cerr << "Exception caught: " << ex.what() << std::endl;
+ std::cerr << "Exception caught: " << ex.what() << std::endl;
}
mainloop = Glib::MainLoop::create();
diff --git a/examples/book/giomm/volumes/main.cc b/examples/book/giomm/volumes/main.cc
index 4458abc..e403700 100644
--- a/examples/book/giomm/volumes/main.cc
+++ b/examples/book/giomm/volumes/main.cc
@@ -26,7 +26,7 @@ int main(int /* argc */, char** /* argv */)
}
catch(const Glib::Exception& ex)
{
- std::cerr << "Exception caught: " << ex.what() << std::endl;
+ std::cerr << "Exception caught: " << ex.what() << std::endl;
}
diff --git a/examples/book/giomm/write_file/main.cc b/examples/book/giomm/write_file/main.cc
index c8623ec..cd50eab 100644
--- a/examples/book/giomm/write_file/main.cc
+++ b/examples/book/giomm/write_file/main.cc
@@ -44,23 +44,23 @@ int main(int /* argc */, char** /* argv */)
Glib::ustring contents = "This is some test output";
const gsize bytes_read = stream->write(contents);
-
+
if(bytes_read)
std::cout << "File contents written: " << contents << std::endl;
else
std::cerr << "Gio::InputStream::write() wrote 0 bytes." << std::endl;
- //Close the stream to make sure that changes are written now,
+ //Close the stream to make sure that changes are written now,
//instead of just when the stream goes out of scope,
//though that's the same time in this simple example.
- //For instance, when using Gio::File::replace(), the file is only
+ //For instance, when using Gio::File::replace(), the file is only
//actually replaced during close() or when the stream is destroyed.
stream->close();
stream.reset(); //Stream can't be used after we have closed it.
}
catch(const Glib::Exception& ex)
{
- std::cerr << "Exception caught: " << ex.what() << std::endl;
+ std::cerr << "Exception caught: " << ex.what() << std::endl;
}
return 0;
diff --git a/examples/book/headerbar/examplewindow.cc b/examples/book/headerbar/examplewindow.cc
index a4e4f34..405104f 100644
--- a/examples/book/headerbar/examplewindow.cc
+++ b/examples/book/headerbar/examplewindow.cc
@@ -92,4 +92,4 @@ void ExampleWindow::on_button_clicked()
Gtk::MessageDialog dialog(*this, "Button clicked", true);
dialog.run();
}
-
+
diff --git a/examples/book/headerbar/examplewindow.h b/examples/book/headerbar/examplewindow.h
index 45106eb..39fa679 100644
--- a/examples/book/headerbar/examplewindow.h
+++ b/examples/book/headerbar/examplewindow.h
@@ -32,7 +32,7 @@ protected:
void on_subtitle_entry_activate();
void on_button_clicked();
- // Containers
+ // Containers
Gtk::Grid m_grid;
// Widgets
diff --git a/examples/book/idle/idleexample.cc b/examples/book/idle/idleexample.cc
index b7c7fbf..f08fb8c 100644
--- a/examples/book/idle/idleexample.cc
+++ b/examples/book/idle/idleexample.cc
@@ -71,7 +71,7 @@ bool IdleExample::on_timer()
// Update progressbar 1/500th each time:
m_ProgressBar_c.set_fraction(value + 0.002);
-
+
return value < 0.99; // return false when done
}
diff --git a/examples/book/infobar/examplewindow.h b/examples/book/infobar/examplewindow.h
index ca4e680..20ddf0f 100644
--- a/examples/book/infobar/examplewindow.h
+++ b/examples/book/infobar/examplewindow.h
@@ -37,7 +37,7 @@ protected:
Gtk::ScrolledWindow m_ScrolledWindow;
Gtk::TextView m_TextView;
-
+
Glib::RefPtr<Gtk::TextBuffer> m_refTextBuffer;
Gtk::InfoBar m_InfoBar;
diff --git a/examples/book/keyboard_events/propagation/examplewindow.cc
b/examples/book/keyboard_events/propagation/examplewindow.cc
index 250489c..0980799 100644
--- a/examples/book/keyboard_events/propagation/examplewindow.cc
+++ b/examples/book/keyboard_events/propagation/examplewindow.cc
@@ -22,7 +22,7 @@ ExampleWindow::ExampleWindow()
add(m_container);
set_title("Event Propagation");
set_border_width(10);
-
+
m_label.set_label("A label");
m_checkbutton_can_propagate.set_label("Can Propagate");
m_checkbutton_can_propagate.set_active();
diff --git a/examples/book/keyboard_events/simple/examplewindow.cc
b/examples/book/keyboard_events/simple/examplewindow.cc
index 5ac1f1b..6e0a23e 100644
--- a/examples/book/keyboard_events/simple/examplewindow.cc
+++ b/examples/book/keyboard_events/simple/examplewindow.cc
@@ -21,7 +21,7 @@ ExampleWindow::ExampleWindow()
set_title("Keyboard Events");
set_border_width(10);
add(m_container);
-
+
// Radio buttons:
m_first.set_label("First");
m_second.set_label("Second");
diff --git a/examples/book/menus/main_menu/examplewindow.cc b/examples/book/menus/main_menu/examplewindow.cc
index 9efef09..45ebc74 100644
--- a/examples/book/menus/main_menu/examplewindow.cc
+++ b/examples/book/menus/main_menu/examplewindow.cc
@@ -32,7 +32,7 @@ ExampleWindow::ExampleWindow()
// We can use add_action() because Gtk::ApplicationWindow derives from Gio::ActionMap.
// This Action Map uses a "win." prefix for the actions.
// Therefore, for instance, "win.copy", is used in ExampleApplication::on_startup()
- // to layout the menu.
+ // to layout the menu.
//Edit menu:
add_action("copy", sigc::mem_fun(*this, &ExampleWindow::on_menu_others));
diff --git a/examples/book/menus/popup/examplewindow.cc b/examples/book/menus/popup/examplewindow.cc
index cbf0ee1..d19900f 100644
--- a/examples/book/menus/popup/examplewindow.cc
+++ b/examples/book/menus/popup/examplewindow.cc
@@ -49,7 +49,7 @@ ExampleWindow::ExampleWindow()
refActionGroup->add_action("edit",
sigc::mem_fun(*this, &ExampleWindow::on_menu_file_popup_generic));
- refActionGroup->add_action("process", //TODO: How to specify "<control>P" as an accelerator.
+ refActionGroup->add_action("process", //TODO: How to specify "<control>P" as an accelerator.
sigc::mem_fun(*this, &ExampleWindow::on_menu_file_popup_generic));
refActionGroup->add_action("remove",
diff --git a/examples/book/placessidebar/examplewindow.h b/examples/book/placessidebar/examplewindow.h
index a269f1f..88c1b22 100644
--- a/examples/book/placessidebar/examplewindow.h
+++ b/examples/book/placessidebar/examplewindow.h
@@ -36,7 +36,7 @@ protected:
int on_placessidebar_drag_action_requested(const Glib::RefPtr<Gdk::DragContext>& context, const
Glib::RefPtr<Gio::File>& dest_file, const std::vector< Glib::RefPtr<Gio::File> >& source_file_list);
void on_menu_properties_activate();
- // Containers
+ // Containers
Gtk::Box m_hbox;
Gtk::Grid m_controls;
Gtk::Frame m_controls_frame;
diff --git a/examples/book/popover/examplewindow.h b/examples/book/popover/examplewindow.h
index e9b72d8..dbdb187 100644
--- a/examples/book/popover/examplewindow.h
+++ b/examples/book/popover/examplewindow.h
@@ -31,7 +31,7 @@ protected:
void on_combo_changed();
void on_day_selected();
- // Containers
+ // Containers
Gtk::Grid m_grid;
Gtk::Grid m_toggle_form_grid;
Gtk::Box m_format_buttons_box;
diff --git a/examples/book/printing/advanced/examplewindow.cc
b/examples/book/printing/advanced/examplewindow.cc
index 7be0dac..f6a1221 100644
--- a/examples/book/printing/advanced/examplewindow.cc
+++ b/examples/book/printing/advanced/examplewindow.cc
@@ -99,12 +99,12 @@ void ExampleWindow::build_main_menu()
insert_action_group("example", refActionGroup);
m_refBuilder = Gtk::Builder::create();
-
+
//TODO: add_accel_group(m_refBuilder->get_accel_group());
//Layout the actions in a menubar and toolbar:
-
- Glib::ustring ui_info =
+
+ Glib::ustring ui_info =
"<interface>"
" <menu id='menu-example'>"
" <submenu>"
@@ -136,7 +136,7 @@ void ExampleWindow::build_main_menu()
"</interface>";
try
- {
+ {
m_refBuilder->add_from_string(ui_info);
}
catch(const Glib::Error& ex)
diff --git a/examples/book/printing/advanced/examplewindow.h b/examples/book/printing/advanced/examplewindow.h
index 31d3a28..06b40fa 100644
--- a/examples/book/printing/advanced/examplewindow.h
+++ b/examples/book/printing/advanced/examplewindow.h
@@ -39,7 +39,7 @@ protected:
void on_printoperation_status_changed(Glib::RefPtr<PrintFormOperation>* operation);
void on_printoperation_done(Gtk::PrintOperationResult result, Glib::RefPtr<PrintFormOperation>* operation);
-
+
//Action signal handlers:
void on_menu_file_new();
void on_menu_file_page_setup();
@@ -64,7 +64,7 @@ protected:
Gtk::Label m_CommentsLabel;
Gtk::ScrolledWindow m_ScrolledWindow;
Gtk::TextView m_TextView;
-
+
Glib::RefPtr<Gtk::TextBuffer> m_refTextBuffer;
unsigned m_ContextId;
diff --git a/examples/book/printing/simple/examplewindow.cc b/examples/book/printing/simple/examplewindow.cc
index 42496da..b0bb1e2 100644
--- a/examples/book/printing/simple/examplewindow.cc
+++ b/examples/book/printing/simple/examplewindow.cc
@@ -100,12 +100,12 @@ void ExampleWindow::build_main_menu()
insert_action_group("example", refActionGroup);
m_refBuilder = Gtk::Builder::create();
-
+
//TODO: add_accel_group(m_refBuilder->get_accel_group());
//Layout the actions in a menubar and toolbar:
-
- Glib::ustring ui_info =
+
+ Glib::ustring ui_info =
"<interface>"
" <menu id='menu-example'>"
" <submenu>"
@@ -137,7 +137,7 @@ void ExampleWindow::build_main_menu()
"</interface>";
try
- {
+ {
m_refBuilder->add_from_string(ui_info);
}
catch(const Glib::Error& ex)
diff --git a/examples/book/printing/simple/examplewindow.h b/examples/book/printing/simple/examplewindow.h
index 1297fbf..a81a9d5 100644
--- a/examples/book/printing/simple/examplewindow.h
+++ b/examples/book/printing/simple/examplewindow.h
@@ -65,7 +65,7 @@ protected:
Gtk::Label m_CommentsLabel;
Gtk::ScrolledWindow m_ScrolledWindow;
Gtk::TextView m_TextView;
-
+
Glib::RefPtr<Gtk::TextBuffer> m_refTextBuffer;
unsigned m_ContextId;
diff --git a/examples/book/revealer/examplewindow.h b/examples/book/revealer/examplewindow.h
index 7356044..9a811bc 100644
--- a/examples/book/revealer/examplewindow.h
+++ b/examples/book/revealer/examplewindow.h
@@ -29,7 +29,7 @@ protected:
// Slots
void on_switch_active_changed();
- // Containers
+ // Containers
Gtk::Box m_vbox;
Gtk::Grid m_controls;
diff --git a/examples/book/searchbar/examplewindow.h b/examples/book/searchbar/examplewindow.h
index a439f39..a0932bc 100644
--- a/examples/book/searchbar/examplewindow.h
+++ b/examples/book/searchbar/examplewindow.h
@@ -14,7 +14,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#ifndef GTKMM_EXAMPLEWINDOW_H
+#ifndef GTKMM_EXAMPLEWINDOW_H
#define GTKMM_EXAMPLEWINDOW_H
#include <gtkmm.h>
@@ -32,7 +32,7 @@ private:
void on_show_close_button_changed();
void on_search_bar_reveal_changed();
- // Containers
+ // Containers
Gtk::Box m_vbox;
Gtk::Box m_search_box;
Gtk::Box m_up_down_box;
diff --git a/examples/book/textview/examplewindow.h b/examples/book/textview/examplewindow.h
index 9eafe00..c72fb36 100644
--- a/examples/book/textview/examplewindow.h
+++ b/examples/book/textview/examplewindow.h
@@ -30,7 +30,7 @@ public:
protected:
void fill_buffers();
-
+
//Signal handlers:
void on_button_quit();
void on_button_buffer1();
@@ -41,7 +41,7 @@ protected:
Gtk::ScrolledWindow m_ScrolledWindow;
Gtk::TextView m_TextView;
-
+
Glib::RefPtr<Gtk::TextBuffer> m_refTextBuffer1, m_refTextBuffer2;
Gtk::ButtonBox m_ButtonBox;
diff --git a/examples/book/toolpalette/canvas.h b/examples/book/toolpalette/canvas.h
index 29068ca..84073cc 100644
--- a/examples/book/toolpalette/canvas.h
+++ b/examples/book/toolpalette/canvas.h
@@ -21,7 +21,7 @@
#include <gtkmm.h>
-// This little canvas class is only here
+// This little canvas class is only here
// because gtkmm does not have a canvas class yet.
// Applications should probably use GooCanvas::Canvas (goocanvasmm) instead.
class Canvas : public Gtk::DrawingArea
@@ -59,7 +59,7 @@ private:
bool preview);
bool on_draw(const Cairo::RefPtr<Cairo::Context>& cr) override;
- void on_drag_data_received(const Glib::RefPtr<Gdk::DragContext>& context,
+ void on_drag_data_received(const Glib::RefPtr<Gdk::DragContext>& context,
int x, int y, const Gtk::SelectionData& selection_data, guint info, guint time) override;
bool on_drag_motion(const Glib::RefPtr<Gdk::DragContext>& context, int x, int y, guint time) override;
bool on_drag_drop(const Glib::RefPtr<Gdk::DragContext>& context, int x, int y, guint time) override;
@@ -67,7 +67,7 @@ private:
bool m_drag_data_requested_for_drop; //So we know what to do in on_drag_data_received().
CanvasItem* m_drop_item;
-
+
typedef std::vector<CanvasItem*> type_vec_items;
type_vec_items m_canvas_items;
};
diff --git a/examples/book/toolpalette/examplewindow.cc b/examples/book/toolpalette/examplewindow.cc
index 016dca0..a35bfdf 100644
--- a/examples/book/toolpalette/examplewindow.cc
+++ b/examples/book/toolpalette/examplewindow.cc
@@ -83,7 +83,7 @@ void ExampleWindow::load_icon_items()
void ExampleWindow::load_toggle_items()
{
- auto group =
+ auto group =
Gtk::manage(new Gtk::ToolItemGroup("Radio Item"));
m_ToolPalette.add(*group);
@@ -95,7 +95,7 @@ void ExampleWindow::load_toggle_items()
auto button = Gtk::manage(new Gtk::RadioToolButton());
button->set_group(radio_group);
button->set_label(label);
-
+
group->insert(*button);
}
}
@@ -267,7 +267,7 @@ void ExampleWindow::on_combo_orientation_changed()
Gtk::TreeModel::Row row = *iter;
const Gtk::Orientation value = row[m_ColumnsOrientation.m_col_value];
-
+
m_ToolPalette.set_orientation(value);
if(value == Gtk::ORIENTATION_HORIZONTAL)
@@ -284,7 +284,7 @@ void ExampleWindow::on_combo_style_changed()
Gtk::TreeModel::Row row = *iter;
const int value = row[m_ColumnsStyle.m_col_value];
-
+
if(value == -1)
m_ToolPalette.unset_style();
else
diff --git a/examples/book/treeview/combo_renderer/examplewindow.cc
b/examples/book/treeview/combo_renderer/examplewindow.cc
index cc175d4..7b26897 100644
--- a/examples/book/treeview/combo_renderer/examplewindow.cc
+++ b/examples/book/treeview/combo_renderer/examplewindow.cc
@@ -95,7 +95,7 @@ ExampleWindow::ExampleWindow()
//Create a Combo CellRenderer, instead of the default Text CellRenderer:
auto pColumn = Gtk::manage(
- new Gtk::TreeView::Column("Item Chosen") );
+ new Gtk::TreeView::Column("Item Chosen") );
auto pRenderer = Gtk::manage(
new Gtk::CellRendererCombo);
pColumn->pack_start(*pRenderer);
@@ -115,7 +115,7 @@ ExampleWindow::ExampleWindow()
// This must be a text column, in m_refTreeModelCombo1, or
// m_refTreeModelCombo:
- pRenderer->property_text_column() = 0;
+ pRenderer->property_text_column() = 0;
//Allow the user to edit the column:
//This is done automatically when we use View::append_column(model_column),
diff --git a/examples/book/treeview/combo_renderer/examplewindow.h
b/examples/book/treeview/combo_renderer/examplewindow.h
index 50bce77..66d6954 100644
--- a/examples/book/treeview/combo_renderer/examplewindow.h
+++ b/examples/book/treeview/combo_renderer/examplewindow.h
@@ -32,7 +32,7 @@ protected:
void on_button_quit();
void on_cellrenderer_choice_edited(const Glib::ustring& path_string, const Glib::ustring& new_text);
-
+
//Tree model columns for the TreeView:
class ModelColumns : public Gtk::TreeModel::ColumnRecord
{
@@ -48,7 +48,7 @@ protected:
};
ModelColumns m_Columns;
-
+
//Tree model columns for the Combo CellRenderer in the TreeView column:
class ModelColumnsCombo : public Gtk::TreeModel::ColumnRecord
{
@@ -60,7 +60,7 @@ protected:
Gtk::TreeModelColumn<Glib::ustring> m_col_choice; //The values from which the user may choose.
Gtk::TreeModelColumn<Glib::ustring> m_col_description; //Extra information to help the user to choose.
};
-
+
ModelColumnsCombo m_ColumnsCombo;
//Child widgets:
@@ -71,7 +71,7 @@ protected:
Glib::RefPtr<Gtk::ListStore> m_refTreeModel;
Glib::RefPtr<Gtk::ListStore> m_refTreeModelCombo1, m_refTreeModelCombo2;
-
+
Gtk::ButtonBox m_ButtonBox;
Gtk::Button m_Button_Quit;
};
diff --git a/examples/book/treeview/drag_and_drop/treemodel_dnd.h
b/examples/book/treeview/drag_and_drop/treemodel_dnd.h
index 3e98c50..98a308d 100644
--- a/examples/book/treeview/drag_and_drop/treemodel_dnd.h
+++ b/examples/book/treeview/drag_and_drop/treemodel_dnd.h
@@ -50,7 +50,7 @@ protected:
//Overridden virtual functions:
bool row_draggable_vfunc(const Gtk::TreeModel::Path& path) const override;
bool row_drop_possible_vfunc(const Gtk::TreeModel::Path& dest, const Gtk::SelectionData& selection_data)
const override;
-
+
};
#endif //GTKMM_EXAMPLE_TREEMODEL_DND_H
diff --git a/examples/book/treeview/editable_cells/examplewindow.cc
b/examples/book/treeview/editable_cells/examplewindow.cc
index d425fc5..a6b018d 100644
--- a/examples/book/treeview/editable_cells/examplewindow.cc
+++ b/examples/book/treeview/editable_cells/examplewindow.cc
@@ -134,7 +134,7 @@ void ExampleWindow::treeviewcolumn_validated_on_cell_data(
//In this case, it would be easier to use append_column_editable() or
//append_column_numeric_editable()
char buffer[32];
- sprintf(buffer, "%d", model_value);
+ sprintf(buffer, "%d", model_value);
Glib::ustring view_text = buffer;
m_cellrenderer_validated.property_text() = view_text;
@@ -144,11 +144,11 @@ void ExampleWindow::treeviewcolumn_validated_on_cell_data(
void ExampleWindow::cellrenderer_validated_on_editing_started(
Gtk::CellEditable* cell_editable, const Glib::ustring& /* path */)
{
- //Start editing with previously-entered (but invalid) text,
- //if we are allowing the user to correct some invalid data.
+ //Start editing with previously-entered (but invalid) text,
+ //if we are allowing the user to correct some invalid data.
if(m_validate_retry)
{
- //This is the CellEditable inside the CellRenderer.
+ //This is the CellEditable inside the CellRenderer.
auto celleditable_validated = cell_editable;
//It's usually an Entry, at least for a CellRendererText:
diff --git a/examples/book/treeview/filter_modify/examplewindow.cc
b/examples/book/treeview/filter_modify/examplewindow.cc
index df23285..7a43463 100644
--- a/examples/book/treeview/filter_modify/examplewindow.cc
+++ b/examples/book/treeview/filter_modify/examplewindow.cc
@@ -120,7 +120,7 @@ void ExampleWindow::on_filter_modify(const Gtk::TreeModel::iterator& iter,
valString.init( Glib::Value< Glib::ustring >::value_type() );
valString.set(name);
- value = valString;
+ value = valString;
break;
}
case(1):
diff --git a/examples/book/treeview/filter_modify/examplewindow.h
b/examples/book/treeview/filter_modify/examplewindow.h
index 843df9e..2620cd3 100644
--- a/examples/book/treeview/filter_modify/examplewindow.h
+++ b/examples/book/treeview/filter_modify/examplewindow.h
@@ -44,7 +44,7 @@ protected:
Gtk::TreeModelColumn<unsigned int> m_col_id;
Gtk::TreeModelColumn<Glib::ustring> m_col_name;
- Gtk::TreeModelColumn<bool> m_col_something;
+ Gtk::TreeModelColumn<bool> m_col_something;
};
ModelColumns m_Columns;
diff --git a/examples/book/treeview/popup/examplewindow.h b/examples/book/treeview/popup/examplewindow.h
index 15c4d2a..b0fdebb 100644
--- a/examples/book/treeview/popup/examplewindow.h
+++ b/examples/book/treeview/popup/examplewindow.h
@@ -32,7 +32,7 @@ protected:
//Signal handlers:
void on_button_quit();
-
+
//Child widgets:
Gtk::Box m_VBox;
diff --git a/examples/book/treeview/popup/treeview_withpopup.cc
b/examples/book/treeview/popup/treeview_withpopup.cc
index 4d45292..fc74249 100644
--- a/examples/book/treeview/popup/treeview_withpopup.cc
+++ b/examples/book/treeview/popup/treeview_withpopup.cc
@@ -47,12 +47,12 @@ TreeView_WithPopup::TreeView_WithPopup()
item->signal_activate().connect(
sigc::mem_fun(*this, &TreeView_WithPopup::on_menu_file_popup_generic) );
m_Menu_Popup.append(*item);
-
+
item = Gtk::manage(new Gtk::MenuItem("_Process", true));
item->signal_activate().connect(
sigc::mem_fun(*this, &TreeView_WithPopup::on_menu_file_popup_generic) );
m_Menu_Popup.append(*item);
-
+
item = Gtk::manage(new Gtk::MenuItem("_Remove", true));
item->signal_activate().connect(
sigc::mem_fun(*this, &TreeView_WithPopup::on_menu_file_popup_generic) );
diff --git a/examples/book/treeview/popup/treeview_withpopup.h
b/examples/book/treeview/popup/treeview_withpopup.h
index cd439d4..5da8c9e 100644
--- a/examples/book/treeview/popup/treeview_withpopup.h
+++ b/examples/book/treeview/popup/treeview_withpopup.h
@@ -35,7 +35,7 @@ protected:
//Signal handler for popup menu items:
void on_menu_file_popup_generic();
-
+
//Tree model columns:
class ModelColumns : public Gtk::TreeModel::ColumnRecord
{
@@ -47,7 +47,7 @@ protected:
Gtk::TreeModelColumn<unsigned int> m_col_id;
Gtk::TreeModelColumn<Glib::ustring> m_col_name;
};
-
+
ModelColumns m_Columns;
//The Tree model:
diff --git a/examples/book/treeview/tree/examplewindow.h b/examples/book/treeview/tree/examplewindow.h
index 54770aa..24db4ba 100644
--- a/examples/book/treeview/tree/examplewindow.h
+++ b/examples/book/treeview/tree/examplewindow.h
@@ -31,7 +31,7 @@ protected:
//Signal handlers:
void on_button_quit();
void on_treeview_row_activated(const Gtk::TreeModel::Path& path, Gtk::TreeViewColumn* column);
-
+
//Tree model columns:
class ModelColumns : public Gtk::TreeModel::ColumnRecord
{
diff --git a/examples/others/arrow/arrow.cc b/examples/others/arrow/arrow.cc
index d43f09d..28e95fd 100644
--- a/examples/others/arrow/arrow.cc
+++ b/examples/others/arrow/arrow.cc
@@ -41,7 +41,7 @@ ArrowButton::ArrowButton(Gtk::ArrowType arrow_type)
}
set_image_from_icon_name(icon_name, Gtk::ICON_SIZE_BUTTON, true);
}
-
+
ArrowButton::~ArrowButton()
{}
@@ -62,7 +62,7 @@ AppWindow::AppWindow()
/* Sets the border width of the window. */
set_border_width (10);
-
+
/* Create a grid to hold the arrows/buttons */
grid = Gtk::manage (new Gtk::Grid ());
grid->set_row_homogeneous(true);
@@ -84,7 +84,7 @@ AppWindow::AppWindow()
grid->set_row_spacing(5);
grid->set_column_spacing(5);
-
+
add (*grid);
show_all ();
}
diff --git a/examples/others/calendar/calendar.cc b/examples/others/calendar/calendar.cc
index a8cfa38..b93425b 100644
--- a/examples/others/calendar/calendar.cc
+++ b/examples/others/calendar/calendar.cc
@@ -42,7 +42,7 @@ protected:
void on_font_button_font_set();
void on_button_close();
void on_parsing_error(const Glib::RefPtr<const Gtk::CssSection>& section, const Glib::Error& error);
-
+
Gtk::CheckButton* flag_checkboxes_[5];
bool settings_[5];
@@ -185,7 +185,7 @@ CalendarExample::CalendarExample()
hbbox->pack_start(*frame, Gtk::PACK_EXPAND_WIDGET, DEF_PAD);
calendar_ = new Gtk::Calendar();
set_flags();
- calendar_->mark_day(19);
+ calendar_->mark_day(19);
frame->add(*calendar_);
calendar_->signal_month_changed().connect(sigc::mem_fun(*this, &CalendarExample::month_changed));
calendar_->signal_day_selected().connect(sigc::mem_fun(*this, &CalendarExample::day_selected));
@@ -196,8 +196,8 @@ CalendarExample::CalendarExample()
auto vbox2 = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_VERTICAL, DEF_PAD));
hbox->pack_start(*vbox2, Gtk::PACK_SHRINK, DEF_PAD);
-
- /* Build the Right frame with the flags in */
+
+ /* Build the Right frame with the flags in */
auto frameFlags = Gtk::manage(new Gtk::Frame("Flags"));
vbox2->pack_start(*frameFlags, Gtk::PACK_EXPAND_WIDGET, DEF_PAD);
@@ -223,7 +223,7 @@ CalendarExample::CalendarExample()
flag_checkboxes_[i] = toggle;
}
- /* Build the right font-button */
+ /* Build the right font-button */
font_button_ = Gtk::manage(new Gtk::FontButton());
font_button_->signal_font_set().connect(sigc::mem_fun(*this, &CalendarExample::on_font_button_font_set));
vbox2->pack_start(*font_button_, Gtk::PACK_SHRINK);
@@ -246,7 +246,7 @@ CalendarExample::CalendarExample()
vbox->pack_start(*frame, Gtk::PACK_EXPAND_WIDGET, DEF_PAD);
vbox2 = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_VERTICAL, DEF_PAD_SMALL));
frame->add(*vbox2);
-
+
hbox = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL, 5));
vbox2->pack_start (*hbox, Gtk::PACK_SHRINK);
auto label = Gtk::manage(new Gtk::Label("Day selected:"));
@@ -263,11 +263,11 @@ CalendarExample::CalendarExample()
hbox = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL, 5));
vbox2->pack_start (*hbox, Gtk::PACK_SHRINK);
- label = Gtk::manage(new Gtk::Label("Month change:"));
+ label = Gtk::manage(new Gtk::Label("Month change:"));
hbox->pack_start (*label, Gtk::PACK_SHRINK);
label_month_ = new Gtk::Label("");
hbox->pack_start(*label_month_, Gtk::PACK_SHRINK);
-
+
auto bbox = Gtk::manage(new Gtk::ButtonBox());
vbox->pack_start(*bbox, Gtk::PACK_SHRINK);
bbox->set_layout(Gtk::BUTTONBOX_END);
@@ -287,8 +287,8 @@ Glib::Date CalendarExample::get_date() const
using Glib::Date;
Date date;
calendar_->get_date(date);
-
- return date;
+
+ return date;
}
int main(int argc, char** argv)
diff --git a/examples/others/cellrenderercustom/cellrendererlist.cc
b/examples/others/cellrenderercustom/cellrendererlist.cc
index 122f36c..7f70014 100644
--- a/examples/others/cellrenderercustom/cellrendererlist.cc
+++ b/examples/others/cellrenderercustom/cellrendererlist.cc
@@ -15,7 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
+
#include <gtkmm.h>
#include "cellrendererlist.h"
#include "popupentry.h"
diff --git a/examples/others/cellrenderercustom/cellrendererlist.h
b/examples/others/cellrenderercustom/cellrendererlist.h
index e49834f..c019bff 100644
--- a/examples/others/cellrenderercustom/cellrendererlist.h
+++ b/examples/others/cellrenderercustom/cellrendererlist.h
@@ -15,7 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
+
#include "cellrendererpopup.h"
#include <gtkmm/liststore.h>
diff --git a/examples/others/cellrenderercustom/popupentry.h b/examples/others/cellrenderercustom/popupentry.h
index 0f36952..8d2897a 100644
--- a/examples/others/cellrenderercustom/popupentry.h
+++ b/examples/others/cellrenderercustom/popupentry.h
@@ -15,7 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
+
#include <gtkmm/button.h>
#include <gtkmm/celleditable.h>
#include <gtkmm/editable.h>
diff --git a/examples/others/cellrenderercustom/testpopup.cc b/examples/others/cellrenderercustom/testpopup.cc
index 94946b9..4d8fab5 100644
--- a/examples/others/cellrenderercustom/testpopup.cc
+++ b/examples/others/cellrenderercustom/testpopup.cc
@@ -15,7 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
+
#include <gtkmm.h>
#include "cellrendererlist.h"
#include <sstream>
diff --git a/examples/others/exception/exceptiontest.cc b/examples/others/exception/exceptiontest.cc
index 24ceaf1..d350467 100644
--- a/examples/others/exception/exceptiontest.cc
+++ b/examples/others/exception/exceptiontest.cc
@@ -61,7 +61,7 @@ void handler1()
{
std::cout << "exception handler 1\n";
- try
+ try
{
throw; // rethrow exception
}
@@ -79,7 +79,7 @@ void handler2()
try
{
throw; // rethrow exception
- }
+ }
catch(MyException2&)
{
std::cout << "caught MyException2\n";
diff --git a/examples/others/idle/idle.cc b/examples/others/idle/idle.cc
index 567d767..b19e8bd 100644
--- a/examples/others/idle/idle.cc
+++ b/examples/others/idle/idle.cc
@@ -22,7 +22,7 @@ class IdleExample : public Gtk::Window
public:
IdleExample();
-
+
// a timer-function
bool timer_callback();
// a idle-function
diff --git a/examples/others/statusbar/statusbar.cc b/examples/others/statusbar/statusbar.cc
index f6315cd..7a8b04e 100644
--- a/examples/others/statusbar/statusbar.cc
+++ b/examples/others/statusbar/statusbar.cc
@@ -12,7 +12,7 @@ public:
StatusBarExample();
protected:
-
+
void push_item(unsigned int context_id);
void pop_item(unsigned int context_id) { m_status_bar.pop(context_id); }
@@ -34,17 +34,17 @@ StatusBarExample::StatusBarExample()
set_size_request(200, 100);
set_title("gtkmm Statusbar Example");
-
+
add(m_vbox);
-
+
m_vbox.pack_start(m_status_bar);
m_bPush.signal_clicked().connect( sigc::bind(sigc::mem_fun(*this, &StatusBarExample::push_item),
m_context_id) );
m_vbox.pack_start(m_bPush);
-
+
m_bPop.signal_clicked().connect( sigc::bind(sigc::mem_fun(*this, &StatusBarExample::pop_item),
m_context_id) );
m_vbox.pack_start(m_bPop);
-
+
show_all();
}
diff --git a/examples/others/tictactoe/tictactoe.cc b/examples/others/tictactoe/tictactoe.cc
index 9da6136..1c021f4 100644
--- a/examples/others/tictactoe/tictactoe.cc
+++ b/examples/others/tictactoe/tictactoe.cc
@@ -39,7 +39,7 @@ TicTacToe::TicTacToe()
buttons[i][j] = button = Gtk::manage( new Gtk::ToggleButton());
grid->attach(*button, i, j, 1, 1);
button->signal_toggled().connect( sigc::bind(
- sigc::mem_fun(*this, &TicTacToe::toggle),
+ sigc::mem_fun(*this, &TicTacToe::toggle),
button));
button->set_size_request(20, 20);
}
@@ -88,7 +88,7 @@ TicTacToe::toggle(Gtk::ToggleButton *button)
success &= buttons[rwins[k][i]][cwins[k][i]]->get_active();
found |= buttons[rwins[k][i]][cwins[k][i]] == button;
}
-
+
if(success && found)
{
tictactoe();
diff --git a/examples/others/treemodelcustom/exampletreemodel.cc
b/examples/others/treemodelcustom/exampletreemodel.cc
index 1f8e42c..6ab9273 100644
--- a/examples/others/treemodelcustom/exampletreemodel.cc
+++ b/examples/others/treemodelcustom/exampletreemodel.cc
@@ -41,7 +41,7 @@ ExampleTreeModel::GlueList::~GlueList()
delete pItem;
}
}
-
+
ExampleTreeModel::ExampleTreeModel(unsigned int columns_count)
: Glib::ObjectBase( typeid(ExampleTreeModel) ), //register a custom GType.
@@ -62,7 +62,7 @@ ExampleTreeModel::ExampleTreeModel(unsigned int columns_count)
// Set the data in the row cells:
// It is more likely that you would be reusing existing data from some other data structure,
// instead of generating the data here.
-
+
char buffer[20]; //You could use a std::stringstream instead.
g_snprintf(buffer, sizeof(buffer), "%d, %d", row_number, column_number);
@@ -123,7 +123,7 @@ void ExampleTreeModel::get_value_vfunc(const TreeModel::iterator& iter, int colu
//Or, instead of asking the compiler for the TreeModelColumn's ValueType:
//Glib::Value< Glib::ustring > value_specific;
//value_specific.init( Glib::Value< Glib::ustring >::value_type() ); //TODO: Is there any way to avoid
this step?
-
+
typeListOfRows::const_iterator dataRowIter = get_data_row_iter_from_tree_row_iter(iter);
if(dataRowIter != m_rows.end())
{
@@ -140,27 +140,27 @@ void ExampleTreeModel::get_value_vfunc(const TreeModel::iterator& iter, int colu
}
bool ExampleTreeModel::iter_next_vfunc(const iterator& iter, iterator& iter_next) const
-{
+{
if( check_treeiter_validity(iter) )
{
//initialize the iterator:
iter_next = iterator();
iter_next.set_stamp(m_stamp);
-
+
//Get the current row:
const auto pItem = (const GlueItem*)iter.gobj()->user_data;
typeListOfRows::size_type row_index = pItem->get_row_number();
-
+
//Make the iter_next GtkTreeIter represent the next row:
row_index++;
if( row_index < m_rows.size() )
- {
+ {
//Put the index of the next row in a GlueItem in iter_next:
auto pItemNew = new GlueItem(row_index);
iter_next.gobj()->user_data = (void*)pItemNew;
remember_glue_item(pItemNew);
-
+
return true; //success
}
}
@@ -184,7 +184,7 @@ int ExampleTreeModel::iter_n_children_vfunc(const iterator& iter) const
{
if(!check_treeiter_validity(iter))
return 0;
-
+
return 0; //There are no children
}
@@ -201,7 +201,7 @@ bool ExampleTreeModel::iter_nth_child_vfunc(const iterator& parent, int /* n */,
return false;
}
- iter = iterator(); //Set is as invalid, as the TreeModel documentation says that it should be.
+ iter = iterator(); //Set is as invalid, as the TreeModel documentation says that it should be.
return false; //There are no children.
}
@@ -222,13 +222,13 @@ bool ExampleTreeModel::iter_nth_root_child_vfunc(int n, iterator& iter) const
iter.gobj()->user_data = pItem;
remember_glue_item(pItem);
-
+
return true;
}
-
- return false; //There are no children.
+
+ return false; //There are no children.
}
-
+
bool ExampleTreeModel::iter_parent_vfunc(const iterator& child, iterator& iter) const
{
@@ -260,14 +260,14 @@ bool ExampleTreeModel::get_iter_vfunc(const Path& path, iterator& iter) const
if(sz > 1) //There are no children.
{
iter = iterator(); //Set is as invalid, as the TreeModel documentation says that it should be.
- return false;
+ return false;
}
//This is a new GtkTreeIter, so it needs the current stamp value.
//See the comment in the constructor.
iter = iterator(); //clear the input parameter.
iter.set_stamp(m_stamp);
-
+
//Store the row_index in the GtkTreeIter:
//See also iter_next_vfunc()
//TODO: Store a pointer to some more complex data type such as a typeListOfRows::iterator.
@@ -278,11 +278,11 @@ bool ExampleTreeModel::get_iter_vfunc(const Path& path, iterator& iter) const
//Store the GlueItem in the GtkTreeIter.
//This will be deleted in the GlueList destructor,
//which will be called when the old GtkTreeIters are marked as invalid,
- //when the stamp value changes.
+ //when the stamp value changes.
iter.gobj()->user_data = (void*)pItem;
remember_glue_item(pItem);
-
+
return true;
}
@@ -307,7 +307,7 @@ ExampleTreeModel::typeListOfRows::const_iterator ExampleTreeModel::get_data_row_
{
//Don't call this on an invalid iter.
const auto pItem = (const GlueItem*)iter.gobj()->user_data;
-
+
typeListOfRows::size_type row_index = pItem->get_row_number();
if( row_index > m_rows.size() )
return m_rows.end();
@@ -330,7 +330,7 @@ void ExampleTreeModel::remember_glue_item(GlueItem* item) const
{
m_pGlueList = new GlueList();
}
-
+
m_pGlueList->m_list.push_back(item);
}
diff --git a/examples/others/treemodelcustom/exampletreemodel.h
b/examples/others/treemodelcustom/exampletreemodel.h
index 2971565..92c43c5 100644
--- a/examples/others/treemodelcustom/exampletreemodel.h
+++ b/examples/others/treemodelcustom/exampletreemodel.h
@@ -29,7 +29,7 @@ protected:
//Create a TreeModel with @a columns_count number of columns, each of type Glib::ustring.
ExampleTreeModel(unsigned int columns_count = 10);
virtual ~ExampleTreeModel();
-
+
public:
static Glib::RefPtr<ExampleTreeModel> create();
@@ -42,7 +42,7 @@ protected:
int get_n_columns_vfunc() const override;
GType get_column_type_vfunc(int index) const override;
void get_value_vfunc(const TreeModel::iterator& iter, int column, Glib::ValueBase& value) const override;
-
+
bool iter_next_vfunc(const iterator& iter, iterator& iter_next) const override;
//TODO: Make sure that we make all of these const when we have made them all const in the TreeModel:
@@ -72,7 +72,7 @@ private:
public:
GlueItem(int row_number);
int get_row_number() const;
-
+
protected:
int m_row_number;
};
@@ -80,8 +80,8 @@ private:
//Allow the GlueList inner class to access the declaration of the GlueItem inner class.
//SUN's Forte compiler complains about this.
class GlueList;
- friend class GlueList;
-
+ friend class GlueList;
+
class GlueList
{
public:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]