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);
gdk_window_hide (sheet->row_title_window);
gdk_window_hide (widget->window);
- if (GTK_WIDGET_MAPPED (sheet->entry_widget))
- gtk_widget_unmap (sheet->entry_widget);
-
- if (GTK_WIDGET_MAPPED (sheet->button))
- gtk_widget_unmap (sheet->button);
+ gtk_widget_unmap (sheet->entry_widget);
+ gtk_widget_unmap (sheet->button);
}
/* get cell attributes of the given cell */
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);