diff options
| author | Jabiertxo Arraiza Cenoz <jtx@jtx-desktop.markerlab.es> | 2017-08-29 10:03:43 +0000 |
|---|---|---|
| committer | Jabiertxo Arraiza Cenoz <jtx@jtx-desktop.markerlab.es> | 2017-08-29 10:03:43 +0000 |
| commit | f7f34bf6e09dca8716b0ee29561089244e7cf2f8 (patch) | |
| tree | 774f21d9d4328824273878d7adec61755f8345fd /src/widgets/pencil-toolbar.cpp | |
| parent | Clarify a bit some strings (diff) | |
| parent | Ressurrect Spiro Symplify by LPE because no wrong results and retain removed ... (diff) | |
| download | inkscape-f7f34bf6e09dca8716b0ee29561089244e7cf2f8.tar.gz inkscape-f7f34bf6e09dca8716b0ee29561089244e7cf2f8.zip | |
Merge branch 'master' into powerpencil
Diffstat (limited to 'src/widgets/pencil-toolbar.cpp')
| -rw-r--r-- | src/widgets/pencil-toolbar.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/widgets/pencil-toolbar.cpp b/src/widgets/pencil-toolbar.cpp index dca0fcf01..a9d27566d 100644 --- a/src/widgets/pencil-toolbar.cpp +++ b/src/widgets/pencil-toolbar.cpp @@ -80,10 +80,13 @@ static void freehand_mode_changed(EgeSelectOneAction* act, GObject* tbl) if (mode == 1 || mode == 2) { gtk_action_set_visible( GTK_ACTION( g_object_get_data(tbl, "flatten_spiro_bspline") ), true ); + } else { + gtk_action_set_visible( GTK_ACTION( g_object_get_data(tbl, "flatten_spiro_bspline") ), false ); + } + if (mode == 2) { gtk_action_set_visible( GTK_ACTION( g_object_get_data(tbl, "flatten_simplify") ), false ); gtk_action_set_visible( GTK_ACTION( g_object_get_data(tbl, "simplify") ), false ); } else { - gtk_action_set_visible( GTK_ACTION( g_object_get_data(tbl, "flatten_spiro_bspline") ), false ); gtk_action_set_visible( GTK_ACTION( g_object_get_data(tbl, "flatten_simplify") ), true ); gtk_action_set_visible( GTK_ACTION( g_object_get_data(tbl, "simplify") ), true ); } @@ -576,7 +579,7 @@ void sp_pencil_toolbox_prep(SPDesktop *desktop, GtkActionGroup* mainActions, GOb g_signal_connect_after( G_OBJECT(itact), "toggled", G_CALLBACK(freehand_simplify_lpe), holder) ; gtk_action_group_add_action( mainActions, GTK_ACTION(itact) ); guint freehandMode = prefs->getInt("/tools/freehand/pencil/freehand-mode", 0); - if (freehandMode == 1 || freehandMode == 2) { + if (freehandMode == 2) { gtk_action_set_visible( GTK_ACTION( g_object_get_data(holder, "simplify") ), false ); } else { gtk_action_set_visible( GTK_ACTION( g_object_get_data(holder, "simplify") ), true ); @@ -593,7 +596,7 @@ void sp_pencil_toolbox_prep(SPDesktop *desktop, GtkActionGroup* mainActions, GOb gtk_action_group_add_action( mainActions, GTK_ACTION(inky) ); g_object_set_data( holder, "flatten_simplify", inky ); guint freehandMode = prefs->getInt("/tools/freehand/pencil/freehand-mode", 0); - if (freehandMode == 1 || freehandMode == 2 || !prefs->getInt("/tools/freehand/pencil/simplify", 0)) { + if (freehandMode == 2 || !prefs->getInt("/tools/freehand/pencil/simplify", 0)) { gtk_action_set_visible( GTK_ACTION( g_object_get_data(holder, "flatten_simplify") ), false ); } else { gtk_action_set_visible( GTK_ACTION( g_object_get_data(holder, "flatten_simplify") ), true ); |
