mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-20 02:10:12 +00:00
Fix gtk_widget_get_allocation()
- add it to the header - add the symbol to gtk.symbols - fix coding style and check for allocation != NULL
This commit is contained in:
parent
94f887390c
commit
6007761549
@ -4956,6 +4956,7 @@ gtk_widget_error_bell
|
|||||||
gtk_widget_event
|
gtk_widget_event
|
||||||
gtk_widget_freeze_child_notify
|
gtk_widget_freeze_child_notify
|
||||||
gtk_widget_get_accessible
|
gtk_widget_get_accessible
|
||||||
|
gtk_widget_get_allocation
|
||||||
gtk_widget_get_ancestor
|
gtk_widget_get_ancestor
|
||||||
gtk_widget_get_app_paintable
|
gtk_widget_get_app_paintable
|
||||||
gtk_widget_get_child_requisition
|
gtk_widget_get_child_requisition
|
||||||
|
@ -10686,9 +10686,11 @@ gtk_widget_get_has_tooltip (GtkWidget *widget)
|
|||||||
* Since: 2.18
|
* Since: 2.18
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
gtk_widget_get_allocation (GtkWidget *widget, GtkAllocation *allocation)
|
gtk_widget_get_allocation (GtkWidget *widget,
|
||||||
|
GtkAllocation *allocation)
|
||||||
{
|
{
|
||||||
g_return_if_fail (GTK_IS_WIDGET (widget));
|
g_return_if_fail (GTK_IS_WIDGET (widget));
|
||||||
|
g_return_if_fail (allocation != NULL);
|
||||||
|
|
||||||
*allocation = widget->allocation;
|
*allocation = widget->allocation;
|
||||||
}
|
}
|
||||||
|
@ -599,6 +599,9 @@ void gtk_widget_set_child_visible (GtkWidget *widget,
|
|||||||
gboolean gtk_widget_get_child_visible (GtkWidget *widget);
|
gboolean gtk_widget_get_child_visible (GtkWidget *widget);
|
||||||
GdkWindow* gtk_widget_get_window (GtkWidget *widget);
|
GdkWindow* gtk_widget_get_window (GtkWidget *widget);
|
||||||
|
|
||||||
|
void gtk_widget_get_allocation (GtkWidget *widget,
|
||||||
|
GtkAllocation *allocation);
|
||||||
|
|
||||||
gboolean gtk_widget_child_focus (GtkWidget *widget,
|
gboolean gtk_widget_child_focus (GtkWidget *widget,
|
||||||
GtkDirectionType direction);
|
GtkDirectionType direction);
|
||||||
gboolean gtk_widget_keynav_failed (GtkWidget *widget,
|
gboolean gtk_widget_keynav_failed (GtkWidget *widget,
|
||||||
|
Loading…
Reference in New Issue
Block a user