summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgustav_b <gustav_b@users.sourceforge.net>2007-11-12 22:32:29 +0000
committergustav_b <gustav_b@users.sourceforge.net>2007-11-12 22:32:29 +0000
commit6c4204751a0da112aa65968bf88591560ff655d9 (patch)
treed0ce0c9ff0cf17e40b3a422f69b6945fae551c5e
parentRemove makefiles that shouldn't be in repos (diff)
downloadinkscape-6c4204751a0da112aa65968bf88591560ff655d9.tar.gz
inkscape-6c4204751a0da112aa65968bf88591560ff655d9.zip
Don't force focus on the canvas when the desktop is given
focus. Instead, focus will be given to the widget in the desktop that had focus the last time. (bzr r4070)
-rw-r--r--src/widgets/desktop-widget.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/widgets/desktop-widget.cpp b/src/widgets/desktop-widget.cpp
index fe807fd26..3562e7b2a 100644
--- a/src/widgets/desktop-widget.cpp
+++ b/src/widgets/desktop-widget.cpp
@@ -1173,11 +1173,8 @@ sp_desktop_widget_adjustment_value_changed (GtkAdjustment *adj, SPDesktopWidget
bool SPDesktopWidget::onFocusInEvent(GdkEventFocus*)
{
inkscape_activate_desktop (desktop);
-
- /* give focus to canvas widget */
- gtk_widget_grab_focus (GTK_WIDGET (canvas));
- return false;
+ return false;
}
static gdouble