[gtk+] Don't use g_list_next in gtkdialog.c
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Don't use g_list_next in gtkdialog.c
- Date: Tue, 20 Oct 2015 10:16:14 +0000 (UTC)
commit 842263331134639eb8e129753f95e6fc1c9893bb
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Oct 19 19:14:52 2015 -0400
Don't use g_list_next in gtkdialog.c
We generall access ->next directly.
gtk/gtkdialog.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index 21cc18b..a0601f9 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -1170,7 +1170,7 @@ gtk_dialog_set_response_sensitive (GtkDialog *dialog,
if (rd && rd->response_id == response_id)
gtk_widget_set_sensitive (widget, setting);
- tmp_list = g_list_next (tmp_list);
+ tmp_list = tmp_list->next;
}
g_list_free (children);
@@ -1205,7 +1205,7 @@ gtk_dialog_set_default_response (GtkDialog *dialog,
if (rd && rd->response_id == response_id)
gtk_widget_grab_default (widget);
- tmp_list = g_list_next (tmp_list);
+ tmp_list = tmp_list->next;
}
g_list_free (children);
@@ -1451,7 +1451,7 @@ gtk_dialog_get_widget_for_response (GtkDialog *dialog,
return widget;
}
- tmp_list = g_list_next (tmp_list);
+ tmp_list = tmp_list->next;
}
g_list_free (children);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]