diff options
Diffstat (limited to 'widgets/misc')
-rw-r--r-- | widgets/misc/e-canvas-vbox.c | 6 | ||||
-rw-r--r-- | widgets/misc/e-cursors.c | 5 | ||||
-rw-r--r-- | widgets/misc/e-cursors.h | 1 |
3 files changed, 9 insertions, 3 deletions
diff --git a/widgets/misc/e-canvas-vbox.c b/widgets/misc/e-canvas-vbox.c index 90782f4d11..3eebc921c9 100644 --- a/widgets/misc/e-canvas-vbox.c +++ b/widgets/misc/e-canvas-vbox.c @@ -234,8 +234,10 @@ e_canvas_vbox_realize (GnomeCanvasItem *item) static void e_canvas_vbox_remove_item (GnomeCanvasItem *item, ECanvasVbox *vbox) { - vbox->items = g_list_remove(vbox->items, item); - gtk_object_unref(GTK_OBJECT(vbox)); + if (!GTK_OBJECT_DESTROYED (vbox)) { + vbox->items = g_list_remove(vbox->items, item); + gtk_object_unref(GTK_OBJECT(vbox)); + } } static void diff --git a/widgets/misc/e-cursors.c b/widgets/misc/e-cursors.c index 4049fbf315..1b5a8a226e 100644 --- a/widgets/misc/e-cursors.c +++ b/widgets/misc/e-cursors.c @@ -5,13 +5,16 @@ * Miguel de Icaza (miguel@gnu.org) */ #include <config.h> -#include "e-colors.h" + #include "e-cursors.h" + +#include "e-colors.h" #include "pixmaps/cursor_cross.xpm" #include "pixmaps/cursor_zoom_in.xpm" #include "pixmaps/cursor_zoom_out.xpm" #include "pixmaps/cursor_hand_open.xpm" #include "pixmaps/cursor_hand_closed.xpm" +#include <stdio.h> #define GDK_INTERNAL_CURSOR -1 diff --git a/widgets/misc/e-cursors.h b/widgets/misc/e-cursors.h index a8374d6506..4f04ff08cc 100644 --- a/widgets/misc/e-cursors.h +++ b/widgets/misc/e-cursors.h @@ -2,6 +2,7 @@ #define GNOME_APP_LIB_CURSORS_H #include <gdk/gdk.h> +#include <libgnome/gnome-defs.h> BEGIN_GNOME_DECLS |