[gtk+] builder: Don't use g_slist_next
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] builder: Don't use g_slist_next
- Date: Tue, 20 Oct 2015 10:15:59 +0000 (UTC)
commit d0e30994d0be914766a42662b06213c2b44f695e
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Oct 19 18:33:10 2015 -0400
builder: Don't use g_slist_next
We just use direct access to list->next all over the place.
gtk/gtkbuilder.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkbuilder.c b/gtk/gtkbuilder.c
index d6722a0..869cdea 100644
--- a/gtk/gtkbuilder.c
+++ b/gtk/gtkbuilder.c
@@ -597,14 +597,14 @@ _gtk_builder_add_object (GtkBuilder *builder,
g_hash_table_insert (builder->priv->objects, g_strdup (id), g_object_ref (object));
}
-static inline void
+static void
gtk_builder_take_bindings (GtkBuilder *builder,
GObject *target,
GSList *bindings)
{
GSList *l;
- for (l = bindings; l; l = g_slist_next (l))
+ for (l = bindings; l; l = l->next)
{
BindingInfo *info = l->data;
info->target = target;
@@ -926,7 +926,7 @@ gtk_builder_create_bindings (GtkBuilder *builder)
{
GSList *l;
- for (l = builder->priv->bindings; l; l = g_slist_next (l))
+ for (l = builder->priv->bindings; l; l = l->next)
{
BindingInfo *info = l->data;
GObject *source;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]