# HG changeset patch # User Sean Egan # Date 1022814047 0 # Node ID 51e55584b71eaacc31d908744159cd532efdea85 # Parent e71ade93b98fb21ae6199e790ee26081b7f5bf6b [gaim-migrate @ 3304] A hack by Chris Blizzard to fix applet not showing up right when you start it up. committer: Tailor Script diff -r e71ade93b98f -r 51e55584b71e ChangeLog --- 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) diff -r e71ade93b98f -r 51e55584b71e src/applet.c --- 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