Created
October 11, 2017 02:28
-
-
Save dj-amadeous/1789ca04739985d421ec8b0e29c06953 to your computer and use it in GitHub Desktop.
line 11, add is part of gtkmm but no namespace or method call on an object?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Main_window::Main_window() { | |
// ///////////////// | |
// G U I S E T U P | |
// ///////////////// | |
set_default_size(400, 200); | |
// Put a vertical box container as the Window contents | |
Gtk::Box *vbox = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_VERTICAL, 0)); | |
add(*vbox); | |
// /////// | |
// M E N U | |
// Add a menu bar as the top item in the vertical box | |
Gtk::MenuBar *menubar = Gtk::manage(new Gtk::MenuBar()); | |
vbox->pack_start(*menubar, Gtk::PACK_SHRINK, 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment