diff options
| author | gustav_b <gustav_b@users.sourceforge.net> | 2007-10-09 21:33:00 +0000 |
|---|---|---|
| committer | gustav_b <gustav_b@users.sourceforge.net> | 2007-10-09 21:33:00 +0000 |
| commit | 5798a93889e943a1593eca7c3f1e5c8acfaf687d (patch) | |
| tree | cd0ca00d26365165d138bfe0edf8db6b0d5922c9 /src/widgets/desktop-widget.cpp | |
| parent | commit updates to curvestitch example (diff) | |
| download | inkscape-5798a93889e943a1593eca7c3f1e5c8acfaf687d.tar.gz inkscape-5798a93889e943a1593eca7c3f1e5c8acfaf687d.zip | |
Add hack to prevent the dock paned from catching F6 and F8 key presses.
(bzr r3868)
Diffstat (limited to 'src/widgets/desktop-widget.cpp')
| -rw-r--r-- | src/widgets/desktop-widget.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/widgets/desktop-widget.cpp b/src/widgets/desktop-widget.cpp index f33950f70..fe807fd26 100644 --- a/src/widgets/desktop-widget.cpp +++ b/src/widgets/desktop-widget.cpp @@ -295,6 +295,13 @@ sp_desktop_widget_init (SPDesktopWidget *dtw) Gtk::HPaned *paned = new Gtk::HPaned(); paned->pack1(*Glib::wrap(canvas_tbl)); paned->pack2(dtw->dock->getWidget(), Gtk::FILL); + + /* Prevent the paned from catching F6 and F8 by unsetting the default callbacks */ + if (GtkPanedClass *paned_class = GTK_PANED_CLASS (G_OBJECT_GET_CLASS (paned->gobj()))) { + paned_class->cycle_child_focus = NULL; + paned_class->cycle_handle_focus = NULL; + } + gtk_table_attach (GTK_TABLE (tbl), GTK_WIDGET (paned->gobj()), 1, 2, 1, 2, (GtkAttachOptions)(GTK_EXPAND | GTK_FILL), (GtkAttachOptions)(GTK_EXPAND | GTK_FILL), 0, 0); |
