aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-05-09 14:45:50 +0800
committerChris Lahey <clahey@src.gnome.org>2000-05-09 14:45:50 +0800
commit3f6ddb02e81fcd90987bc19b5e495686443617f9 (patch)
treefcb7a90fdf98a46f352181f9ff0e46755cccd670 /e-util
parentc4e2cf13b8e7e97036f88fe5097cd50491fc1908 (diff)
downloadgsoc2013-evolution-3f6ddb02e81fcd90987bc19b5e495686443617f9.tar.gz
gsoc2013-evolution-3f6ddb02e81fcd90987bc19b5e495686443617f9.tar.zst
gsoc2013-evolution-3f6ddb02e81fcd90987bc19b5e495686443617f9.zip
Remove reflow idle when being destroyed.
2000-05-09 Christopher James Lahey <clahey@helixcode.com> * e-canvas.c: Remove reflow idle when being destroyed. svn path=/trunk/; revision=2934
Diffstat (limited to 'e-util')
-rw-r--r--e-util/ChangeLog4
-rw-r--r--e-util/e-canvas.c11
2 files changed, 15 insertions, 0 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index 984739812c..a4d3beeaae 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -1,3 +1,7 @@
+2000-05-09 Christopher James Lahey <clahey@helixcode.com>
+
+ * e-canvas.c: Remove reflow idle when being destroyed.
+
2000-05-06 Christopher James Lahey <clahey@helixcode.com>
* e-html-utils.c: Got rid of some warnings.
diff --git a/e-util/e-canvas.c b/e-util/e-canvas.c
index 8ca7d0f9b1..534e3fb1e8 100644
--- a/e-util/e-canvas.c
+++ b/e-util/e-canvas.c
@@ -23,6 +23,7 @@
#include <gnome.h>
#include "e-canvas.h"
static void e_canvas_init (ECanvas *card);
+static void e_canvas_destroy (GtkObject *object);
static void e_canvas_class_init (ECanvasClass *klass);
static void e_canvas_realize (GtkWidget *widget);
static gint e_canvas_key (GtkWidget *widget,
@@ -82,6 +83,8 @@ e_canvas_class_init (ECanvasClass *klass)
parent_class = gtk_type_class (gnome_canvas_get_type ());
+ object_class->destroy = e_canvas_destroy;
+
widget_class->key_press_event = e_canvas_key;
widget_class->key_release_event = e_canvas_key;
widget_class->focus_in_event = e_canvas_focus_in;
@@ -106,6 +109,14 @@ e_canvas_init (ECanvas *canvas)
{
}
+static void
+e_canvas_destroy (GtkObject *object)
+{
+ ECanvas *canvas = E_CANVAS(object);
+ if (canvas->idle_id)
+ g_source_remove(canvas->idle_id);
+}
+
GtkWidget *
e_canvas_new ()
{
='column1'>| | | PR: 117086 Tested by: -exp runs * Remove always-false/true conditions based on OSVERSION 500000edwin2007-10-041-7/+1 | * - Update X.org ports to 7.3.flz2007-09-142-4/+4 | | | | | | | | - Mark XFree86-4 as DEPRECATED with EXPIRATION_DATE set to 2007-12-25. I hope that nobody will be bored enough on Christmas to remove them on that day. Tested by: vehemens, Rene Ladan, Beech Rintoul, sarek on x11@ * Welcome bsd.perl.mk. Add support for constructs such as USE_PERL5=5.8.0+.linimon2007-09-081-1/+0 | | | | | | | | Drop support for antique perl. Work done by: gabor Sponsored by: Google Summer of Code 2007 Hat: portmgr * This plugin makes it possible to take periodical breaks from the computer everymiwi2007-09-075-0/+45 | | | | | | | X minutes. During breaks it locks your screen. It optionally allows you to postpone breaks for a certain time. WWW: http://goodies.xfce.org/projects/panel-plugins/xfce4-time-out-plugin