changeset 13109:079f7a452e3a

[gaim-migrate @ 15471] Increase the display size of a few icons by one or two pixels. I think 32 and 16 are much more standard sizes for icons, and this makes the away icon scale better in the gtkstatusbox. It now looks the same as the one displayed in the buddy list committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 03 Feb 2006 03:51:08 +0000
parents 8695e933ad64
children 0e7f19583825
files src/gtkutils.c src/gtkutils.h
diffstat 2 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkutils.c	Fri Feb 03 01:25:31 2006 +0000
+++ b/src/gtkutils.c	Fri Feb 03 03:51:08 2006 +0000
@@ -1579,8 +1579,8 @@
 	pixbuf = gdk_pixbuf_new_from_file(filename, NULL);
 	g_free(filename);
 
-	scaled = gdk_pixbuf_scale_simple(pixbuf, 30*scale_factor,
-				30*scale_factor, GDK_INTERP_BILINEAR);
+	scaled = gdk_pixbuf_scale_simple(pixbuf, 32*scale_factor,
+				32*scale_factor, GDK_INTERP_BILINEAR);
 	g_object_unref(pixbuf);
 
 	return scaled;
@@ -1668,8 +1668,8 @@
 	if (orig == NULL)
 		return NULL;
 
-	pixbuf = gdk_pixbuf_scale_simple(orig, 30*scale_factor,
-					30*scale_factor, GDK_INTERP_BILINEAR);
+	pixbuf = gdk_pixbuf_scale_simple(orig, 32*scale_factor,
+					32*scale_factor, GDK_INTERP_BILINEAR);
 	g_object_unref(G_OBJECT(orig));
 
 	return overlay_status_onto_icon(pixbuf, primitive);
--- a/src/gtkutils.h	Fri Feb 03 01:25:31 2006 +0000
+++ b/src/gtkutils.h	Fri Feb 03 03:51:08 2006 +0000
@@ -357,10 +357,10 @@
  *
  * @param account      The account.
  * @param scale_factor The amount to scale to the original image.
- *                     The default size is 30x30 pixels.  A scale
+ *                     The default size is 32x32 pixels.  A scale
  *                     factor of 1 means no scaling will be done.
  *                     A scale factor of 0.5 means the length
- *                     and width will be 15 pixels each.
+ *                     and width will be 16 pixels each.
  *
  * @return A newly-created pixbuf with a reference count of 1,
  *         or NULL if any of several error conditions occurred:
@@ -378,10 +378,10 @@
  * @param account      The account.
  * @param status_type  The status type of the emblem to overlay.
  * @param scale_factor The amount to scale to the original image.
- *                     The default size is 30x30 pixels.  A scale
+ *                     The default size is 32x32 pixels.  A scale
  *                     factor of 1 means no scaling will be done.
  *                     A scale factor of 0.5 means the length
- *                     and width will be 15 pixels each.
+ *                     and width will be 16 pixels each.
  *
  * @return A newly-created pixbuf with a reference count of 1,
  *         or NULL if any of several error conditions occurred:
@@ -398,10 +398,10 @@
  *
  * @param status_type  The status type to set the emblem for.
  * @param scale_factor The amount to scale to the original image.
- *                     The default size is 30x30 pixels.  A scale
+ *                     The default size is 32x32 pixels.  A scale
  *                     factor of 1 means no scaling will be done.
  *                     A scale factor of 0.5 means the length
- *                     and width will be 15 pixels each.
+ *                     and width will be 16 pixels each.
  *
  * @return A newly-created pixbuf with a reference count of 1,
  *         or NULL if any of several error conditions occurred: