[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: How to test if X-server is there
- From: Emmanuel Saracco <esaracco noos fr>
- To: gtk-app-devel-list gnome org
- Subject: Re: How to test if X-server is there
- Date: Tue, 13 Jul 2004 11:41:16 +0200
Le mar 13/07/2004 à 11:43, G Hasse a écrit :
> Hello,
hi,
> I have an application that will display its content on
> a remote X-server. Can I test if the X-server is up
> and running.
>
> Something in line with
>
> if ( ( display=XOpenDisplay(display_name)) == NULL )
> {
> (void) fprintf( stderr,
> "basicwin: cannot connet to X server %s\n",
> XDisplayName(display_name));
> exit ( -1 );
> }
>
> but from within Gtk?
with something like: gdk_x11_lookup_xdisplay ()?
bye
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]