-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
29 lines (23 loc) · 683 Bytes
/
Copy pathmain.cpp
File metadata and controls
29 lines (23 loc) · 683 Bytes
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
#include <Magick++.h>
#include <iostream>
#include <cstring>
#include <gtkmm.h>
#include "img_processing_src/Image.h"
#include "gui_src/GUI.h"
int main(int argc, char *argv[]) {
Magick::InitializeMagick(*argv);
Gtk::Main kit(argc, argv);
// initialize builder
init_builder(UI_FILE_LOCATION);
// Get the window object from the UI file
Gtk::Window* window;
builder->get_widget(MAIN_WINDOW_ID, window);
if (!window) {
std::cerr << "Error: Could not get window widget from UI file" << std::endl;
return 1;
}
// Show the window and start the Gtk event loop
window->show_all();
Gtk::Main::run(*window);
return 0;
}