From: John Darrington Date: Mon, 24 Nov 2008 06:50:34 +0000 (+0900) Subject: Don't redraw buttons in size_allocate callback X-Git-Tag: v0.7.1~118^2 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfa3bb62acfb1496a028c4baa800b2d2c5b543f5;p=pspp-builds.git Don't redraw buttons in size_allocate callback I've no idea why this was here but it is clearly wrong, and caused lots of annoying flicker. --- diff --git a/lib/gtksheet/gtksheet.c b/lib/gtksheet/gtksheet.c index e2dec4d9..e38b3895 100644 --- a/lib/gtksheet/gtksheet.c +++ b/lib/gtksheet/gtksheet.c @@ -2711,7 +2711,6 @@ gtk_sheet_show_active_cell (GtkSheet *sheet) gtk_widget_grab_focus (GTK_WIDGET (sheet_entry)); dispose_string (sheet, text); - } static void @@ -4432,9 +4431,6 @@ gtk_sheet_size_allocate (GtkWidget *widget, sheet->column_title_area.height); - /* column button allocation */ - draw_column_title_buttons (sheet); - /* position the window which holds the row title buttons */ sheet->row_title_area.x = 0; sheet->row_title_area.y = 0; @@ -4454,10 +4450,6 @@ gtk_sheet_size_allocate (GtkWidget *widget, sheet->row_title_area.height); - /* row button allocation */ - draw_row_title_buttons (sheet); - draw_column_title_buttons (sheet); - /* set the scrollbars adjustments */ adjust_scrollbars (sheet); }