extern "C" {
#endif /* __cplusplus */
+typedef struct _GtkPizzaChild GtkPizzaChild;
+typedef struct _GtkPizzaClass GtkPizzaClass;
typedef struct _GtkPizzaAdjData GtkPizzaAdjData;
+struct _GtkPizzaClass
+{
+ GtkContainerClass parent_class;
+
+ void (*set_scroll_adjustments) (GtkPizza *pizza,
+ GtkAdjustment *hadjustment,
+ GtkAdjustment *vadjustment);
+};
+
+struct _GtkPizzaChild
+{
+ GtkWidget *widget;
+ gint x;
+ gint y;
+};
+
struct _GtkPizzaAdjData
{
gint dx;
child_info->widget = widget;
child_info->x = x;
child_info->y = y;
- child_info->width = width;
- child_info->height = height;
pizza->children = g_list_append (pizza->children, child_info);
gtk_widget_set_parent (widget, GTK_WIDGET (pizza));
+ gtk_widget_set_size_request( widget, width, height );
if (GTK_WIDGET_REALIZED (pizza))
gtk_pizza_allocate_child (pizza, child_info);
}
if (child->widget == widget)
{
- if ((child->x == x) &&
- (child->y == y) &&
- (child->width == width) &&
- (child->height == height)) return;
-
child->x = x;
child->y = y;
- child->width = width;
- child->height = height;
-
+
gtk_widget_set_size_request (widget, width, height);
return;