Browse Source

* Clip the clock drawing areas.

(Old svn revision: 27449)
upstream/xfce4-panel-4.10.1
Nick Schermer 15 years ago
parent
commit
8f0a88a56b
  1. 4
      plugins/clock/clock-analog.c
  2. 4
      plugins/clock/clock-binary.c
  3. 4
      plugins/clock/clock-lcd.c

4
plugins/clock/clock-analog.c

@ -227,6 +227,10 @@ xfce_clock_analog_expose_event (GtkWidget *widget,
if (G_LIKELY (cr != NULL))
{
/* clip the drawing area */
gdk_cairo_rectangle (cr, &event->area);
cairo_clip (cr);
/* get the local time */
xfce_clock_util_get_localtime (&tm);

4
plugins/clock/clock-binary.c

@ -273,6 +273,10 @@ xfce_clock_binary_expose_event (GtkWidget *widget,
if (G_LIKELY (cr != NULL))
{
/* clip the drawing area */
gdk_cairo_rectangle (cr, &event->area);
cairo_clip (cr);
/* get the current time */
xfce_clock_util_get_localtime (&tm);

4
plugins/clock/clock-lcd.c

@ -312,6 +312,10 @@ xfce_clock_lcd_expose_event (GtkWidget *widget,
if (G_LIKELY (cr != NULL))
{
/* clip the drawing area */
gdk_cairo_rectangle (cr, &event->area);
cairo_clip (cr);
/* get the local time */
xfce_clock_util_get_localtime (&tm);

Loading…
Cancel
Save