Fix gtk_widget_get_allocation
svn path=/trunk/; revision=20622
This commit is contained in:
@ -9890,19 +9890,23 @@ gtk_widget_get_has_tooltip (GtkWidget *widget)
|
|||||||
/**
|
/**
|
||||||
* gtk_widget_get_allocation:
|
* gtk_widget_get_allocation:
|
||||||
* @widget: a #GtkWidget
|
* @widget: a #GtkWidget
|
||||||
|
* @allocation: a #GtkAllocation
|
||||||
*
|
*
|
||||||
* Returns the widget's allocation as provided by its parent.
|
* Fills @allocation with the widget's allocation as provided by its parent.
|
||||||
*
|
|
||||||
* Return value: current allocation of @widget.
|
|
||||||
*
|
*
|
||||||
* Since: GSEAL-branch
|
* Since: GSEAL-branch
|
||||||
*/
|
*/
|
||||||
GtkAllocation
|
void
|
||||||
gtk_widget_get_allocation (GtkWidget *widget)
|
gtk_widget_get_allocation (GtkWidget *widget,
|
||||||
|
GtkAllocation *allocation)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
|
g_return_if_fail (GTK_IS_WIDGET (widget));
|
||||||
|
g_return_if_fail (allocation != NULL);
|
||||||
|
|
||||||
return widget->allocation;
|
allocation->x = widget->allocation.x;
|
||||||
|
allocation->y = widget->allocation.y;
|
||||||
|
allocation->width = widget->allocation.width;
|
||||||
|
allocation->height = widget->allocation.height;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -572,7 +572,8 @@ void gtk_widget_set_parent_window (GtkWidget *widget,
|
|||||||
void gtk_widget_set_child_visible (GtkWidget *widget,
|
void gtk_widget_set_child_visible (GtkWidget *widget,
|
||||||
gboolean is_visible);
|
gboolean is_visible);
|
||||||
gboolean gtk_widget_get_child_visible (GtkWidget *widget);
|
gboolean gtk_widget_get_child_visible (GtkWidget *widget);
|
||||||
GtkAllocation gtk_widget_get_allocation (GtkWidget *widget);
|
void gtk_widget_get_allocation (GtkWidget *widget,
|
||||||
|
GtkAllocation*allocation);
|
||||||
GdkWindow* gtk_widget_get_window (GtkWidget *widget);
|
GdkWindow* gtk_widget_get_window (GtkWidget *widget);
|
||||||
|
|
||||||
GtkWidget *gtk_widget_get_parent (GtkWidget *widget);
|
GtkWidget *gtk_widget_get_parent (GtkWidget *widget);
|
||||||
|
Reference in New Issue
Block a user