testing-repository/Gtkmm3/gtk125_backprefs3/src/main.cc

16 lines
453 B
C++
Raw Normal View History

2022-02-26 11:17:55 +08:00
#include "MyWin.hh"
2022-02-27 10:55:59 +08:00
#define GETTEXT_PACKAGE "gtk125"
#define PROGRAMNAME_LOCALEDIR "./po"
2022-02-26 11:17:55 +08:00
int main(int argc,char ** argv){
// Initalize gettext
2022-02-27 10:55:59 +08:00
bindtextdomain(GETTEXT_PACKAGE, PROGRAMNAME_LOCALEDIR);
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
textdomain(GETTEXT_PACKAGE);
2022-02-26 11:17:55 +08:00
// Create application and run
auto app = Gtk::Application::create(argc,argv,"org.gtk.daleclack");
MyWin window;
return app->run(window);
}