finch/plugins/gntclipboard.c

branch
soc.2013.gobjectification.plugins
changeset 36782
64936dae41a3
parent 36754
8250d6be8c02
parent 34449
bbcb198650b7
child 37138
a5f26022c3a5
equal deleted inserted replaced
36781:8fb558514134 36782:64936dae41a3
136 { 136 {
137 #ifdef HAVE_X11 137 #ifdef HAVE_X11
138 if (!XOpenDisplay(NULL)) { 138 if (!XOpenDisplay(NULL)) {
139 purple_debug_warning("gntclipboard", "Couldn't find X display\n"); 139 purple_debug_warning("gntclipboard", "Couldn't find X display\n");
140 purple_notify_error(NULL, _("Error"), _("Error loading the plugin."), 140 purple_notify_error(NULL, _("Error"), _("Error loading the plugin."),
141 _("Couldn't find X display")); 141 _("Couldn't find X display"), NULL);
142 return FALSE; 142 return FALSE;
143 } 143 }
144 if (!getenv("WINDOWID")) { 144 if (!getenv("WINDOWID")) {
145 purple_debug_warning("gntclipboard", "Couldn't find window\n"); 145 purple_debug_warning("gntclipboard", "Couldn't find window\n");
146 purple_notify_error(NULL, _("Error"), _("Error loading the plugin."), 146 purple_notify_error(NULL, _("Error"), _("Error loading the plugin."),
147 _("Couldn't find window")); 147 _("Couldn't find window"), NULL);
148 return FALSE; 148 return FALSE;
149 } 149 }
150 sig_handle = g_signal_connect(G_OBJECT(gnt_get_clipboard()), "clipboard_changed", G_CALLBACK(clipboard_changed), NULL); 150 sig_handle = g_signal_connect(G_OBJECT(gnt_get_clipboard()), "clipboard_changed", G_CALLBACK(clipboard_changed), NULL);
151 return TRUE; 151 return TRUE;
152 #else 152 #else

mercurial