Mercurial > pidgin
diff src/protocols/sametime/sametime.c @ 12166:d6417efb990c
[gaim-migrate @ 14467]
g_str_has_prefix is only available in glib >= 2.2.0. we already have a
wrapper for this in gaim, but I guess it's not legitimate to use that in
meanwhile, so I duplicated the wrapper there too. code reuse at it's worst.
committer: Tailor Script <tailor@pidgin.im>
| author | Stu Tomlinson <stu@nosnilmot.com> |
|---|---|
| date | Sat, 19 Nov 2005 18:09:51 +0000 |
| parents | 9ce0a5f9443b |
| children | 4d3119205a33 |
line wrap: on
line diff
--- a/src/protocols/sametime/sametime.c Sat Nov 19 18:07:19 2005 +0000 +++ b/src/protocols/sametime/sametime.c Sat Nov 19 18:09:51 2005 +0000 @@ -717,7 +717,7 @@ static gboolean buddy_is_external(GaimBuddy *b) { g_return_val_if_fail(b != NULL, FALSE); - return g_str_has_prefix(b->name, "@E "); + return gaim_str_has_prefix(b->name, "@E "); } @@ -2658,7 +2658,7 @@ if(! type) { ; /* feh */ - } else if(g_str_has_prefix(type, "image")) { + } else if(gaim_str_has_prefix(type, "image")) { /* put images into the image store */ guchar *d_dat; @@ -2683,7 +2683,7 @@ /* recall the image for dereferencing later */ images = g_list_append(images, GINT_TO_POINTER(img)); - } else if(g_str_has_prefix(type, "text")) { + } else if(gaim_str_has_prefix(type, "text")) { /* concatenate all the text parts together */ guchar *data; @@ -4040,7 +4040,7 @@ str = g_string_new(NULL); - if(g_str_has_prefix(who, "@E ")) { + if(gaim_str_has_prefix(who, "@E ")) { g_string_append(str, _("<b>External User</b><br>")); } @@ -4452,7 +4452,7 @@ srvc = pd->srvc_resolve; /* catch external buddies. They won't be in the resolve service */ - if(g_str_has_prefix(buddy->name, "@E ")) { + if(gaim_str_has_prefix(buddy->name, "@E ")) { buddy_add(pd, buddy); return; }
