&req, NULL); \
\
if (is_rtl) \
- button_allocation.x = allocation->x + padding.left; \
+ button_allocation.x = allocation->x; \
else \
button_allocation.x = allocation->x + allocation->width \
- - req.width - padding.right; \
+ - req.width; \
\
- button_allocation.y = allocation->y + padding.top; \
+ button_allocation.y = allocation->y; \
button_allocation.width = MAX (1, req.width); \
- button_allocation.height = allocation->height - \
- (padding.top + padding.bottom); \
+ button_allocation.height = allocation->height; \
button_allocation.height = MAX (1, button_allocation.height); \
\
gtk_widget_size_allocate (combo_box->priv->button, \
child_widget = gtk_bin_get_child (GTK_BIN (widget));
get_widget_padding_and_border (widget, &padding);
+ allocation->x += padding.left;
+ allocation->y += padding.top;
+ allocation->width -= padding.left + padding.right;
+ allocation->height -= padding.top + padding.bottom;
+
if (!priv->tree_view)
{
if (priv->cell_view)
* Allocate the button to the full combobox allocation (minus the
* padding).
*/
- allocation->x += padding.left;
- allocation->y += padding.top;
- allocation->width -= padding.left + padding.right;
- allocation->height -= padding.top + padding.bottom;
gtk_widget_size_allocate (priv->button, allocation);
child.x = allocation->x;
if (is_rtl)
child.x = button_allocation.x + button_allocation.width;
else
- child.x = allocation->x + padding.left;
+ child.x = allocation->x;
- child.y = allocation->y + padding.top;
- child.width = allocation->width - button_allocation.width - (padding.left + padding.right);
+ child.y = allocation->y;
+ child.width = allocation->width - button_allocation.width;
child.height = button_allocation.height;
child.width = MAX (1, child.width);
if (is_rtl)
child.x = button_allocation.x + button_allocation.width;
else
- child.x = allocation->x + padding.left + border_width;
+ child.x = allocation->x + border_width;
- child.y = allocation->y + padding.top + border_width;
- child.width = allocation->width - button_allocation.width - (2 * border_width + padding.left + padding.right);
+ child.y = allocation->y + border_width;
+ child.width = allocation->width - button_allocation.width - (2 * border_width);
child.height = button_allocation.height - 2 * border_width;
if (priv->cell_view_frame)