Update of /cvsroot/gaim/gaim/src
In directory usw-pr-cvs1:/tmp/cvs-serv1199/src
Modified Files:
applet.c
Log Message:
A hack by Chris Blizzard to fix applet not showing up right when
you start it up.
Index: applet.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/applet.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- applet.c 16 May 2002 22:46:42 -0000 1.31
+++ applet.c 31 May 2002 03:00:47 -0000 1.32
@@ -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
|