summaryrefslogtreecommitdiffstats
path: root/src/inkscape.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2018-07-21 22:19:53 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-07-21 22:19:53 +0000
commit34d08da015358e09229ebd7f01744432901bdc47 (patch)
tree5766107cc843557a0fab0c9bda889311ba41d9fc /src/inkscape.cpp
parentFixing some icons dont redraw (diff)
downloadinkscape-34d08da015358e09229ebd7f01744432901bdc47.tar.gz
inkscape-34d08da015358e09229ebd7f01744432901bdc47.zip
Fixing coding style
Diffstat (limited to 'src/inkscape.cpp')
-rw-r--r--src/inkscape.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index 13283b03d..9be033494 100644
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
@@ -410,8 +410,7 @@ Application::add_style_sheet()
#if GTK_CHECK_VERSION(3, 16, 0)
// Gtk::CssProviderError not defined until 3.16.
catch (const Gtk::CssProviderError &ex) {
- g_critical("CSSProviderError::load_from_data(): failed to load '%s'\n(%s)", css_str.c_str(),
- ex.what().c_str());
+ g_critical("CSSProviderError::load_from_data(): failed to load '%s'\n(%s)", css_str.c_str(), ex.what().c_str());
}
#else
catch (...) {
@@ -419,8 +418,8 @@ Application::add_style_sheet()
#endif
Gtk::StyleContext::add_provider_for_screen(screen, provider, GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
- //we want a tiny file with 3 or 4 lines, so we can loada witout removing context
- //is more undertable than record previously applyed
+ // we want a tiny file with 3 or 4 lines, so we can loada witout removing context
+ // is more undertable than record previously applyed
Glib::ustring style = get_filename(UIS, "style.css");
if (!style.empty()) {
auto provider = Gtk::CssProvider::create();
@@ -477,8 +476,9 @@ Application::Application(const char* argv, bool use_gui) :
/* Load the preferences and menus */
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
- g_object_set (gtk_settings_get_default (), "gtk-theme-name", prefs->getString("/theme/gtkTheme").c_str(), NULL);
- g_object_set (gtk_settings_get_default (), "gtk-application-prefer-dark-theme", prefs->getBool("/theme/darkTheme", false), NULL);
+ g_object_set(gtk_settings_get_default(), "gtk-theme-name", prefs->getString("/theme/gtkTheme").c_str(), NULL);
+ g_object_set(gtk_settings_get_default(), "gtk-application-prefer-dark-theme",
+ prefs->getBool("/theme/darkTheme", false), NULL);
InkErrorHandler* handler = new InkErrorHandler(use_gui);
prefs->setErrorHandler(handler);
{