X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fgtk-contrib%2Fpsppire-sheet.c;h=bb99d1e32899812f3ac9143acb6c3c14dbf73359;hb=0014b99626818f82389cc2b824eb334c232bcb50;hp=3db8fd5bd0b558878036f069fd9ef7a2d74478b3;hpb=d3ceb500f824c3765b424e69c69cf3eb85117d15;p=pspp-builds.git diff --git a/lib/gtk-contrib/psppire-sheet.c b/lib/gtk-contrib/psppire-sheet.c index 3db8fd5b..bb99d1e3 100644 --- a/lib/gtk-contrib/psppire-sheet.c +++ b/lib/gtk-contrib/psppire-sheet.c @@ -1981,6 +1981,9 @@ psppire_sheet_realize (GtkWidget *widget) gtk_widget_set_parent_window (sheet->button, sheet->sheet_window); gtk_widget_set_parent (sheet->button, GTK_WIDGET (sheet)); + sheet->button->style = gtk_style_attach (sheet->button->style, + sheet->sheet_window); + sheet->cursor_drag = gdk_cursor_new_for_display (display, GDK_PLUS); @@ -4796,8 +4799,9 @@ draw_button (PsppireSheet *sheet, GdkWindow *window, gtk_paint_box (sheet->button->style, window, GTK_STATE_NORMAL, GTK_SHADOW_OUT, - &allocation, GTK_WIDGET (sheet->button), - "buttondefault", + &allocation, + GTK_WIDGET (sheet->button), + NULL, allocation.x, allocation.y, allocation.width, allocation.height); @@ -4813,7 +4817,7 @@ draw_button (PsppireSheet *sheet, GdkWindow *window, gtk_paint_box (sheet->button->style, window, button->state, shadow_type, &allocation, GTK_WIDGET (sheet->button), - "button", + NULL, allocation.x, allocation.y, allocation.width, allocation.height); @@ -4831,7 +4835,7 @@ draw_button (PsppireSheet *sheet, GdkWindow *window, shadow_type, NULL, GTK_WIDGET (sheet), - "button", + NULL, points, 2, TRUE);