Lines 292-297
static void swt_fixed_size_allocate (GtkWidget *widget, GtkAllocation *allocatio
Link Here
|
292 |
static void swt_fixed_add (GtkContainer *container, GtkWidget *widget); |
292 |
static void swt_fixed_add (GtkContainer *container, GtkWidget *widget); |
293 |
static void swt_fixed_remove (GtkContainer *container, GtkWidget *widget); |
293 |
static void swt_fixed_remove (GtkContainer *container, GtkWidget *widget); |
294 |
static void swt_fixed_forall (GtkContainer *container, gboolean include_internals, GtkCallback callback, gpointer callback_data); |
294 |
static void swt_fixed_forall (GtkContainer *container, gboolean include_internals, GtkCallback callback, gpointer callback_data); |
|
|
295 |
static gboolean swt_fixed_draw (GtkWidget *widget, cairo_t *cr); |
295 |
|
296 |
|
296 |
G_DEFINE_TYPE_WITH_CODE (SwtFixed, swt_fixed, GTK_TYPE_CONTAINER, G_IMPLEMENT_INTERFACE (GTK_TYPE_SCROLLABLE, NULL)) |
297 |
G_DEFINE_TYPE_WITH_CODE (SwtFixed, swt_fixed, GTK_TYPE_CONTAINER, G_IMPLEMENT_INTERFACE (GTK_TYPE_SCROLLABLE, NULL)) |
297 |
|
298 |
|
Lines 317-322
static void swt_fixed_class_init (SwtFixedClass *class) {
Link Here
|
317 |
widget_class->get_preferred_width = swt_fixed_get_preferred_width; |
318 |
widget_class->get_preferred_width = swt_fixed_get_preferred_width; |
318 |
widget_class->get_preferred_height = swt_fixed_get_preferred_height; |
319 |
widget_class->get_preferred_height = swt_fixed_get_preferred_height; |
319 |
widget_class->size_allocate = swt_fixed_size_allocate; |
320 |
widget_class->size_allocate = swt_fixed_size_allocate; |
|
|
321 |
widget_class->draw = swt_fixed_draw; |
320 |
|
322 |
|
321 |
/* Container implementation */ |
323 |
/* Container implementation */ |
322 |
container_class->add = swt_fixed_add; |
324 |
container_class->add = swt_fixed_add; |
Lines 636-639
static void swt_fixed_forall (GtkContainer *container, gboolean include_internal
Link Here
|
636 |
} |
638 |
} |
637 |
} |
639 |
} |
638 |
|
640 |
|
|
|
641 |
static gboolean swt_fixed_draw (GtkWidget *widget, cairo_t *cr) { |
642 |
SwtFixed *fixed = SWT_FIXED (widget); |
643 |
SwtFixedPrivate *priv = fixed->priv; |
644 |
SwtFixedChild *child; |
645 |
GList *list; |
646 |
|
647 |
for (list = priv->children; list; list = list->next) { |
648 |
child = list->data; |
649 |
gtk_container_propagate_draw (GTK_CONTAINER (fixed), child->widget, cr); |
650 |
} |
651 |
|
652 |
return FALSE; |
653 |
} |
654 |
|
639 |
#endif |
655 |
#endif |