aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@nuclecu.unam.mx>1999-01-11 12:35:55 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-01-11 12:35:55 +0800
commit3e1e7873f1d271423312e7e9f26ae8a4736b1f42 (patch)
tree3a849cd069160277623ecbfad6cfb4275bee8890 /widgets
parente8bd10f695a8ce83c21efaafd4ec0ee3c84e5761 (diff)
downloadgsoc2013-evolution-3e1e7873f1d271423312e7e9f26ae8a4736b1f42.tar
gsoc2013-evolution-3e1e7873f1d271423312e7e9f26ae8a4736b1f42.tar.gz
gsoc2013-evolution-3e1e7873f1d271423312e7e9f26ae8a4736b1f42.tar.bz2
gsoc2013-evolution-3e1e7873f1d271423312e7e9f26ae8a4736b1f42.tar.lz
gsoc2013-evolution-3e1e7873f1d271423312e7e9f26ae8a4736b1f42.tar.xz
gsoc2013-evolution-3e1e7873f1d271423312e7e9f26ae8a4736b1f42.tar.zst
gsoc2013-evolution-3e1e7873f1d271423312e7e9f26ae8a4736b1f42.zip
Use 0.0########## instead. Looks saner.
1999-01-10 Miguel de Icaza <miguel@nuclecu.unam.mx> * src/format.c (format_value): Use 0.0########## instead. Looks saner. 1999-01-10 Miguel de Icaza <miguel@nuclecu.unam.mx> * src/workbook.c (change_auto_expr_menu): Use the event->button field to get the popup menu to behave correctly. (workbook_setup_auto_calc): Put the information display inside a GtkFrame. * src/item-bar.c (set_cursor): This routine can be invoked before we are realized. * src/workbook.c (sheet_label_button_press): We need to do the page flipping ourselves, as the GtkNotebook wont take events if they are not for a window it knows about. * src/widget-editable-label.c (el_button_press_event): Forward events to parent. * src/parser.y: New non-terminal "cellref". Make this non-terminal include CELLREF and SHEETREF!CELLREF constructions. * src/expr.c: Changed the whole module according to the dropping of VALUE_CELLREF. * src/expr.h: VALUE_CELLREF did not make much sense. Better add to the ExprTree union a CellRef field specifically for OPER_VAR nodes. svn path=/trunk/; revision=591
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/e-cursors.c11
-rw-r--r--widgets/misc/e-cursors.h11
2 files changed, 18 insertions, 4 deletions
diff --git a/widgets/misc/e-cursors.c b/widgets/misc/e-cursors.c
index b4eb2436ec..d38fe71d0c 100644
--- a/widgets/misc/e-cursors.c
+++ b/widgets/misc/e-cursors.c
@@ -17,9 +17,16 @@ void cursors_init (void);
void cursors_shutdown (void);
#define cursor_set(win,c) \
- gdk_window_set_cursor (win, gnumeric_cursors [c].cursor)
+ do { \
+ if (win) \
+ gdk_window_set_cursor (win, gnumeric_cursors [c].cursor); \
+} while (0)
#define cursor_set_widget(w,c) \
- gdk_window_set_cursor (GTK_WIDGET (w)->window, gnumeric_cursors [c].cursor)
+ do { \
+ if (GTK_WIDGET (w)->window) \
+ gdk_window_set_cursor (GTK_WIDGET (w)->window, gnumeric_cursors [c].cursor); \
+} while (0)
+
#endif /* GNUMERIC_CURSORS_H */
diff --git a/widgets/misc/e-cursors.h b/widgets/misc/e-cursors.h
index b4eb2436ec..d38fe71d0c 100644
--- a/widgets/misc/e-cursors.h
+++ b/widgets/misc/e-cursors.h
@@ -17,9 +17,16 @@ void cursors_init (void);
void cursors_shutdown (void);
#define cursor_set(win,c) \
- gdk_window_set_cursor (win, gnumeric_cursors [c].cursor)
+ do { \
+ if (win) \
+ gdk_window_set_cursor (win, gnumeric_cursors [c].cursor); \
+} while (0)
#define cursor_set_widget(w,c) \
- gdk_window_set_cursor (GTK_WIDGET (w)->window, gnumeric_cursors [c].cursor)
+ do { \
+ if (GTK_WIDGET (w)->window) \
+ gdk_window_set_cursor (GTK_WIDGET (w)->window, gnumeric_cursors [c].cursor); \
+} while (0)
+
#endif /* GNUMERIC_CURSORS_H */