summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/applet/Applet.cpp2
-rw-r--r--src/applet/Makefile.am2
-rw-r--r--src/applet/applet_gtk.c (renamed from src/applet/CCApplet.cpp)2
-rw-r--r--src/applet/applet_gtk.h (renamed from src/applet/CCApplet.h)8
4 files changed, 11 insertions, 3 deletions
diff --git a/src/applet/Applet.cpp b/src/applet/Applet.cpp
index 239f7a04..7529e854 100644
--- a/src/applet/Applet.cpp
+++ b/src/applet/Applet.cpp
@@ -28,7 +28,7 @@
#include "abrtlib.h"
#include "abrt_dbus.h"
#include "dbus_common.h"
-#include "CCApplet.h"
+#include "applet_gtk.h"
static struct applet* applet = NULL;
diff --git a/src/applet/Makefile.am b/src/applet/Makefile.am
index 743c18df..55e28733 100644
--- a/src/applet/Makefile.am
+++ b/src/applet/Makefile.am
@@ -2,7 +2,7 @@ bin_PROGRAMS = abrt-applet
abrt_applet_SOURCES = \
Applet.cpp \
- CCApplet.h CCApplet.cpp
+ applet_gtk.h applet_gtk.c
abrt_applet_CPPFLAGS = \
-Wall -Werror \
-I$(srcdir)/../../inc \
diff --git a/src/applet/CCApplet.cpp b/src/applet/applet_gtk.c
index ff4387c5..7a9fcc0c 100644
--- a/src/applet/CCApplet.cpp
+++ b/src/applet/applet_gtk.c
@@ -20,7 +20,7 @@
# include <config.h>
#endif
#include "abrtlib.h"
-#include "CCApplet.h"
+#include "applet_gtk.h"
static bool load_icons(struct applet *applet)
{
diff --git a/src/applet/CCApplet.h b/src/applet/applet_gtk.h
index 6e599a19..0bcf47b7 100644
--- a/src/applet/CCApplet.h
+++ b/src/applet/applet_gtk.h
@@ -34,6 +34,10 @@ enum ICON_STAGES
ICON_STAGE_LAST
};
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct applet {
GtkStatusIcon *ap_status_icon;
GtkWidget *ap_menu;
@@ -57,4 +61,8 @@ void show_msg_notification(struct applet *applet, const char *format, ...);
void disable(struct applet *applet, const char *reason);
void enable(struct applet *applet, const char *reason);
+#ifdef __cplusplus
+}
+#endif
+
#endif