aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorMichael Meeks <mmeeks@src.gnome.org>1999-09-11 04:11:36 +0800
committerMichael Meeks <mmeeks@src.gnome.org>1999-09-11 04:11:36 +0800
commitffa1277638311dfbc75f2107a5fcd1f140761f97 (patch)
treea21a860bdae3bb3df66dce23ab2199c7f6d63241 /widgets/misc
parentbb40dc75eecbd1a8932973e97e85334ca9dfbd9d (diff)
downloadgsoc2013-evolution-ffa1277638311dfbc75f2107a5fcd1f140761f97.tar
gsoc2013-evolution-ffa1277638311dfbc75f2107a5fcd1f140761f97.tar.gz
gsoc2013-evolution-ffa1277638311dfbc75f2107a5fcd1f140761f97.tar.bz2
gsoc2013-evolution-ffa1277638311dfbc75f2107a5fcd1f140761f97.tar.lz
gsoc2013-evolution-ffa1277638311dfbc75f2107a5fcd1f140761f97.tar.xz
gsoc2013-evolution-ffa1277638311dfbc75f2107a5fcd1f140761f97.tar.zst
gsoc2013-evolution-ffa1277638311dfbc75f2107a5fcd1f140761f97.zip
Cosmetic widget update when loading lots of files,
Fixed serious bug in sheet tab editing, New sizing algo. svn path=/trunk/; revision=1221
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-cursors.c21
-rw-r--r--widgets/misc/e-cursors.h21
2 files changed, 22 insertions, 20 deletions
diff --git a/widgets/misc/e-cursors.c b/widgets/misc/e-cursors.c
index 40ec043d21..16de3abbef 100644
--- a/widgets/misc/e-cursors.c
+++ b/widgets/misc/e-cursors.c
@@ -19,17 +19,18 @@ extern GnumericCursorDef gnumeric_cursors [];
void cursors_init (void);
void cursors_shutdown (void);
-#define cursor_set(win,c) \
- do { \
- if (win) \
- gdk_window_set_cursor (win, gnumeric_cursors [c].cursor); \
-} while (0)
-
-#define cursor_set_widget(w,c) \
- do { \
- if (GTK_WIDGET (w)->window) \
+#define cursor_set(win,c) \
+G_STMT_START { \
+ if (win) \
+ gdk_window_set_cursor (win, gnumeric_cursors [c].cursor); \
+} G_STMT_END
+
+#define cursor_set_widget(w,c) \
+G_STMT_START { \
+ if (GTK_WIDGET (w)->window) \
gdk_window_set_cursor (GTK_WIDGET (w)->window, gnumeric_cursors [c].cursor); \
-} while (0)
+} G_STMT_END
#endif /* GNUMERIC_CURSORS_H */
+
diff --git a/widgets/misc/e-cursors.h b/widgets/misc/e-cursors.h
index 40ec043d21..16de3abbef 100644
--- a/widgets/misc/e-cursors.h
+++ b/widgets/misc/e-cursors.h
@@ -19,17 +19,18 @@ extern GnumericCursorDef gnumeric_cursors [];
void cursors_init (void);
void cursors_shutdown (void);
-#define cursor_set(win,c) \
- do { \
- if (win) \
- gdk_window_set_cursor (win, gnumeric_cursors [c].cursor); \
-} while (0)
-
-#define cursor_set_widget(w,c) \
- do { \
- if (GTK_WIDGET (w)->window) \
+#define cursor_set(win,c) \
+G_STMT_START { \
+ if (win) \
+ gdk_window_set_cursor (win, gnumeric_cursors [c].cursor); \
+} G_STMT_END
+
+#define cursor_set_widget(w,c) \
+G_STMT_START { \
+ if (GTK_WIDGET (w)->window) \
gdk_window_set_cursor (GTK_WIDGET (w)->window, gnumeric_cursors [c].cursor); \
-} while (0)
+} G_STMT_END
#endif /* GNUMERIC_CURSORS_H */
+