finch/plugins/gntclipboard.c

changeset 15954
f59ab2031ceb
parent 15924
1e6022a75ba9
child 16748
f8e1573bfde0
equal deleted inserted replaced
15953:dfb69139ddf9 15954:f59ab2031ceb
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);

mercurial