Mercurial > pidgin
changeset 10537:74180743304a
[gaim-migrate @ 11890]
Compile warning fix and get rid of some extra whitespace
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 22 Jan 2005 19:40:30 +0000 |
parents | c047cf7e18ba |
children | f348b3439ce4 |
files | src/gtkconv.c src/gtkimhtml.c src/gtkimhtml.h |
diffstat | 3 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkconv.c Sat Jan 22 05:22:48 2005 +0000 +++ b/src/gtkconv.c Sat Jan 22 19:40:30 2005 +0000 @@ -5207,28 +5207,28 @@ g_object_ref(G_OBJECT(smiley->icon)); gtk_imhtml_associate_smiley(GTK_IMHTML(gtkconv->imhtml), sml, smiley); - + return TRUE; } -static void +static void gaim_gtkconv_custom_smiley_write(GaimConversation *conv, const char *smile, const char * data, gint64 size) { GaimGtkConversation *gtkconv; GtkIMHtmlSmiley *smiley; - GdkPixbufLoader *loader; + GdkPixbufLoader *loader; const char *sml; sml = gaim_account_get_protocol_name(conv->account); gtkconv = GAIM_GTK_CONVERSATION(conv); smiley = gtk_imhtml_smiley_get(GTK_IMHTML(gtkconv->imhtml), sml, smile); - if (!smiley) + if (!smiley) return; - + loader = smiley->loader; - if (!loader) + if (!loader) return; gdk_pixbuf_loader_write(loader, data, size, NULL); @@ -5249,14 +5249,14 @@ gtkconv = GAIM_GTK_CONVERSATION(conv); smiley = gtk_imhtml_smiley_get(GTK_IMHTML(gtkconv->imhtml), sml, smile); - if (!smiley) + if (!smiley) return; loader = smiley->loader; - if (!loader) + if (!loader) return; - + gaim_debug_info("gtkconv", "About to close the smiley pixbuf\n"); gdk_pixbuf_loader_close(loader, NULL);
--- a/src/gtkimhtml.c Sat Jan 22 05:22:48 2005 +0000 +++ b/src/gtkimhtml.c Sat Jan 22 19:40:30 2005 +0000 @@ -1484,7 +1484,7 @@ void gtk_imhtml_associate_smiley (GtkIMHtml *imhtml, - gchar *sml, + const gchar *sml, GtkIMHtmlSmiley *smiley) { GtkSmileyTree *tree;
--- a/src/gtkimhtml.h Sat Jan 22 05:22:48 2005 +0000 +++ b/src/gtkimhtml.h Sat Jan 22 19:40:30 2005 +0000 @@ -265,7 +265,7 @@ * @param sml The name of the smiley category. * @param smiley The GtkIMSmiley to associate. */ -void gtk_imhtml_associate_smiley(GtkIMHtml *imhtml, gchar *sml, GtkIMHtmlSmiley *smiley); +void gtk_imhtml_associate_smiley(GtkIMHtml *imhtml, const gchar *sml, GtkIMHtmlSmiley *smiley); /** * Removes all smileys associated with a GTK IM/HTML.