[gtk+] Fix a segfault in gtk_assistant_set_current_page
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix a segfault in gtk_assistant_set_current_page
- Date: Tue, 23 Feb 2010 16:25:47 +0000 (UTC)
commit ddcc305f4edf348f6f5f8cc218c90d61a133f982
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Feb 23 11:16:04 2010 -0500
Fix a segfault in gtk_assistant_set_current_page
Reported by Tadej Borovšak in bug 610184
gtk/gtkassistant.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkassistant.c b/gtk/gtkassistant.c
index e7be421..daec0cf 100644
--- a/gtk/gtkassistant.c
+++ b/gtk/gtkassistant.c
@@ -1554,7 +1554,7 @@ gtk_assistant_set_current_page (GtkAssistant *assistant,
if (page_num >= 0)
page = (GtkAssistantPage *) g_list_nth_data (priv->pages, page_num);
else
- page = (GtkAssistantPage *) g_list_last (priv->pages);
+ page = (GtkAssistantPage *) g_list_last (priv->pages)->data;
g_return_if_fail (page != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]