Mercurial > pidgin.yaz
comparison src/dialogs.c @ 7736:662a33ce4343
[gaim-migrate @ 8381]
This does protocol-specific smileys when wysiwyging. It will also reflect
changes in smiley theme.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Thu, 04 Dec 2003 05:23:19 +0000 |
parents | edebf99a5ec4 |
children | d691cb95ee67 |
comparison
equal
deleted
inserted
replaced
7735:edebf99a5ec4 | 7736:662a33ce4343 |
---|---|
1570 | 1570 |
1571 void insert_smiley_text(GtkWidget *widget, GaimConversation *c) | 1571 void insert_smiley_text(GtkWidget *widget, GaimConversation *c) |
1572 { | 1572 { |
1573 GaimGtkConversation *gtkconv; | 1573 GaimGtkConversation *gtkconv; |
1574 char *smiley_text = g_object_get_data(G_OBJECT(widget), "smiley_text"); | 1574 char *smiley_text = g_object_get_data(G_OBJECT(widget), "smiley_text"); |
1575 GtkTextMark *select_mark, *insert_mark; | 1575 GaimProtocol protocol = gaim_account_get_protocol(gaim_conversation_get_account(c)); |
1576 GtkTextIter select_iter, insert_iter; | 1576 GaimPlugin *proto = gaim_find_prpl(protocol); |
1577 | 1577 |
1578 gtkconv = GAIM_GTK_CONVERSATION(c); | 1578 gtkconv = GAIM_GTK_CONVERSATION(c); |
1579 | 1579 |
1580 gtk_imhtml_insert_smiley(GTK_IMHTML(gtkconv->entry), smiley_text); | 1580 gtk_imhtml_insert_smiley(GTK_IMHTML(gtkconv->entry), proto->info->name, smiley_text); |
1581 | 1581 |
1582 close_smiley_dialog(NULL, c); | 1582 close_smiley_dialog(NULL, c); |
1583 } | 1583 } |
1584 | 1584 |
1585 static void add_smiley(GaimConversation *c, GtkWidget *table, int row, int col, char *filename, char *face) | 1585 static void add_smiley(GaimConversation *c, GtkWidget *table, int row, int col, char *filename, char *face) |