Re: Gnome App and RPC



Hello,

On Wed, 2001-11-07 at 06:17, Chris Nystrom wrote:
> 
> 
> I am working on a Gnome graphical application that registers some RPC
> calls. Basically I want an app on another server to call my app to display
> something graphically. I believe this is basically how X works.
> 
> However, Gnome requires the gtk_main() function and the RPC functions need
> the svc_run() function. Unfortunatly neither return during normal
> operation, so how can I do both? Will I need fork off a process?
> 

Well, instead of using gtk_main(), you could use
gtk_main_iteration_do(FALSE), to do only one iteration of the loop
at a time.  Refer to:

http://developer.gnome.org/doc/API/gtk/gtk-general.html#GTK-MAIN-ITERATION-DO

for more info on the function.

Hope that helps.

See ya

     Charles Iliya Krempeaux
     tnt @ linux.ca
     ckrempea @ alumni.sfu.ca




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