From 3e1e7873f1d271423312e7e9f26ae8a4736b1f42 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Mon, 11 Jan 1999 04:35:55 +0000 Subject: Use 0.0########## instead. Looks saner. 1999-01-10 Miguel de Icaza * src/format.c (format_value): Use 0.0########## instead. Looks saner. 1999-01-10 Miguel de Icaza * 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 --- widgets/misc/e-cursors.c | 11 +++++++++-- widgets/misc/e-cursors.h | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) (limited to 'widgets') 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 */ -- cgit v1.2.3