Mercurial > pidgin.yaz
diff pidgin/gtkimhtml.c @ 27120:804141095de5
Allow adding received animated custom smileys to locale custom smiley
collection. Closes #9066.
committer: Sadrul Habib Chowdhury <imadil@gmail.com>
author | Andrea Piccinelli <frasten@gmail.com> |
---|---|
date | Fri, 05 Jun 2009 08:23:18 +0000 |
parents | d9f2a7f18759 |
children | 54de7746e148 fb593c327870 |
line wrap: on
line diff
--- a/pidgin/gtkimhtml.c Fri Jun 05 05:44:44 2009 +0000 +++ b/pidgin/gtkimhtml.c Fri Jun 05 08:23:18 2009 +0000 @@ -3867,12 +3867,15 @@ } static void -gtk_imhtml_custom_smiley_save(GtkWidget *w, GtkIMHtmlImage *image) -{ +gtk_imhtml_custom_smiley_save(GtkWidget *w, GtkIMHtmlImageSave *save) +{ + GtkIMHtmlImage *image = (GtkIMHtmlImage *)save->image; + /* Create an add dialog */ PidginSmiley *editor = pidgin_smiley_edit(NULL, NULL); pidgin_smiley_editor_set_shortcut(editor, image->filename); pidgin_smiley_editor_set_image(editor, image->pixbuf); + pidgin_smiley_editor_set_data(editor, save->data, save->datasize); } /* @@ -3907,7 +3910,7 @@ item = gtk_image_menu_item_new_with_mnemonic(_("_Add Custom Smiley...")); gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(item), img); g_signal_connect(G_OBJECT(item), "activate", - G_CALLBACK(gtk_imhtml_custom_smiley_save), image); + G_CALLBACK(gtk_imhtml_custom_smiley_save), save); gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); }