[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: gtksheet_2_2.c
User: sdb
Date: 06/06/03 09:06:40
Modified: . gtksheet_2_2.c
Log:
src/gtksheet_2_2.c: Finally fixed annoying bug in which gattrib
soaked up 70% of processor time. Problem had to do with infinite
loop of expose_events generated upon call
to gdk_window_show(sheet->row_title_window) and
gdk_window_show(sheet->row_title_window) in gtk_sheet_expose. I
removed calls to fix bug.
: ----------------------------------------------------------------------
Revision Changes Path
1.9 +10 -4 eda/geda/devel/gattrib/src/gtksheet_2_2.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: gtksheet_2_2.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gattrib/src/gtksheet_2_2.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- gtksheet_2_2.c 27 Sep 2005 22:45:27 -0000 1.8
+++ gtksheet_2_2.c 3 Jun 2006 13:06:40 -0000 1.9
@@ -4786,6 +4786,10 @@
GtkSheet *sheet;
GtkSheetRange range;
+#ifdef DEBUG
+ printf("---> Entered gtk_sheet_expose ... must have received expose_event\n");
+#endif
+
g_return_val_if_fail (widget != NULL, FALSE);
g_return_val_if_fail (GTK_IS_SHEET (widget), FALSE);
g_return_val_if_fail (event != NULL, FALSE);
@@ -4801,14 +4805,12 @@
/* exposure events on the sheet */
- if(event->window == sheet->row_title_window && sheet->row_titles_visible){
+ if( (event->window == sheet->row_title_window) && sheet->row_titles_visible){
size_allocate_row_title_buttons(sheet);
- gdk_window_show(sheet->row_title_window);
}
- if(event->window == sheet->column_title_window && sheet->column_titles_visible){
+ if( (event->window == sheet->column_title_window) && sheet->column_titles_visible){
size_allocate_column_title_buttons(sheet);
- gdk_window_show(sheet->column_title_window);
}
if (event->window == sheet->sheet_window){
@@ -4844,6 +4846,10 @@
(* GTK_WIDGET_CLASS (parent_class)->expose_event) (widget, event);
+#ifdef DEBUG
+ printf("<--- Leaving gtk_sheet_expose\n");
+#endif
+
return FALSE;
}