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




Reply via email to