forked from AuroraMiddleware/gtk
builder: Don't use g_slist_next
We just use direct access to list->next all over the place.
This commit is contained in:
parent
45fa145034
commit
d0e30994d0
@ -597,14 +597,14 @@ _gtk_builder_add_object (GtkBuilder *builder,
|
|||||||
g_hash_table_insert (builder->priv->objects, g_strdup (id), g_object_ref (object));
|
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,
|
gtk_builder_take_bindings (GtkBuilder *builder,
|
||||||
GObject *target,
|
GObject *target,
|
||||||
GSList *bindings)
|
GSList *bindings)
|
||||||
{
|
{
|
||||||
GSList *l;
|
GSList *l;
|
||||||
|
|
||||||
for (l = bindings; l; l = g_slist_next (l))
|
for (l = bindings; l; l = l->next)
|
||||||
{
|
{
|
||||||
BindingInfo *info = l->data;
|
BindingInfo *info = l->data;
|
||||||
info->target = target;
|
info->target = target;
|
||||||
@ -926,7 +926,7 @@ gtk_builder_create_bindings (GtkBuilder *builder)
|
|||||||
{
|
{
|
||||||
GSList *l;
|
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;
|
BindingInfo *info = l->data;
|
||||||
GObject *source;
|
GObject *source;
|
||||||
|
Loading…
Reference in New Issue
Block a user