summaryrefslogtreecommitdiff
path: root/gio/src/simpleaction.ccg
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2016-02-26 22:46:55 +0100
committerMurray Cumming <murrayc@murrayc.com>2016-02-26 22:46:55 +0100
commite1eb5c1d651a8906074feda2d2a0ad103e838949 (patch)
treee387d5498d9c2dd53170126b3497b28c25c5d47a /gio/src/simpleaction.ccg
parentdc111022570a417f396b81cdaef1a5db58022017 (diff)
downloadglibmm-e1eb5c1d651a8906074feda2d2a0ad103e838949.tar.gz
Run clang-format on the .ccg files.
This seems to work.
Diffstat (limited to 'gio/src/simpleaction.ccg')
-rw-r--r--gio/src/simpleaction.ccg34
1 files changed, 19 insertions, 15 deletions
diff --git a/gio/src/simpleaction.ccg b/gio/src/simpleaction.ccg
index 2b91ecf1..42b236e7 100644
--- a/gio/src/simpleaction.ccg
+++ b/gio/src/simpleaction.ccg
@@ -22,32 +22,36 @@
namespace Gio
{
-SimpleAction::SimpleAction(const Glib::ustring& name)
-:
- _CONSTRUCT("name", name.c_str())
-{}
+SimpleAction::SimpleAction(const Glib::ustring& name) : _CONSTRUCT("name", name.c_str())
+{
+}
SimpleAction::SimpleAction(const Glib::ustring& name, const Glib::VariantBase& state)
-:
- _CONSTRUCT("name", name.c_str(), "state", const_cast<GVariant*>((state).gobj()))
-{}
+: _CONSTRUCT("name", name.c_str(), "state", const_cast<GVariant*>((state).gobj()))
+{
+}
-Glib::RefPtr<SimpleAction> SimpleAction::create_bool(const Glib::ustring& name, bool state)
+Glib::RefPtr<SimpleAction>
+SimpleAction::create_bool(const Glib::ustring& name, bool state)
{
- //We must provide some initial state, as a way to specify the type of the state.
+ // We must provide some initial state, as a way to specify the type of the state.
return create(name, Glib::Variant<bool>::create(state));
}
-
-Glib::RefPtr<SimpleAction> SimpleAction::create_radio_string(const Glib::ustring& name, const Glib::ustring& initial_state)
+Glib::RefPtr<SimpleAction>
+SimpleAction::create_radio_string(const Glib::ustring& name, const Glib::ustring& initial_state)
{
- //See https://developer.gnome.org/glib/stable/gvariant-format-strings.html#gvariant-format-strings-strings
- return create(name, Glib::VARIANT_TYPE_STRING, Glib::Variant<Glib::ustring>::create(initial_state));
+ // See
+ // https://developer.gnome.org/glib/stable/gvariant-format-strings.html#gvariant-format-strings-strings
+ return create(
+ name, Glib::VARIANT_TYPE_STRING, Glib::Variant<Glib::ustring>::create(initial_state));
}
-Glib::RefPtr<SimpleAction> SimpleAction::create_radio_integer(const Glib::ustring& name, gint32 initial_state)
+Glib::RefPtr<SimpleAction>
+SimpleAction::create_radio_integer(const Glib::ustring& name, gint32 initial_state)
{
- //See https://developer.gnome.org/glib/stable/gvariant-format-strings.html#gvariant-format-strings-numeric-types
+ // See
+ // https://developer.gnome.org/glib/stable/gvariant-format-strings.html#gvariant-format-strings-numeric-types
return create(name, Glib::VARIANT_TYPE_INT32, Glib::Variant<gint32>::create(initial_state));
}