aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-cursors.c
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/e-cursors.c
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/e-cursors.c')
-rw-r--r--e-util/e-cursors.c6
1 files changed, 6 insertions, 0 deletions
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;
}