| 198 xmppconsole_append_xmlnode(console, *packet, 0, &iter, |
199 xmppconsole_append_xmlnode(console, *packet, 0, &iter, |
| 199 console->tags.incoming); |
200 console->tags.incoming); |
| 200 } |
201 } |
| 201 |
202 |
| 202 static void |
203 static void |
| 203 purple_xmlnode_sent_cb(PurpleConnection *gc, char **packet, gpointer null) |
204 purple_xmlnode_sent_cb(PurpleConnection *gc, char **packet, |
| |
205 G_GNUC_UNUSED gpointer data) |
| 204 { |
206 { |
| 205 GtkTextIter iter; |
207 GtkTextIter iter; |
| 206 PurpleXmlNode *node; |
208 PurpleXmlNode *node; |
| 207 |
209 |
| 208 if (console == NULL || console->gc != gc) { |
210 if (console == NULL || console->gc != gc) { |
| 342 |
344 |
| 343 entry_changed_cb(console->entry_buffer, console); |
345 entry_changed_cb(console->entry_buffer, console); |
| 344 } |
346 } |
| 345 |
347 |
| 346 static void |
348 static void |
| 347 iq_clicked_cb(GtkWidget *w, gpointer data) |
349 iq_clicked_cb(G_GNUC_UNUSED GtkWidget *w, gpointer data) |
| 348 { |
350 { |
| 349 PidginXmppConsole *console = data; |
351 PidginXmppConsole *console = data; |
| 350 GtkStringObject *obj = NULL; |
352 GtkStringObject *obj = NULL; |
| 351 const gchar *to, *type; |
353 const gchar *to, *type; |
| 352 gchar *stanza; |
354 gchar *stanza; |
| 372 gtk_drop_down_set_selected(console->iq.type, 0); |
374 gtk_drop_down_set_selected(console->iq.type, 0); |
| 373 gtk_menu_button_popdown(console->iq.button); |
375 gtk_menu_button_popdown(console->iq.button); |
| 374 } |
376 } |
| 375 |
377 |
| 376 static void |
378 static void |
| 377 presence_clicked_cb(GtkWidget *w, gpointer data) |
379 presence_clicked_cb(G_GNUC_UNUSED GtkWidget *w, gpointer data) |
| 378 { |
380 { |
| 379 PidginXmppConsole *console = data; |
381 PidginXmppConsole *console = data; |
| 380 GtkStringObject *obj = NULL; |
382 GtkStringObject *obj = NULL; |
| 381 const gchar *to, *status, *priority; |
383 const gchar *to, *status, *priority; |
| 382 const gchar *type, *show; |
384 const gchar *type, *show; |
| 433 gtk_editable_set_text(GTK_EDITABLE(console->presence.priority), "0"); |
435 gtk_editable_set_text(GTK_EDITABLE(console->presence.priority), "0"); |
| 434 gtk_menu_button_popdown(console->presence.button); |
436 gtk_menu_button_popdown(console->presence.button); |
| 435 } |
437 } |
| 436 |
438 |
| 437 static void |
439 static void |
| 438 message_clicked_cb(GtkWidget *w, gpointer data) |
440 message_clicked_cb(G_GNUC_UNUSED GtkWidget *w, gpointer data) |
| 439 { |
441 { |
| 440 PidginXmppConsole *console = data; |
442 PidginXmppConsole *console = data; |
| 441 GtkStringObject *obj = NULL; |
443 GtkStringObject *obj = NULL; |
| 442 const gchar *to, *body, *thread, *subject, *type; |
444 const gchar *to, *body, *thread, *subject, *type; |
| 443 GString *stanza = NULL; |
445 GString *stanza = NULL; |
| 504 |
506 |
| 505 /****************************************************************************** |
507 /****************************************************************************** |
| 506 * GObject Implementation |
508 * GObject Implementation |
| 507 *****************************************************************************/ |
509 *****************************************************************************/ |
| 508 static void |
510 static void |
| 509 pidgin_xmpp_console_class_finalize(PidginXmppConsoleClass *klass) { |
511 pidgin_xmpp_console_class_finalize(G_GNUC_UNUSED PidginXmppConsoleClass *klass) { |
| 510 } |
512 } |
| 511 |
513 |
| 512 static void |
514 static void |
| 513 pidgin_xmpp_console_class_init(PidginXmppConsoleClass *klass) { |
515 pidgin_xmpp_console_class_init(PidginXmppConsoleClass *klass) { |
| 514 GtkWidgetClass *widget_class = GTK_WIDGET_CLASS(klass); |
516 GtkWidgetClass *widget_class = GTK_WIDGET_CLASS(klass); |
| 614 |
616 |
| 615 gtk_window_present(GTK_WINDOW(console)); |
617 gtk_window_present(GTK_WINDOW(console)); |
| 616 } |
618 } |
| 617 |
619 |
| 618 static GPluginPluginInfo * |
620 static GPluginPluginInfo * |
| 619 xmpp_console_query(GError **error) |
621 xmpp_console_query(G_GNUC_UNUSED GError **error) |
| 620 { |
622 { |
| 621 GActionEntry entries[] = { |
623 GActionEntry entries[] = { |
| 622 { |
624 { |
| 623 .name = "console", |
625 .name = "console", |
| 624 .activate = create_console, |
626 .activate = create_console, |