diff options
author | Michele Calgaro <[email protected]> | 2020-12-17 20:50:19 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-12-17 23:50:37 +0900 |
commit | 3e3d9eda9d1dd8c67c1c27c6a9bdc68bdecfcc30 (patch) | |
tree | 6af0b8ba2786060423ba143e894bf9529d351f8d /languages/cpp/app_templates/gtk2mmapp/main_window_glade.cpp | |
parent | f08b30edb9f422128083050320681b6bacd06d1d (diff) | |
download | tdevelop-3e3d9eda9d1dd8c67c1c27c6a9bdc68bdecfcc30.tar.gz tdevelop-3e3d9eda9d1dd8c67c1c27c6a9bdc68bdecfcc30.zip |
Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'languages/cpp/app_templates/gtk2mmapp/main_window_glade.cpp')
-rw-r--r-- | languages/cpp/app_templates/gtk2mmapp/main_window_glade.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/languages/cpp/app_templates/gtk2mmapp/main_window_glade.cpp b/languages/cpp/app_templates/gtk2mmapp/main_window_glade.cpp new file mode 100644 index 00000000..5bed4679 --- /dev/null +++ b/languages/cpp/app_templates/gtk2mmapp/main_window_glade.cpp @@ -0,0 +1,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.cpp + + +#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.h" +#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; +} |