diff options
author | Michael Meeks <mmeeks@src.gnome.org> | 1999-09-11 04:11:36 +0800 |
---|---|---|
committer | Michael Meeks <mmeeks@src.gnome.org> | 1999-09-11 04:11:36 +0800 |
commit | ffa1277638311dfbc75f2107a5fcd1f140761f97 (patch) | |
tree | a21a860bdae3bb3df66dce23ab2199c7f6d63241 /widgets | |
parent | bb40dc75eecbd1a8932973e97e85334ca9dfbd9d (diff) | |
download | gsoc2013-evolution-ffa1277638311dfbc75f2107a5fcd1f140761f97.tar.gz 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')
-rw-r--r-- | widgets/misc/e-cursors.c | 21 | ||||
-rw-r--r-- | widgets/misc/e-cursors.h | 21 |
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 */ + |