[gtk/misc-speedups: 7/11] layoutmanager: Avoid some overhead
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/misc-speedups: 7/11] layoutmanager: Avoid some overhead
- Date: Sat, 24 Jul 2021 23:03:27 +0000 (UTC)
commit 98986a25f9eb88e6bc2ee9fcf72bac9e8f17d9f9
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jul 22 20:58:25 2021 -0400
layoutmanager: Avoid some overhead
Use inline getters for some things.
gtk/gtklayoutmanager.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtklayoutmanager.c b/gtk/gtklayoutmanager.c
index 2d6901103c..57746fd03e 100644
--- a/gtk/gtklayoutmanager.c
+++ b/gtk/gtklayoutmanager.c
@@ -517,7 +517,7 @@ gtk_layout_manager_get_layout_child (GtkLayoutManager *manager,
g_return_val_if_fail (GTK_IS_LAYOUT_MANAGER (manager), NULL);
g_return_val_if_fail (GTK_IS_WIDGET (child), NULL);
- parent = gtk_widget_get_parent (child);
+ parent = _gtk_widget_get_parent (child);
g_return_val_if_fail (parent != NULL, NULL);
if (priv->widget != parent)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]