Mercurial > emacs
comparison src/xterm.c @ 52962:19c95cdf2c4a
* xterm.c (x_term_init): For GTK part, increase x_initialized
to check for more than one display. Use error instead of return 0.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Fri, 31 Oct 2003 22:04:05 +0000 |
parents | d08832a11cfd |
children | 7171810ff406 |
comparison
equal
deleted
inserted
replaced
52961:d9dc58d31ffb | 52962:19c95cdf2c4a |
---|---|
10202 GdkAtom atom; | 10202 GdkAtom atom; |
10203 | 10203 |
10204 /* GTK 2.0 can only handle one display, GTK 2.2 can handle more | 10204 /* GTK 2.0 can only handle one display, GTK 2.2 can handle more |
10205 than one, but this remains to be implemented. */ | 10205 than one, but this remains to be implemented. */ |
10206 if (x_initialized > 1) | 10206 if (x_initialized > 1) |
10207 return 0; | 10207 error("Sorry, the GTK port can only handle one display."); |
10208 ++x_initialized; | |
10208 | 10209 |
10209 for (argc = 0; argc < NUM_ARGV; ++argc) | 10210 for (argc = 0; argc < NUM_ARGV; ++argc) |
10210 argv[argc] = 0; | 10211 argv[argc] = 0; |
10211 | 10212 |
10212 argc = 0; | 10213 argc = 0; |