diff options
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/ChangeLog | 4 | ||||
-rw-r--r-- | e-util/e-cursors.c | 6 |
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; } |