-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.cpp
More file actions
25 lines (18 loc) · 541 Bytes
/
main.cpp
File metadata and controls
25 lines (18 loc) · 541 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
#include "app_menu.h"
#include "indicator.h"
#include <giomm.h>
#include <glibmm.h>
#include <gtkmm/application.h>
#include <libappindicator/app-indicator.h>
#include <mcheck.h>
int main(int argc, char *argv[]) {
mtrace();
Glib::RefPtr<Gtk::Application> app = Gtk::Application::create(argc, argv);
std::shared_ptr<Indicator> indicator(new Indicator);
AppMenu app_menu(indicator);
indicator.get()->add_menu(app_menu);
Glib::RefPtr<Glib::MainLoop> loop = Glib::MainLoop::create();
loop->run();
muntrace();
return 0;
}