[gtk+/gtk-2-18] Fix a segfault in gtk_assistant_set_current_page



commit c94513e44be2205ab630dc96f74d5ff43ed75eec
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
    (cherry picked from commit ddcc305f4edf348f6f5f8cc218c90d61a133f982)

 gtk/gtkassistant.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkassistant.c b/gtk/gtkassistant.c
index a2e2f7a..48d8506 100644
--- a/gtk/gtkassistant.c
+++ b/gtk/gtkassistant.c
@@ -1551,7 +1551,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]