summaryrefslogtreecommitdiff
path: root/pidgin/gtksmiley.c
diff options
context:
space:
mode:
authorSadrul Habib Chowdhury <sadrul@pidgin.im>2008-02-25 02:43:06 +0000
committerSadrul Habib Chowdhury <sadrul@pidgin.im>2008-02-25 02:43:06 +0000
commit9f5fb51bd1b0fdbe3d3999aa35786921eaa7e477 (patch)
tree5a96eac251d98ea27c70fe73d5aedd38f5dcc914 /pidgin/gtksmiley.c
parent60b8e5f5ebe62a789d59c9998529ef5a9c7ea693 (diff)
downloadpidgin-9f5fb51bd1b0fdbe3d3999aa35786921eaa7e477.tar.gz
Hide PurpleSmiley internals.
Diffstat (limited to 'pidgin/gtksmiley.c')
-rw-r--r--pidgin/gtksmiley.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pidgin/gtksmiley.c b/pidgin/gtksmiley.c
index ce25f78f64..2e0c9af7ee 100644
--- a/pidgin/gtksmiley.c
+++ b/pidgin/gtksmiley.c
@@ -86,12 +86,12 @@ static GtkIMHtmlSmiley *smiley_purple_to_gtkimhtml(PurpleSmiley *smiley)
gchar *filename;
const gchar *file;
- file = purple_imgstore_get_filename(smiley->img);
+ file = purple_imgstore_get_filename(purple_smiley_get_stored_image(smiley));
filename = g_build_filename(purple_smileys_get_storing_dir(),file, NULL);
gtksmiley = g_new0(GtkIMHtmlSmiley,1);
- gtksmiley->smile = g_strdup(smiley->shortcut);
+ gtksmiley->smile = g_strdup(purple_smiley_get_shortcut(smiley));
gtksmiley->hidden = FALSE;
gtksmiley->file = filename;
gtksmiley->flags = GTK_IMHTML_SMILEY_CUSTOM;
@@ -128,7 +128,7 @@ void pidgin_smiley_del_from_list(PurpleSmiley *smiley)
for (; list; list = list->next) {
gtksmiley = (GtkIMHtmlSmiley*)list->data;
- if (strcmp(gtksmiley->smile, smiley->shortcut))
+ if (strcmp(gtksmiley->smile, purple_smiley_get_shortcut(smiley)))
continue;
destroy_gtksmiley(gtksmiley);
@@ -417,7 +417,7 @@ static void store_smiley_add(PurpleSmiley *smiley)
gtk_list_store_set(smiley_manager->model, &iter,
ICON, sized_smiley,
- SHORTCUT, smiley->shortcut,
+ SHORTCUT, purple_smiley_get_shortcut(smiley),
DATA, NULL,
-1);