Mercurial > pidgin
comparison finch/plugins/gntclipboard.c @ 15891:886025ef7daa
Build gntclipboard plugin by default. If we don't want this, at least
include gntclipboard.c in EXTRA_DIST so it gets included in tarballs
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 24 Mar 2007 20:41:40 +0000 |
parents | 4c707efebc0c |
children | 30829e806dae |
comparison
equal
deleted
inserted
replaced
15890:5bd5af818afe | 15891:886025ef7daa |
---|---|
108 } | 108 } |
109 | 109 |
110 static gboolean | 110 static gboolean |
111 plugin_load(PurplePlugin *plugin) | 111 plugin_load(PurplePlugin *plugin) |
112 { | 112 { |
113 #ifdef HAVE_X11 | |
113 if (!XOpenDisplay(NULL)) { | 114 if (!XOpenDisplay(NULL)) { |
114 purple_debug_warning("gntclipboard", "Couldn't find X display\n"); | 115 purple_debug_warning("gntclipboard", "Couldn't find X display\n"); |
115 return FALSE; | 116 return FALSE; |
116 } | 117 } |
118 #endif | |
117 if (!getenv("WINDOWID")) { | 119 if (!getenv("WINDOWID")) { |
118 purple_debug_warning("gntclipboard", "Couldn't find window\n"); | 120 purple_debug_warning("gntclipboard", "Couldn't find window\n"); |
119 return FALSE; | 121 return FALSE; |
120 } | 122 } |
121 sig_handle = g_signal_connect(G_OBJECT(gnt_get_clipboard()), "clipboard_changed", G_CALLBACK(clipboard_changed), NULL); | 123 sig_handle = g_signal_connect(G_OBJECT(gnt_get_clipboard()), "clipboard_changed", G_CALLBACK(clipboard_changed), NULL); |