| 23 * |
23 * |
| 24 * This code is mainly taken from Netscape's sample implementation of |
24 * This code is mainly taken from Netscape's sample implementation of |
| 25 * their protocol. Nifty. |
25 * their protocol. Nifty. |
| 26 * |
26 * |
| 27 */ |
27 */ |
| 28 |
28 #include "internal.h" |
| 29 |
29 |
| 30 #ifdef HAVE_CONFIG_H |
|
| 31 #include <config.h> |
|
| 32 #endif |
|
| 33 #ifdef _WIN32 |
|
| 34 #include <gdk/gdkwin32.h> |
|
| 35 #else |
|
| 36 #include <unistd.h> |
|
| 37 #ifndef HOST_NAME_MAX |
|
| 38 #define HOST_NAME_MAX 255 |
|
| 39 #endif |
|
| 40 #include <gdk/gdkx.h> |
|
| 41 #endif |
|
| 42 #include <stdio.h> |
|
| 43 #include <stdlib.h> |
|
| 44 #include <string.h> |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 #include <gtk/gtk.h> |
|
| 50 #include <gdk/gdkprivate.h> |
30 #include <gdk/gdkprivate.h> |
| 51 #include "gaim.h" |
31 |
| |
32 #include "debug.h" |
| 52 #include "notify.h" |
33 #include "notify.h" |
| 53 #include "prefs.h" |
34 #include "prefs.h" |
| |
35 #include "util.h" |
| 54 |
36 |
| 55 #ifndef _WIN32 |
37 #ifndef _WIN32 |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 #include <X11/Xlib.h> |
38 #include <X11/Xlib.h> |
| 61 #include <X11/Xatom.h> |
39 #include <X11/Xatom.h> |
| 62 |
|
| 63 |
40 |
| 64 static const char *progname = "gaim"; |
41 static const char *progname = "gaim"; |
| 65 static const char *expected_mozilla_version = "1.1"; |
42 static const char *expected_mozilla_version = "1.1"; |
| 66 |
43 |
| 67 #define MOZILLA_VERSION_PROP "_MOZILLA_VERSION" |
44 #define MOZILLA_VERSION_PROP "_MOZILLA_VERSION" |