summaryrefslogtreecommitdiffstats
path: root/src/widgets/eraser-toolbar.cpp
diff options
context:
space:
mode:
authorShlomi Fish <shlomif@shlomifish.org>2016-10-09 19:26:41 +0000
committerShlomi Fish <shlomif@shlomifish.org>2016-10-09 19:26:41 +0000
commit313fbdd33bce622e2394661de6e9429615bb269d (patch)
treeea7fb688a44052483bc860968e0000fecbfcb4d7 /src/widgets/eraser-toolbar.cpp
parentRefactoring: remove duplicacy. (diff)
downloadinkscape-313fbdd33bce622e2394661de6e9429615bb269d.tar.gz
inkscape-313fbdd33bce622e2394661de6e9429615bb269d.zip
Remove unnecessary ?TRUE:FALSE.
Thanks to Mc-. (bzr r15100.1.40)
Diffstat (limited to 'src/widgets/eraser-toolbar.cpp')
-rw-r--r--src/widgets/eraser-toolbar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/eraser-toolbar.cpp b/src/widgets/eraser-toolbar.cpp
index 86a5119e0..64aace4e7 100644
--- a/src/widgets/eraser-toolbar.cpp
+++ b/src/widgets/eraser-toolbar.cpp
@@ -89,9 +89,9 @@ static void sp_erc_tremor_value_changed( GtkAdjustment *adj, GObject* tbl )
static void sp_set_tbl_eraser_mode_visibility(GObject *const tbl, const guint eraser_mode)
{
- gtk_action_set_visible( GTK_ACTION( g_object_get_data(tbl, "split") ), (eraser_mode == ERASER_MODE_CUT) ? TRUE : FALSE );
+ gtk_action_set_visible( GTK_ACTION( g_object_get_data(tbl, "split") ), (eraser_mode == ERASER_MODE_CUT));
- const gboolean visibility = (eraser_mode != ERASER_MODE_DELETE) ? TRUE : FALSE;
+ const gboolean visibility = (eraser_mode != ERASER_MODE_DELETE);
const std::array<const gchar *, 6> arr = {"cap_rounding", "mass", "thinning", "tremor", "usepressure", "width"};
for (const gchar * str : arr) {
gtk_action_set_visible( GTK_ACTION( g_object_get_data(tbl, str) ), visibility );