summaryrefslogtreecommitdiffstats
path: root/src/inkscape-window.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2019-01-25 09:36:53 +0000
committerTavmjong Bah <tavmjong@free.fr>2019-01-25 09:36:53 +0000
commit2c971690777ca2dca936245569bae9dfb76513e8 (patch)
tree2a921d8d89a98483ae5dfeaf45a035e68bb373fb /src/inkscape-window.cpp
parentSelectToolbar: cleanup unused (diff)
downloadinkscape-2c971690777ca2dca936245569bae9dfb76513e8.tar.gz
inkscape-2c971690777ca2dca936245569bae9dfb76513e8.zip
Rewrite main menu bar code:
Convert to GTKMM. General cleanup. Move to dedicated files.
Diffstat (limited to 'src/inkscape-window.cpp')
-rw-r--r--src/inkscape-window.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/inkscape-window.cpp b/src/inkscape-window.cpp
index 70192b711..08e8407c9 100644
--- a/src/inkscape-window.cpp
+++ b/src/inkscape-window.cpp
@@ -26,6 +26,8 @@
#include "ui/interface.h" // main menu
#include "ui/monitor.h" // get_monitor_geometry_at_point()
+#include "ui/desktop/menubar.h"
+
#include "ui/drag-and-drop.h"
#include "widgets/desktop-widget.h"
@@ -66,7 +68,7 @@ InkscapeWindow::InkscapeWindow(SPDocument* document)
_desktop = _desktop_widget->desktop;
// Menu bar (must come after desktop widget creation as we need _desktop)
- _menubar = Glib::wrap(GTK_MENU_BAR(sp_ui_main_menubar(_desktop)));
+ _menubar = build_menubar(_desktop);
_menubar->set_name("MenuBar");
_menubar->show_all();