From: gustav_b Date: Tue, 9 Oct 2007 21:33:00 +0000 (+0000) Subject: Add hack to prevent the dock paned from catching F6 and F8 key presses. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1bd19e12eef41010cb716456495e71e86af6e3ec;p=inkscape.git Add hack to prevent the dock paned from catching F6 and F8 key presses. --- 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);