summaryrefslogtreecommitdiffstats
path: root/src/widgets/desktop-widget.cpp
diff options
context:
space:
mode:
authorNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-04-15 15:56:42 +0000
committerNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-04-15 21:35:41 +0000
commit2bfff771506abafd54060c63e5bbc8ce4fe67af0 (patch)
tree3abf80820e9742064120ba119d6d9160e7e39c6a /src/widgets/desktop-widget.cpp
parentPrevent buffer overflow in svg transformation reading; lp:1047524 (diff)
downloadinkscape-2bfff771506abafd54060c63e5bbc8ce4fe67af0.tar.gz
inkscape-2bfff771506abafd54060c63e5bbc8ce4fe67af0.zip
Restore select toolbar lock button
Connection to other code (e.g. drag selection, pasting width) restored (dropped in GtkAction migration). Fixes https://gitlab.com/inkscape/inkscape/issues/161 Fixes https://gitlab.com/inkscape/inkscape/issues/173
Diffstat (limited to 'src/widgets/desktop-widget.cpp')
-rw-r--r--src/widgets/desktop-widget.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/widgets/desktop-widget.cpp b/src/widgets/desktop-widget.cpp
index 6a021312f..7386f2fa5 100644
--- a/src/widgets/desktop-widget.cpp
+++ b/src/widgets/desktop-widget.cpp
@@ -1588,6 +1588,9 @@ SPDesktopWidget::isToolboxButtonActive (const gchar* id)
} else if ( GTK_IS_TOGGLE_ACTION(thing) ) {
GtkToggleAction* act = GTK_TOGGLE_ACTION(thing);
isActive = gtk_toggle_action_get_active( act ) != 0;
+ } else if ( GTK_IS_TOGGLE_TOOL_BUTTON(thing) ) {
+ GtkToggleToolButton *b = GTK_TOGGLE_TOOL_BUTTON(thing);
+ isActive = gtk_toggle_tool_button_get_active( b ) != 0;
} else {
//g_message( "Item for {%s} is of an unsupported type", id );
}