[Galago-commits] r2960 - in trunk/notification-daemon: . src/themes/standard

galago-commits at freedesktop.org galago-commits at freedesktop.org
Fri Jan 12 23:07:20 PST 2007


Author: chipx86
Date: 2007-01-12 23:07:12 -0800 (Fri, 12 Jan 2007)
New Revision: 2960

Modified:
   trunk/notification-daemon/ChangeLog
   trunk/notification-daemon/src/themes/standard/theme.c
Log:
Don't return when painting the window if we don't have a width set, waiting for configure. This sometimes ends up with the context-sensitive notifications appearing in 0, 0. Instead, just grab the allocation width and height. It all feels hacky, but this seems to at least work.


Modified: trunk/notification-daemon/ChangeLog
===================================================================
--- trunk/notification-daemon/ChangeLog	2007-01-10 23:45:10 UTC (rev 2959)
+++ trunk/notification-daemon/ChangeLog	2007-01-13 07:07:12 UTC (rev 2960)
@@ -1,3 +1,12 @@
+Fri Jan 12 23:06:15 PST 2007  Christian Hammond <chipx86 at chipx86.com>
+
+	* src/themes/standard/theme.c:
+	  - Don't return when painting the window if we don't have a width set,
+	    waiting for configure. This sometimes ends up with the
+	    context-sensitive notifications appearing in 0, 0. Instead, just grab
+	    the allocation width and height. It all feels hacky, but this seems to
+	    at least work.
+
 Wed Jan 10 15:43:12 PST 2007  Christian Hammond <chipx86 at chipx86.com>
 
 	* src/themes/standard/theme.c:

Modified: trunk/notification-daemon/src/themes/standard/theme.c
===================================================================
--- trunk/notification-daemon/src/themes/standard/theme.c	2007-01-10 23:45:10 UTC (rev 2959)
+++ trunk/notification-daemon/src/themes/standard/theme.c	2007-01-13 07:07:12 UTC (rev 2960)
@@ -386,8 +386,8 @@
 			 WindowData *windata)
 {
 	if (windata->width == 0) {
-		/* We haven't seen configure_event yet. Bail for now. */
-		return FALSE;
+		windata->width = windata->win->allocation.width;
+		windata->height = windata->win->allocation.height;
 	}
 
 	fill_background(widget, windata);



More information about the galago-commits mailing list