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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
From: Boyuan Yang <byang@debian.org>
Date: Mon, 18 Mar 2024 21:32:04 -0400
Subject: Fix implicit-function-declaration
Bug-Debian: https://bugs.debian.org/1066212
---
data/t2s-file.c | 1 +
gcb.cpp | 2 ++
gcin.cpp | 1 +
tray-indicator.h | 6 ++++++
tray.cpp | 2 ++
util.h | 1 +
6 files changed, 13 insertions(+)
create mode 100644 tray-indicator.h
diff --git a/data/t2s-file.c b/data/t2s-file.c
index 1d8a700..832007b 100644
--- a/data/t2s-file.c
+++ b/data/t2s-file.c
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include "../t2s-file.h"
diff --git a/gcb.cpp b/gcb.cpp
index 5b94c85..7d83248 100644
--- a/gcb.cpp
+++ b/gcb.cpp
@@ -6,6 +6,8 @@
#include "gcin.h"
#include "gcin-conf.h"
+void free_gcb();
+
static GtkWidget *mainwin;
static GtkClipboard *pclipboard_clipboard, *pclipboard_primary;
static GtkWidget **buttonArr;
diff --git a/gcin.cpp b/gcin.cpp
index 0ad344e..ff33971 100755
--- a/gcin.cpp
+++ b/gcin.cpp
@@ -2,6 +2,7 @@
#include "config.h"
#include "gcin-version.h"
#include "gtab.h"
+#include "tray-indicator.h"
#if UNIX
#include <signal.h>
#include <pwd.h>
diff --git a/tray-indicator.h b/tray-indicator.h
new file mode 100644
index 0000000..51a663e
--- /dev/null
+++ b/tray-indicator.h
@@ -0,0 +1,6 @@
+#ifndef _GCIN_TRAY_INDICATOR_H
+#define _GCIN_TRAY_INDICATOR_H
+
+void init_tray_indicator();
+
+#endif
diff --git a/tray.cpp b/tray.cpp
index 7c6ef48..f00f26c 100644
--- a/tray.cpp
+++ b/tray.cpp
@@ -6,6 +6,7 @@
#include "eggtrayicon.h"
#include <signal.h>
#include "gst.h"
+#include "tsin.h"
#if UNIX
static GdkPixbuf *pixbuf, *pixbuf_ch;
@@ -22,6 +23,7 @@ static EggTrayIcon *egg_tray_icon;
#define GCIN_TRAY_PNG "gcin_tray.png"
static char *pixbuf_ch_fname;
void exec_gcin_setup();
+void inmd_popup_tray();
void toggle_gb_output();
extern gboolean gb_output;
diff --git a/util.h b/util.h
index 01c3ab6..4056fb7 100644
--- a/util.h
+++ b/util.h
@@ -1,5 +1,6 @@
void p_err(char *fmt,...);
void p_err_no_alter(char *fmt,...);
+void p_err_no_alert(char *fmt,...);
void box_warn(char *fmt,...);
char *sys_err_strA();
|