about summary refs log tree commit diff stats
path: root/src/tools
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-10-29 15:01:07 +0100
committerMichael Vetter <jubalh@iodoru.org>2019-10-29 15:20:57 +0100
commit5d6cb3c74112d79ce964dcb834ca7e27e66014a3 (patch)
tree43260c0555814cd9ec09bde1a64e4ca702b1c2ba /src/tools
parent291f9de1e998f3deb1fb34cb221dca9bfdbde7f1 (diff)
downloadprofani-tty-5d6cb3c74112d79ce964dcb834ca7e27e66014a3.tar.gz
Dont use clipboard_init yet
For now we initialize gtk in tray_init().
Should maybe use a general function and check in tray_init and
clipboard_init whether gtk was already initialized.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/clipboard.c4
-rw-r--r--src/tools/clipboard.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/tools/clipboard.c b/src/tools/clipboard.c
index 8904e3f8..67abd8d2 100644
--- a/src/tools/clipboard.c
+++ b/src/tools/clipboard.c
@@ -41,9 +41,13 @@
 
 #include "log.h"
 
+/*
+For now we rely on tray_init(void)
+
 void clipboard_init(int argc, char **argv) {
     gtk_init(&argc, &argv);
 }
+*/
 
 char *clipboard_get(void) {
     gchar *clip;
diff --git a/src/tools/clipboard.h b/src/tools/clipboard.h
index cb3d517b..258b5a31 100644
--- a/src/tools/clipboard.h
+++ b/src/tools/clipboard.h
@@ -36,7 +36,6 @@
 #define UI_CLIPBOARD_H
 
 #ifdef HAVE_GTK
-void clipboard_init(int argc, char **argv);
 char *clipboard_get(void);
 #endif