summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/gtk2mmapp/main_window_glade.cc
blob: 829855a8e6c469a1553547129ca604547c678318 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
%{CC_TEMPLATE}

// DO NOT EDIT THIS FILE ! It was created using glade-- 
// for gtk 2.8.3 and gtkmm 2.8.0
//
// Please modify the corresponding derived classes in ./src/main_window.cc


#if defined __GNUC__ && __GNUC__ < 3
#error This program will crash if compiled with g++ 2.x
// see the dynamic_cast bug in the gtkmm FAQ
#endif //
#include "config.h"
#include <gtkmmconfig.h>
#if GTKMM_MAJOR_VERSION==2 && GTKMM_MINOR_VERSION>2
#include <sigc++/compatibility.h>
#define GMM_GTKMM_22_24(a,b) b
#else //gtkmm 2.2
#define GMM_GTKMM_22_24(a,b) a
#endif //
#include "main_window_glade.hh"
#include <gdk/gdkkeysyms.h>
#include <gtkmm/accelgroup.h>

main_window_glade::main_window_glade(
) : Gtk::Window(Gtk::WINDOW_TOPLEVEL)
{  main_window = this;
   gmm_data = new GlademmData(get_accel_group());
   main_window->set_title("%{APPNAME} Project");
   main_window->set_modal(false);
   main_window->property_window_position().set_value(Gtk::WIN_POS_CENTER);
   main_window->set_resizable(true);
   main_window->property_destroy_with_parent().set_value(false);
   main_window->show();
   main_window->signal_delete_event().connect(SigC::slot(*this, &main_window_glade::quit), false);
}

main_window_glade::~main_window_glade()
{  delete gmm_data;
}