gtkmozembed signaling
Philippe Laporte <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.embedding,gmane.comp.mozilla.devel.gtk |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Hi,
I have a small question about some design in the gtkmozembed code.
For the LINK_MESSAGE signal
The signaling code has
mLinkMessage = aStatus;
gtk_signal_emit(GTK_OBJECT(mOwner->mOwningWidget),
moz_embed_signals[LINK_MESSAGE]);
The callback sequence then subsequently executes:
if (embedPrivate->mWindow){
*getter_Copies(embedString) =
NEW_TOOLKIT_STRING(embedPrivate->mWindow->mLinkMessage);
retval = strdup(embedString);
}
return retval;
Why do you not pass the link message string as an argument to the
handler in the first place?
Since for OPEN_URI, you do:
gtk_signal_emit(GTK_OBJECT(mOwner->mOwningWidget),
moz_embed_signals[OPEN_URI], specString.get(), &return_val);
What am I missing?
Thanks,
Philippe