/soc/2013/ankitkv/gobjectification: e6febbd8cbec: Renamed purple...
Ankit Vani
a at nevitus.org
Sat Aug 31 15:28:41 EDT 2013
Changeset: e6febbd8cbecd8d7883aa9c468d52b4a1869cafe
Author: Ankit Vani <a at nevitus.org>
Date: 2013-09-01 00:38 +0530
Branch: soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/e6febbd8cbec
Description:
Renamed purple_buddy_icon_get_scale_size to purple_buddy_icon_spec_get_scaled_size
diffstat:
libpurple/plugins/perl/common/BuddyIcon.xs | 2 +-
pidgin/gtkblist.c | 2 +-
pidgin/gtkutils.c | 4 ++--
pidgin/gtkutils.h | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diffs (57 lines):
diff --git a/libpurple/plugins/perl/common/BuddyIcon.xs b/libpurple/plugins/perl/common/BuddyIcon.xs
--- a/libpurple/plugins/perl/common/BuddyIcon.xs
+++ b/libpurple/plugins/perl/common/BuddyIcon.xs
@@ -40,7 +40,7 @@ purple_buddy_icon_get_extension(icon)
Purple::Buddy::Icon icon
void
-purple_buddy_icon_get_scale_size(spec, width, height)
+purple_buddy_icon_spec_get_scaled_size(spec, width, height)
Purple::Buddy::Icon::Spec spec
int *width
int *height
diff --git a/pidgin/gtkblist.c b/pidgin/gtkblist.c
--- a/pidgin/gtkblist.c
+++ b/pidgin/gtkblist.c
@@ -2769,7 +2769,7 @@ static GdkPixbuf *pidgin_blist_get_buddy
scale_height = orig_height = gdk_pixbuf_get_height(buf);
if (protocol && purple_protocol_get_icon_spec(protocol).scale_rules & PURPLE_ICON_SCALE_DISPLAY)
- purple_buddy_icon_get_scale_size(purple_protocol_get_icon_spec(protocol), &scale_width, &scale_height);
+ purple_buddy_icon_spec_get_scaled_size(purple_protocol_get_icon_spec(protocol), &scale_width, &scale_height);
if (scaled || scale_height > 200 || scale_width > 200) {
GdkPixbuf *tmpbuf;
diff --git a/pidgin/gtkutils.c b/pidgin/gtkutils.c
--- a/pidgin/gtkutils.c
+++ b/pidgin/gtkutils.c
@@ -1610,7 +1610,7 @@ void pidgin_buddy_icon_get_scale_size(Gd
if ((spec == NULL) || !(spec->scale_rules & rules))
return;
- purple_buddy_icon_get_scale_size(spec, width, height);
+ purple_buddy_icon_spec_get_scaled_size(spec, width, height);
/* and now for some arbitrary sanity checks */
if(*width > 100)
@@ -2333,7 +2333,7 @@ pidgin_convert_buddy_icon(PurpleProtocol
(orig_width < spec->min_width || orig_width > spec->max_width ||
orig_height < spec->min_height || orig_height > spec->max_height))
{
- purple_buddy_icon_get_scale_size(spec, &new_width, &new_height);
+ purple_buddy_icon_spec_get_scaled_size(spec, &new_width, &new_height);
g_object_unref(G_OBJECT(pixbuf));
pixbuf = gdk_pixbuf_scale_simple(original, new_width, new_height, GDK_INTERP_HYPER);
diff --git a/pidgin/gtkutils.h b/pidgin/gtkutils.h
--- a/pidgin/gtkutils.h
+++ b/pidgin/gtkutils.h
@@ -496,7 +496,7 @@ void pidgin_treeview_popup_menu_position
void pidgin_dnd_file_manage(GtkSelectionData *sd, PurpleAccount *account, const char *who);
/**
- * Convenience wrapper for purple_buddy_icon_get_scale_size
+ * Convenience wrapper for purple_buddy_icon_spec_get_scaled_size
*/
void pidgin_buddy_icon_get_scale_size(GdkPixbuf *buf, PurpleBuddyIconSpec *spec, PurpleIconScaleRules rules, int *width, int *height);
More information about the Commits
mailing list