From 8535db1bd8fd6b5da3ff2c785bdd7512f53779e3 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sun, 2 Oct 2011 01:48:15 +0000 Subject: 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 --- xparts/mozilla/kmozilla.c | 3 ++- xparts/src/gtk/gtkbrowserextension.c | 2 +- xparts/src/gtk/gtkpart.c | 4 ++-- xparts/src/kde/xparthost_kpart.cpp | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) (limited to 'xparts') diff --git a/xparts/mozilla/kmozilla.c b/xparts/mozilla/kmozilla.c index f405ef36..35aa14ed 100644 --- a/xparts/mozilla/kmozilla.c +++ b/xparts/mozilla/kmozilla.c @@ -113,8 +113,9 @@ gtk_kmozilla_init(GtkKmozilla *part) gtk_xpart_set_widget( (GtkXPart *)part, w ); + /* it seems the reload signal was removed gtk_signal_connect(GTK_OBJECT(part), "reload", - GTK_SIGNAL_FUNC(handle_reload), NULL); + GTK_SIGNAL_FUNC(handle_reload), NULL); */ gtk_signal_connect(GTK_OBJECT(moz), "open_uri", GTK_SIGNAL_FUNC(open_url_request), NULL); diff --git a/xparts/src/gtk/gtkbrowserextension.c b/xparts/src/gtk/gtkbrowserextension.c index 420bb3d5..7e2310e6 100644 --- a/xparts/src/gtk/gtkbrowserextension.c +++ b/xparts/src/gtk/gtkbrowserextension.c @@ -121,7 +121,7 @@ gboolean gtk_xbrowserextension_dcop_process( DcopObject *obj, const char *fun, d { GtkXBrowserExtension *part = GTK_XBROWSEREXTENSION(obj); GtkXBrowserExtensionPrivate *d = (GtkXBrowserExtensionPrivate *)part->data; - GtkXBrowserExtensionClass *klass = GTK_XBROWSEREXTENSION_CLASS(GTK_OBJECT(part)->klass); + GtkXBrowserExtensionClass *klass = GTK_XBROWSEREXTENSION_CLASS(GTK_OBJECT_GET_CLASS(part)); if ( strcmp( fun, "saveState()" ) == 0 ) { diff --git a/xparts/src/gtk/gtkpart.c b/xparts/src/gtk/gtkpart.c index 655b7aa5..2a214123 100644 --- a/xparts/src/gtk/gtkpart.c +++ b/xparts/src/gtk/gtkpart.c @@ -22,7 +22,7 @@ struct _GtkXPartPrivate { }; #define P ((GtkXPartPrivate *)(part->data)) -#define CLASS(obj) GTK_XPART_CLASS(GTK_OBJECT(obj)->klass) +#define CLASS(obj) GTK_XPART_CLASS(GTK_OBJECT_GET_CLASS(obj)) /* class and instance initialization */ @@ -131,7 +131,7 @@ gboolean gtk_xpart_dcop_process( DcopObject *obj, const char *fun, dcop_data *da { GtkXPart *part = GTK_XPART(obj); GtkXPartPrivate *d = (GtkXPartPrivate *)part->data; - GtkXPartClass *klass = GTK_XPART_CLASS(GTK_OBJECT(part)->klass); + GtkXPartClass *klass = GTK_XPART_CLASS(GTK_OBJECT_GET_CLASS(part)); gboolean b; if ( strcmp( fun, "windowId()" ) == 0 ) diff --git a/xparts/src/kde/xparthost_kpart.cpp b/xparts/src/kde/xparthost_kpart.cpp index 77def3ff..807ada77 100644 --- a/xparts/src/kde/xparthost_kpart.cpp +++ b/xparts/src/kde/xparthost_kpart.cpp @@ -42,11 +42,11 @@ DCOPRef XPartHost_KPart::registerXPart( const DCOPRef &part ) assert( m_stub == 0 ); m_stub = new XPart_stub( part.app(), part.object() ); + m_stub->show(); kdDebug() << "embedding window " << m_stub->windowId() << endl; embed->embed( static_cast( m_stub->windowId() ) ); - m_stub->show(); embed->show(); DCOPRef ref = m_stub->queryExtension("browserextension"); if( !ref.isNull() ) { -- cgit v1.2.1