aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-04-04 20:25:55 +0800
committerChris Lahey <clahey@src.gnome.org>2001-04-04 20:25:55 +0800
commit7957a3085c1aabf7d7b3c6820a1d9eb496cc3a96 (patch)
treee39dc1415412a114bea07df4ea8897cfcdd4e816 /widgets/misc
parent48200fbd57c44325d7aa35f9d4c4fcc477ce1f9c (diff)
downloadgsoc2013-evolution-7957a3085c1aabf7d7b3c6820a1d9eb496cc3a96.tar
gsoc2013-evolution-7957a3085c1aabf7d7b3c6820a1d9eb496cc3a96.tar.gz
gsoc2013-evolution-7957a3085c1aabf7d7b3c6820a1d9eb496cc3a96.tar.bz2
gsoc2013-evolution-7957a3085c1aabf7d7b3c6820a1d9eb496cc3a96.tar.lz
gsoc2013-evolution-7957a3085c1aabf7d7b3c6820a1d9eb496cc3a96.tar.xz
gsoc2013-evolution-7957a3085c1aabf7d7b3c6820a1d9eb496cc3a96.tar.zst
gsoc2013-evolution-7957a3085c1aabf7d7b3c6820a1d9eb496cc3a96.zip
Fixed headers. Moved the .h associated with each .c to the top of the list
2001-04-04 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text-model-uri.c, gal/e-text/e-text.c, gal/e-text/e-text.h, gal/e-text/e-text-event-processor.c, gal/util/e-xml-utils.c, gal/widgets/e-cursors.c, gal/widgets/e-cursors.h: Fixed headers. Moved the .h associated with each .c to the top of the list of included files. * gal/util/e-util.h: Removed the bonobo-xobject.h header here. * gal/util/e-xml-utils.c: Replaced strcasecmp with g_strcasecmp. * gal/widgets/e-canvas-vbox.c: Make this work even if the item is destroyed after the vbox. * gal/widgets/e-categories.c (do_parse_categories): Made this translate using e_utf8_from_locale string as it should. svn path=/trunk/; revision=9175
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-canvas-vbox.c6
-rw-r--r--widgets/misc/e-cursors.c5
-rw-r--r--widgets/misc/e-cursors.h1
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