summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/selected-style.cpp
diff options
context:
space:
mode:
authorvanntile <valentin.ionita1201@gmail.com>2019-08-11 09:15:19 +0000
committervanntile <valentin.ionita1201@gmail.com>2019-08-17 15:33:46 +0000
commit863a58d272adaa3c371874e3472e7b90b57dcfb5 (patch)
treecb098c455031b28a82ac2c1fbd2af30999f774a8 /src/ui/widget/selected-style.cpp
parentSome useful hatch changes (diff)
downloadinkscape-863a58d272adaa3c371874e3472e7b90b57dcfb5.tar.gz
inkscape-863a58d272adaa3c371874e3472e7b90b57dcfb5.zip
Formatting last commit
Diffstat (limited to 'src/ui/widget/selected-style.cpp')
-rw-r--r--src/ui/widget/selected-style.cpp25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/ui/widget/selected-style.cpp b/src/ui/widget/selected-style.cpp
index 53ec6c1a2..6fe5f797e 100644
--- a/src/ui/widget/selected-style.cpp
+++ b/src/ui/widget/selected-style.cpp
@@ -190,10 +190,10 @@ SelectedStyle::SelectedStyle(bool /*layout*/)
_pattern[i].show_all();
__pattern[i] = (i == SS_FILL)? (_("Pattern fill")) : (_("Pattern stroke"));
- _hatch[i].set_markup (_("Hatch"));
- sp_set_font_size_smaller (GTK_WIDGET(_hatch[i].gobj()));
+ _hatch[i].set_markup(_("Hatch"));
+ sp_set_font_size_smaller(GTK_WIDGET(_hatch[i].gobj()));
_hatch[i].show_all();
- __hatch[i] = (i == SS_FILL)? (_("Hatch fill")) : (_("Hatch stroke"));
+ __hatch[i] = (i == SS_FILL) ? (_("Hatch fill")) : (_("Hatch stroke"));
_lgradient[i].set_markup (_("<b>L</b>"));
sp_set_font_size_smaller (GTK_WIDGET(_lgradient[i].gobj()));
@@ -975,13 +975,13 @@ SelectedStyle::update()
_paintserver_id[i] += srepr->attribute("id");
_paintserver_id[i] += ")";
- if (SP_IS_LINEARGRADIENT (server)) {
+ if (SP_IS_LINEARGRADIENT(server)) {
SPGradient *vector = SP_GRADIENT(server)->getVector();
sp_gradient_image_set_gradient(SP_GRADIENT_IMAGE(_gradient_preview_l[i]), vector);
place->add(_gradient_box_l[i]);
place->set_tooltip_text(__lgradient[i]);
_mode[i] = SS_LGRADIENT;
- } else if (SP_IS_RADIALGRADIENT (server)) {
+ } else if (SP_IS_RADIALGRADIENT(server)) {
SPGradient *vector = SP_GRADIENT(server)->getVector();
sp_gradient_image_set_gradient(SP_GRADIENT_IMAGE(_gradient_preview_r[i]), vector);
place->add(_gradient_box_r[i]);
@@ -995,14 +995,14 @@ SelectedStyle::update()
place->set_tooltip_text(__mgradient[i]);
_mode[i] = SS_MGRADIENT;
#endif
- } else if (SP_IS_PATTERN (server)) {
+ } else if (SP_IS_PATTERN(server)) {
place->add(_pattern[i]);
place->set_tooltip_text(__pattern[i]);
_mode[i] = SS_PATTERN;
- } else if (SP_IS_HATCH (server)) {
+ } else if (SP_IS_HATCH(server)) {
place->add(_hatch[i]);
place->set_tooltip_text(__hatch[i]);
- _mode[i] == SS_HATCH;
+ _mode[i] = SS_HATCH;
}
} else {
g_warning ("file %s: line %d: Unknown paint server", __FILE__, __LINE__);
@@ -1294,13 +1294,12 @@ RotateableSwatch::do_motion(double by, guint modifier) {
pixbuf = gdk_pixbuf_new_from_xpm_data((const gchar **)cursor_adj_h_xpm);
}
- if (pixbuf != nullptr) {
- cr = gdk_cursor_new_from_pixbuf(gdk_display_get_default(), pixbuf, 16, 16);
-
+ if (pixbuf != nullptr) {
+ cr = gdk_cursor_new_from_pixbuf(gdk_display_get_default(), pixbuf, 16, 16);
g_object_unref(pixbuf);
gdk_window_set_cursor(gtk_widget_get_window(w), cr);
- g_object_unref(cr);
- cr = nullptr;
+ g_object_unref(cr);
+ cr = nullptr;
cr_set = true;
}
}