aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@src.gnome.org>2000-04-12 12:50:02 +0800
committerMiguel de Icaza <miguel@src.gnome.org>2000-04-12 12:50:02 +0800
commit3ef836d8a78e2d9b9026810b3a5bb9600319342c (patch)
tree4e3c2c12a1ccf43c9495423a724201c8cb034f77 /e-util
parent7dbd2430deb3ffd3f16e2e9570b3649df13aaa4c (diff)
downloadgsoc2013-evolution-3ef836d8a78e2d9b9026810b3a5bb9600319342c.tar
gsoc2013-evolution-3ef836d8a78e2d9b9026810b3a5bb9600319342c.tar.gz
gsoc2013-evolution-3ef836d8a78e2d9b9026810b3a5bb9600319342c.tar.bz2
gsoc2013-evolution-3ef836d8a78e2d9b9026810b3a5bb9600319342c.tar.lz
gsoc2013-evolution-3ef836d8a78e2d9b9026810b3a5bb9600319342c.tar.xz
gsoc2013-evolution-3ef836d8a78e2d9b9026810b3a5bb9600319342c.tar.zst
gsoc2013-evolution-3ef836d8a78e2d9b9026810b3a5bb9600319342c.zip
Fix the embarassing cursor bug.
Fix the embarassing cursor bug. svn path=/trunk/; revision=2404
Diffstat (limited to 'e-util')
-rw-r--r--e-util/ChangeLog4
-rw-r--r--e-util/e-cursors.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index f02808dcfc..613b1fbc9d 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -1,3 +1,7 @@
+2000-04-12 Miguel de Icaza <miguel@gnu.org>
+
+ * e-cursors.c (e_cursor_get): Prevent next hacker to get bitten by this.
+
2000-04-10 Christopher James Lahey <clahey@helixcode.com>
* e-canvas.c: Added proper keyboard focus handling.
diff --git a/e-util/e-cursors.c b/e-util/e-cursors.c
index 150b84b90a..56a5015cbd 100644
--- a/e-util/e-cursors.c
+++ b/e-util/e-cursors.c
@@ -28,6 +28,7 @@ static CursorDef cursors [] = {
{ NULL, 0, 0, NULL }
};
+static int inited = FALSE;
static void
create_bitmap_and_mask_from_xpm (GdkBitmap **bitmap, GdkBitmap **mask, gchar **xpm)
@@ -105,6 +106,8 @@ e_cursors_init (void)
}
}
+ inited = TRUE;
+
g_assert (i == E_NUM_CURSORS);
}
@@ -124,5 +127,8 @@ e_cursor_get (ECursorType type)
{
g_return_val_if_fail (type >= 0 && type < E_NUM_CURSORS, NULL);
+ if (!inited)
+ g_warning ("e_cursors_init not called");
+
return cursors [type].cursor;
}