Commit 42ed60e8 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

Mice with middle scroll wheels frequently send just button release events,


2000-01-13  Jody Goldberg <jgoldberg@home.com>

	* src/sheet-view.c (horizontal_scroll_event,
			    vertical_scroll_event) : Mice with middle scroll
	  wheels frequently send just button release events, dont assume there
	  was a button_press.
parent d011e608
2000-01-13 Jody Goldberg <jgoldberg@home.com>
* src/sheet-view.c (horizontal_scroll_event,
vertical_scroll_event) : Mice with middle scroll
wheels frequently send just button release events, dont assume there
was a button_press.
2000-01-13 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/workbook.c, src/dialogs/dialog-autosave.c: Killed warnings.
......
2000-01-13 Jody Goldberg <jgoldberg@home.com>
* src/sheet-view.c (horizontal_scroll_event,
vertical_scroll_event) : Mice with middle scroll
wheels frequently send just button release events, dont assume there
was a button_press.
2000-01-13 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/workbook.c, src/dialogs/dialog-autosave.c: Killed warnings.
......
......@@ -395,8 +395,12 @@ horizontal_scroll_event (GtkScrollbar *scroll, GdkEvent *event, SheetView *sheet
GnumericSheet *gsheet = GNUMERIC_SHEET (sheet_view->sheet_view);
int col;
gtk_widget_destroy (gtk_widget_get_toplevel (sheet_view->tip));
sheet_view->tip = NULL;
/* A button release can be generated without a press by people
* with mouse wheels */
if (sheet_view->tip) {
gtk_widget_destroy (gtk_widget_get_toplevel (sheet_view->tip));
sheet_view->tip = NULL;
}
col = GTK_ADJUSTMENT (sheet_view->ha)->value;
......@@ -421,8 +425,12 @@ vertical_scroll_event (GtkScrollbar *scroll, GdkEvent *event, SheetView *sheet_v
GnumericSheet *gsheet = GNUMERIC_SHEET (sheet_view->sheet_view);
int row;
gtk_widget_destroy (gtk_widget_get_toplevel (sheet_view->tip));
sheet_view->tip = NULL;
/* A button release can be generated without a press by people
* with mouse wheels */
if (sheet_view->tip) {
gtk_widget_destroy (gtk_widget_get_toplevel (sheet_view->tip));
sheet_view->tip = NULL;
}
row = GTK_ADJUSTMENT (sheet_view->va)->value;
......
......@@ -395,8 +395,12 @@ horizontal_scroll_event (GtkScrollbar *scroll, GdkEvent *event, SheetView *sheet
GnumericSheet *gsheet = GNUMERIC_SHEET (sheet_view->sheet_view);
int col;
gtk_widget_destroy (gtk_widget_get_toplevel (sheet_view->tip));
sheet_view->tip = NULL;
/* A button release can be generated without a press by people
* with mouse wheels */
if (sheet_view->tip) {
gtk_widget_destroy (gtk_widget_get_toplevel (sheet_view->tip));
sheet_view->tip = NULL;
}
col = GTK_ADJUSTMENT (sheet_view->ha)->value;
......@@ -421,8 +425,12 @@ vertical_scroll_event (GtkScrollbar *scroll, GdkEvent *event, SheetView *sheet_v
GnumericSheet *gsheet = GNUMERIC_SHEET (sheet_view->sheet_view);
int row;
gtk_widget_destroy (gtk_widget_get_toplevel (sheet_view->tip));
sheet_view->tip = NULL;
/* A button release can be generated without a press by people
* with mouse wheels */
if (sheet_view->tip) {
gtk_widget_destroy (gtk_widget_get_toplevel (sheet_view->tip));
sheet_view->tip = NULL;
}
row = GTK_ADJUSTMENT (sheet_view->va)->value;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment