diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-10-02 01:48:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-10-02 01:48:15 +0000 |
commit | 8535db1bd8fd6b5da3ff2c785bdd7512f53779e3 (patch) | |
tree | 52abb6724e038e513c4ff77d9476c17f0bb298a9 /dcopc/dcopc.c | |
parent | 95b02a470fa233548b3c3be0cff13caf4c88ba21 (diff) | |
download | tdebindings-8535db1bd8fd6b5da3ff2c785bdd7512f53779e3.tar.gz tdebindings-8535db1bd8fd6b5da3ff2c785bdd7512f53779e3.zip |
Apply initial code patches to the mozilla kparts plugin to allow for code compilablility
This does not enable the build system for the plugin at this time
Thanks go to Julius Schwartzenberg for his effort to fix this plugin, especially on the DCOP side of things!
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1256724 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'dcopc/dcopc.c')
-rw-r--r-- | dcopc/dcopc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dcopc/dcopc.c b/dcopc/dcopc.c index 119371bf..5db11c1d 100644 --- a/dcopc/dcopc.c +++ b/dcopc/dcopc.c @@ -115,7 +115,7 @@ static void reply_struct_init( reply_struct *s ) dcop_client_free_error_msg = FALSE; \ } -#define CLIENT_CLASS(obj) DCOP_CLIENT_CLASS(GTK_OBJECT(obj)->klass) +#define CLIENT_CLASS(obj) DCOP_CLIENT_CLASS(GTK_OBJECT_GET_CLASS(obj)) static gchar *dcop_client_server_address = 0; static gchar *dcop_client_error_msg = 0; @@ -936,7 +936,7 @@ gboolean dcop_client_receive( DcopClient *client, if ( P->default_object && strlen( P->default_object ) != 0 ) { o = dcop_object_lookup( P->default_object ); - if ( o && DCOP_OBJECT_CLASS(GTK_OBJECT(o)->klass)->process( o, fun, data, reply_type, reply_data ) ) + if ( o && DCOP_OBJECT_CLASS(GTK_OBJECT_GET_CLASS(o))->process( o, fun, data, reply_type, reply_data ) ) return TRUE; } @@ -957,7 +957,7 @@ gboolean dcop_client_receive( DcopClient *client, { o = (DcopObject *)it->data; - if ( !DCOP_OBJECT_CLASS(GTK_OBJECT(o)->klass)->process( o, fun, data, reply_type, reply_data ) ) + if ( !DCOP_OBJECT_CLASS(GTK_OBJECT_GET_CLASS(o))->process( o, fun, data, reply_type, reply_data ) ) { g_list_free( match_list ); g_free( partial_id ); @@ -979,7 +979,7 @@ gboolean dcop_client_receive( DcopClient *client, o = dcop_object_lookup( obj ); if ( !o ) return FALSE; - return DCOP_OBJECT_CLASS(GTK_OBJECT(o)->klass)->process( o, fun, data, reply_type, reply_data ); + return DCOP_OBJECT_CLASS(GTK_OBJECT_GET_CLASS(o))->process( o, fun, data, reply_type, reply_data ); } static inline gboolean is_ident_char( gchar x ) |