[Galago-commits] r2424 - in trunk/notification-daemon: .
themes/standard
galago-commits at freedesktop.org
galago-commits at freedesktop.org
Thu Jan 12 00:58:03 PST 2006
Author: chipx86
Date: 2006-01-12 00:58:01 -0800 (Thu, 12 Jan 2006)
New Revision: 2424
Modified:
trunk/notification-daemon/ChangeLog
trunk/notification-daemon/themes/standard/theme.c
Log:
Make sure we shape the window correctly every time we generate the arrow so that we don't leave artifacts.
Modified: trunk/notification-daemon/ChangeLog
===================================================================
--- trunk/notification-daemon/ChangeLog 2006-01-12 08:11:08 UTC (rev 2423)
+++ trunk/notification-daemon/ChangeLog 2006-01-12 08:58:01 UTC (rev 2424)
@@ -1,3 +1,9 @@
+Thu Jan 12 00:57:22 PST 2006 Christian Hammond <chipx86 at chipx86.com>
+
+ * themes/standard/theme.c:
+ - Make sure we shape the window correctly every time we generate the
+ arrow so that we don't leave artifacts.
+
Thu Jan 12 00:10:18 PST 2006 Christian Hammond <chipx86 at chipx86.com>
* src/engines.c:
Modified: trunk/notification-daemon/themes/standard/theme.c
===================================================================
--- trunk/notification-daemon/themes/standard/theme.c 2006-01-12 08:11:08 UTC (rev 2423)
+++ trunk/notification-daemon/themes/standard/theme.c 2006-01-12 08:58:01 UTC (rev 2424)
@@ -35,31 +35,31 @@
{
GdkColor color;
- windata->gc = gdk_gc_new(event->window);
+ windata->gc = gdk_gc_new(win->window);
gdk_color_parse("black", &color);
gdk_gc_set_rgb_fg_color(windata->gc, &color);
}
- gdk_drawable_get_size(event->window, &w, &h);
+ gdk_drawable_get_size(win->window, &w, &h);
if (windata->has_arrow)
{
- gdk_draw_polygon(event->window, windata->gc, FALSE,
+ gdk_draw_polygon(win->window, windata->gc, FALSE,
windata->arrow_points,
G_N_ELEMENTS(windata->arrow_points));
/* HACK! */
- gdk_draw_line(event->window, windata->gc,
+ gdk_draw_line(win->window, windata->gc,
ARROW_OFFSET + 1, ARROW_HEIGHT,
ARROW_OFFSET + ARROW_WIDTH / 2 + 1, 0);
- gdk_draw_line(event->window, windata->gc,
+ gdk_draw_line(win->window, windata->gc,
ARROW_OFFSET + ARROW_WIDTH / 2 - 1, 0,
ARROW_OFFSET + ARROW_WIDTH - 1, ARROW_HEIGHT);
- gdk_draw_line(event->window, windata->gc, 0, h - 1, w - 1, h - 1);
+ gdk_draw_line(win->window, windata->gc, 0, h - 1, w - 1, h - 1);
}
else
{
- gdk_draw_rectangle(event->window, windata->gc, FALSE,
+ gdk_draw_rectangle(win->window, windata->gc, FALSE,
0, 0, w - 1, h - 1);
}
@@ -268,6 +268,8 @@
*arrow_x = ARROW_OFFSET + ARROW_WIDTH / 2;
*arrow_y = 0;
+
+ draw_border(nw, NULL, windata);
}
void
More information about the galago-commits
mailing list