diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-05 17:16:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-05 17:16:35 +0000 |
commit | 91064f3b1d93fb0449e588f70552f050b4033e9f (patch) | |
tree | 5d042542cfd52a1ea454774157300f0509b84441 /src/qt_rc_style.c | |
parent | 5cf5e6b8214ace7beb2836bce2f2b3e3324222ca (diff) | |
download | gtk-qt-engine-91064f3b1d93fb0449e588f70552f050b4033e9f.tar.gz gtk-qt-engine-91064f3b1d93fb0449e588f70552f050b4033e9f.zip |
Port gtk-qt-engine to TQt4
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gtk-qt-engine@1230499 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/qt_rc_style.c')
-rw-r--r-- | src/qt_rc_style.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/qt_rc_style.c b/src/qt_rc_style.c index 0a9947a..ba03a7f 100644 --- a/src/qt_rc_style.c +++ b/src/qt_rc_style.c @@ -4,8 +4,8 @@ -static void qtengine_rc_style_init (QtEngineRcStyle *style); -static void qtengine_rc_style_class_init (QtEngineRcStyleClass *klass); +static void qtengine_rc_style_init (TQtEngineRcStyle *style); +static void qtengine_rc_style_class_init (TQtEngineRcStyleClass *klass); static void qtengine_rc_style_finalize (GObject *object); static guint qtengine_rc_style_parse (GtkRcStyle *rc_style, GtkSettings *settings, @@ -15,7 +15,7 @@ static void qtengine_rc_style_merge (GtkRcStyle *dest, static GtkStyle *qtengine_rc_style_create_style (GtkRcStyle *rc_style); -static GtkRcStyleClass *parent_class; +static GtkRcStyleClass *tqparent_class; GType qtengine_type_rc_style = 0; @@ -24,30 +24,30 @@ void qtengine_rc_style_register_type (GTypeModule *module) { static const GTypeInfo object_info = { - sizeof (QtEngineRcStyleClass), + sizeof (TQtEngineRcStyleClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) qtengine_rc_style_class_init, NULL, /* class_finalize */ NULL, /* class_data */ - sizeof (QtEngineRcStyle), + sizeof (TQtEngineRcStyle), 0, /* n_preallocs */ (GInstanceInitFunc) qtengine_rc_style_init, }; - qtengine_type_rc_style = g_type_module_register_type (module, GTK_TYPE_RC_STYLE, "QtEngineRcStyle", &object_info, 0); + qtengine_type_rc_style = g_type_module_register_type (module, GTK_TYPE_RC_STYLE, "TQtEngineRcStyle", &object_info, 0); } -static void qtengine_rc_style_init (QtEngineRcStyle *style) +static void qtengine_rc_style_init (TQtEngineRcStyle *style) { } -static void qtengine_rc_style_class_init (QtEngineRcStyleClass *klass) +static void qtengine_rc_style_class_init (TQtEngineRcStyleClass *klass) { GtkRcStyleClass *rc_style_class = GTK_RC_STYLE_CLASS (klass); GObjectClass *object_class = G_OBJECT_CLASS (klass); - parent_class = g_type_class_peek_parent (klass); + tqparent_class = g_type_class_peek_parent (klass); rc_style_class->parse = qtengine_rc_style_parse; rc_style_class->merge = qtengine_rc_style_merge; @@ -88,7 +88,7 @@ static void qtengine_rc_style_merge (GtkRcStyle * dest, GtkRcStyle * src) { - parent_class->merge(dest, src); + tqparent_class->merge(dest, src); } /* Create an empty style suitable to this RC style @@ -96,6 +96,6 @@ qtengine_rc_style_merge (GtkRcStyle * dest, static GtkStyle * qtengine_rc_style_create_style (GtkRcStyle *rc_style) { - void *ptr = GTK_STYLE (g_object_new (QTENGINE_TYPE_STYLE, NULL)); + void *ptr = GTK_STYLE (g_object_new (TQTENGINE_TYPE_STYLE, NULL)); return (GtkStyle *)ptr; } |