From 9080cee1e38a1c8d92c58e77fee974207287f6f6 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 4 Mar 2008 01:29:05 +0000 Subject: fix a redraw problem --- expose.patch | 15 +++++++++++++++ gnome-panel.spec | 7 ++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 expose.patch diff --git a/expose.patch b/expose.patch new file mode 100644 index 0000000..dd8aa3d --- /dev/null +++ b/expose.patch @@ -0,0 +1,15 @@ +diff -up gnome-panel-2.21.92/applets/clock/clock-map.c.expose gnome-panel-2.21.92/applets/clock/clock-map.c +--- gnome-panel-2.21.92/applets/clock/clock-map.c.expose 2008-03-03 20:26:50.000000000 -0500 ++++ gnome-panel-2.21.92/applets/clock/clock-map.c 2008-03-03 20:26:55.000000000 -0500 +@@ -247,8 +247,9 @@ clock_map_expose (GtkWidget *this, GdkEv + /* draw a simple outline */ + cairo_rectangle ( + cr, +- region.x + 0.5, region.y + 0.5, +- region.width - 1, region.height - 1); ++ allocation.x + 0.5, allocation.y + 0.5, ++ gdk_pixbuf_get_width (priv->rotated_map_pixbuf) - 1, ++ gdk_pixbuf_get_height (priv->rotated_map_pixbuf) - 1); + + cairo_set_source_rgb ( + cr, diff --git a/gnome-panel.spec b/gnome-panel.spec index 2f49405..3e6140a 100644 --- a/gnome-panel.spec +++ b/gnome-panel.spec @@ -22,7 +22,7 @@ Summary: GNOME panel Name: gnome-panel Version: 2.21.92 -Release: 4%{?dist} +Release: 5%{?dist} URL: http://www.gnome.org Source0: http://download.gnome.org/sources/gnome-panel/2.21/%{name}-%{version}.tar.bz2 @@ -115,6 +115,7 @@ Patch23: sunrise.patch Patch24: gnome-panel-2.21.92-allow-spurious-view-done-signals.patch Patch25: current.patch +Patch26: expose.patch Conflicts: gnome-power-manager < 2.15.3 @@ -165,6 +166,7 @@ Panel Applets using the libpanel-applet library. %patch23 -p1 -b .sunrise %patch24 -p1 -b .allow-spurious-view-done-signals %patch25 -p1 -b .current +%patch26 -p1 -b .expose . %{SOURCE6} @@ -349,6 +351,9 @@ fi %{_datadir}/gtk-doc/html/* %changelog +* Mon Mar 3 2008 Matthias Clasen - 2.21.92-5 +- Fix a redraw problem with the clock map + * Mon Mar 3 2008 Matthias Clasen - 2.21.92-4 - Make the clock applet handle multiple locations in the same timezone meaningfully -- cgit