+static gboolean
+psppire_button_editable_expose_event (GtkWidget *widget,
+ GdkEventExpose *event)
+{
+ GtkWidgetClass *widget_class;
+ GtkStyle *style = gtk_widget_get_style (widget);
+ GtkAllocation allocation;
+ gboolean retval;
+
+ widget_class = GTK_WIDGET_CLASS (psppire_button_editable_parent_class);
+ retval = widget_class->expose_event (widget, event);
+
+ gtk_widget_get_allocation (widget, &allocation);
+ if (PSPPIRE_BUTTON_EDITABLE (widget)->slash)
+ gdk_draw_line (gtk_widget_get_window (widget), style->black_gc,
+ allocation.x,
+ allocation.y + allocation.height,
+ allocation.x + allocation.width,
+ allocation.y);
+ return retval;
+}
+