changeset 3286:51e55584b71e

[gaim-migrate @ 3304] A hack by Chris Blizzard to fix applet not showing up right when you start it up. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Fri, 31 May 2002 03:00:47 +0000
parents e71ade93b98f
children d3ffe008ec8a
files ChangeLog src/applet.c
diffstat 2 files changed, 15 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri May 31 02:58:07 2002 +0000
+++ b/ChangeLog	Fri May 31 03:00:47 2002 +0000
@@ -24,6 +24,7 @@
 	* Aliases in buddy ticker
 	* Perl scripts can play Gaim sounds (thanks Andrew Rodland)
 	* Internal sounds can be played by commands (thanks Lex Spoon)
+	* Auto-login item in applet menu (thanks Chris Boyle)
 	
 version 0.58 (05/13/2002):
 	* Bulgarian translation added (Thanks, Igel Itzo)
@@ -61,7 +62,7 @@
 	* Secure MSN logins (added in 0.57) no longer blow up
 	  on Solaris.
 	* Timezone support improved.
-
+	 
 version 0.57 (04/25/2002):
 	* New authorization method for Yahoo!
 	* Polish translation updated (Thanks Przemyslaw Sulek)
--- a/src/applet.c	Fri May 31 02:58:07 2002 +0000
+++ b/src/applet.c	Fri May 31 03:00:47 2002 +0000
@@ -153,11 +153,23 @@
 }
 
 #ifdef HAVE_PANEL_PIXEL_SIZE
+
+static gint applet_update_pixel_size(gpointer data)
+{
+        update_applet();
+	return FALSE;
+}
+
 static void applet_change_pixel_size(GtkWidget *w, int size, gpointer data)
 {
 	sizehint = size;
 	gtk_widget_set_usize(icon, sizehint, sizehint);
-	update_applet();
+	/* we need to wait for the mainloop to finish updating the
+	   background pixel size, otherwise we'll end up getting the
+	   wrong background size when loading and drawing the new
+	   icon */
+	gtk_timeout_add(100, applet_update_pixel_size,
+			NULL);
 }
 #endif