Lines Matching defs:allocation
259 GtkAllocation allocation;
275 gtk_widget_get_allocation (GTK_WIDGET (switcher), &allocation);
281 y = allocation.y + allocation.height - V_PADDING - 1;
303 btns_per_row = allocation.width / (max_btn_width + H_PADDING);
308 if (allocation.width >= optimal_layout_width)
386 if (y < (allocation.y + client_requisition.height)) {
387 /* We have an overflow: Insufficient allocation */
395 x = H_PADDING + allocation.x;
399 extra_width = (allocation.width - (len * max_btn_width )
442 GtkAllocation allocation;
446 gtk_widget_get_allocation (GTK_WIDGET (switcher), &allocation);
454 y = allocation.y + allocation.height;
457 child_allocation.x = allocation.x;
458 child_allocation.y = allocation.y;
459 child_allocation.width = allocation.width;
460 child_allocation.height = y - allocation.y;
544 gdl_switcher_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
546 gtk_widget_set_allocation (widget, allocation);