diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-03 01:37:00 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-03 01:37:00 +0000 |
commit | 0e865e2b7e566235912012e357111792f4e31d8c (patch) | |
tree | fd2d295c7beae0050cc8bd657f09ed294819eaf0 /src/qt_main.c | |
download | gtk-qt-engine-0e865e2b7e566235912012e357111792f4e31d8c.tar.gz gtk-qt-engine-0e865e2b7e566235912012e357111792f4e31d8c.zip |
Added abandoned KDE3 version of the GTK Qt theme engine
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gtk-qt-engine@1084394 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/qt_main.c')
-rw-r--r-- | src/qt_main.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/qt_main.c b/src/qt_main.c new file mode 100644 index 0000000..4e9eb1b --- /dev/null +++ b/src/qt_main.c @@ -0,0 +1,29 @@ +#include <gmodule.h> +#include <stdio.h> +#include "qt_rc_style.h" +#include "qt_style.h" + +#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); + +G_MODULE_EXPORT void theme_init (GTypeModule *module) +{ + createQApp(); + qtengine_rc_style_register_type (module); + qtengine_style_register_type (module); +} + +G_MODULE_EXPORT void theme_exit (void) +{ + destroyQApp(); +} + +G_MODULE_EXPORT GtkRcStyle * theme_create_rc_style (void) +{ + void *ptr = GTK_RC_STYLE (g_object_new (QTENGINE_TYPE_RC_STYLE, NULL)); + return (GtkRcStyle *)ptr; +} + |