diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2018-01-09 13:34:55 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2018-01-09 13:34:55 +0000 |
| commit | 8a8da4ffc071491a312a462948879ce13867c594 (patch) | |
| tree | 7fa7ed6fd8c2cb7bb8d0c0ad31e16ae311fd22a5 /src/widgets/arc-toolbar.cpp | |
| parent | Misc. typos (diff) | |
| download | inkscape-8a8da4ffc071491a312a462948879ce13867c594.tar.gz inkscape-8a8da4ffc071491a312a462948879ce13867c594.zip | |
Fix sensitivity for arc toolbar controls.
Diffstat (limited to 'src/widgets/arc-toolbar.cpp')
| -rw-r--r-- | src/widgets/arc-toolbar.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widgets/arc-toolbar.cpp b/src/widgets/arc-toolbar.cpp index e7758ca98..e85f3ba16 100644 --- a/src/widgets/arc-toolbar.cpp +++ b/src/widgets/arc-toolbar.cpp @@ -66,16 +66,16 @@ using Inkscape::Util::unit_table; static void sp_arctb_sensitivize( GObject *tbl, double v1, double v2 ) { - GtkAction *ocb = GTK_ACTION( g_object_get_data( tbl, "open_action" ) ); + Gtk::Action *ocb = static_cast<Gtk::Action*>( g_object_get_data( tbl, "type_action" ) ); GtkAction *make_whole = GTK_ACTION( g_object_get_data( tbl, "make_whole" ) ); if (v1 == 0 && v2 == 0) { if (g_object_get_data( tbl, "single" )) { // only for a single selected ellipse (for now) - gtk_action_set_sensitive( ocb, FALSE ); + ocb->set_sensitive(false); gtk_action_set_sensitive( make_whole, FALSE ); } } else { - gtk_action_set_sensitive( ocb, TRUE ); + ocb->set_sensitive(true); gtk_action_set_sensitive( make_whole, TRUE ); } } |
