[gtk+] gtk/gtknotebook.c: Use accessor functions to access GtkWindow



commit f91e5e2ac9e237c62da08705196372f873918272
Author: Javier Jardón <jjardon gnome org>
Date:   Tue Aug 17 15:13:45 2010 +0200

    gtk/gtknotebook.c: Use accessor functions to access GtkWindow

 gtk/gtknotebook.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 44d1c9a..6aa66ce 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -4152,7 +4152,7 @@ gtk_notebook_set_focus_child (GtkContainer *container,
   toplevel = gtk_widget_get_toplevel (GTK_WIDGET (container));
   if (toplevel && gtk_widget_is_toplevel (toplevel))
     {
-      page_child = GTK_WINDOW (toplevel)->focus_widget; 
+      page_child = gtk_window_get_focus (GTK_WINDOW (toplevel));
       while (page_child)
 	{
 	  if (page_child->parent == GTK_WIDGET (container))
@@ -4164,8 +4164,8 @@ gtk_notebook_set_focus_child (GtkContainer *container,
 	      
 		  if (page->last_focus_child)
 		    g_object_remove_weak_pointer (G_OBJECT (page->last_focus_child), (gpointer *)&page->last_focus_child);
-		  
-		  page->last_focus_child = GTK_WINDOW (toplevel)->focus_widget;
+
+		  page->last_focus_child = gtk_window_get_focus (GTK_WINDOW (toplevel));
 		  g_object_add_weak_pointer (G_OBJECT (page->last_focus_child), (gpointer *)&page->last_focus_child);
 	      
 		  break;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]