summaryrefslogtreecommitdiffstats
path: root/src/qt_main.c
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2022-09-05 22:31:11 +0200
committerSlávek Banko <slavek.banko@axis.cz>2022-09-06 03:53:32 +0200
commit49388bda96cd29b0cdbc9a3a7ddd51a1513dab97 (patch)
treed4bbb384a0d46540b7cec3d40e277344a67e77cf /src/qt_main.c
parent4c626268c0bd7f548e4c23d22fc3b7d18b2f63cf (diff)
downloadgtk-qt-engine-49388bda.tar.gz
gtk-qt-engine-49388bda.zip
Add option WITH_GCC_VISIBILITY.
Fix building with hidden visibility. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 7085e78f62c562846a20b9404795034a3ad66113)
Diffstat (limited to 'src/qt_main.c')
-rw-r--r--src/qt_main.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/qt_main.c b/src/qt_main.c
index fab6003..8b5bf3b 100644
--- a/src/qt_main.c
+++ b/src/qt_main.c
@@ -1,3 +1,8 @@
+#if defined( HAVE_CONFIG_H )
+# include "config.h"
+#endif
+
+#include <kdemacros.h>
#include <gmodule.h>
#include <stdio.h>
#include "qt_rc_style.h"
@@ -5,25 +10,24 @@
#include "qt_qt_wrapper.h"
-G_MODULE_EXPORT void theme_init (GTypeModule *module);
-G_MODULE_EXPORT void theme_exit (void);
-G_MODULE_EXPORT GtkRcStyle * theme_create_rc_style (void);
+KDE_EXPORT void theme_init (GTypeModule *module);
+KDE_EXPORT void theme_exit (void);
+KDE_EXPORT GtkRcStyle * theme_create_rc_style (void);
-G_MODULE_EXPORT void theme_init (GTypeModule *module)
+KDE_EXPORT void theme_init (GTypeModule *module)
{
createTQApp();
qtengine_rc_style_register_type (module);
qtengine_style_register_type (module);
}
-G_MODULE_EXPORT void theme_exit (void)
+KDE_EXPORT void theme_exit (void)
{
destroyTQApp();
}
-G_MODULE_EXPORT GtkRcStyle * theme_create_rc_style (void)
+KDE_EXPORT GtkRcStyle * theme_create_rc_style (void)
{
void *ptr = GTK_RC_STYLE (g_object_new (TQTENGINE_TYPE_RC_STYLE, NULL));
return (GtkRcStyle *)ptr;
}
-