aboutsummaryrefslogtreecommitdiff
path: root/deskutils/notekit/files/patch-main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'deskutils/notekit/files/patch-main.cpp')
-rw-r--r--deskutils/notekit/files/patch-main.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/deskutils/notekit/files/patch-main.cpp b/deskutils/notekit/files/patch-main.cpp
new file mode 100644
index 000000000000..f3cbba9c9b17
--- /dev/null
+++ b/deskutils/notekit/files/patch-main.cpp
@@ -0,0 +1,17 @@
+--- main.cpp.orig 2021-12-22 15:45:02 UTC
++++ main.cpp
+@@ -1,13 +1,12 @@
+ #include "mainwindow.h"
+ #include <gtkmm/application.h>
+
+-CMainWindow *mainwindow;
+-
+ int main (int argc, char *argv[])
+ {
+ Gsv::init();
+
+ Glib::RefPtr<Gtk::Application> app = Gtk::Application::create(argc, argv, "com.github.blackhole89.notekit");
++ CMainWindow *mainwindow;
+
+ app->signal_activate().connect( [app,&mainwindow]() {
+ mainwindow=new CMainWindow(app);