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);
PsppireSheet *sheet = PSPPIRE_SHEET (data);
gint x, y;
gint row, column;
+
+ gdk_threads_enter ();
gtk_widget_get_pointer (GTK_WIDGET (sheet), &x, &y);
if ( psppire_sheet_get_pixel_info (sheet, x, y, &row, &column) )
}
}
+ gdk_threads_leave ();
return FALSE;
}
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);
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);
shadow_type,
NULL,
GTK_WIDGET (sheet),
- "button",
+ NULL,
points,
2,
TRUE);