socket/plug question



Hi again,

For my application, I would like to implement an X-application (not Gtk) as
a widget into my own application. I thought that using the socket/plu
widgets would be a good idea.
I have download the socket/plug example from
ftp.gtk.org/pub/users/otaylor/plugsocket-0.3.tar.gz. I also tried
implementing this into my own application. Basically, it works, and I think
I understand the code a bit. I have two things I don't understand however.

1) The example uses a button which you have to click. I just want the
widget to be there from the beginning, so without having to click a button.
I tried "add_child(window);" in my main(agrc, argv), but then, it dumps
core. Of course, I can make the button, not show it and then execute a
function to make it being clicked on startup or something (I cannot find
the function for this in the Gtk tutorial, but I know it exists -
gtk_emit_signal(GTK_WIDGET(button), CLICKED); or something?), that would
also do the trick, but that's not really a nice way, right?

2) implementing the child process in the example child socket (which is
gtk) is okay. But now, how would I implement the X-application I really
want to implement (it's called XawTV and it's not gtk)? I think adding the
few lines of code in testsocket_child.c won't work, simply because it is
NOT a Gtk-application. How would I have to adapt it to get it to be plugged
into my main application? Or can anyone give me a link with good
documentation about this subject?

Thanks in advance for helping me again :-),

Ronald Bultje





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]