[gtk+] gtk/gtkpaned.c: Use accessor functions to access GtkWindow
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk/gtkpaned.c: Use accessor functions to access GtkWindow
- Date: Mon, 23 Aug 2010 18:35:17 +0000 (UTC)
commit 54b8b51f43dc09e7a201b2d37946fbdbfa08ef3a
Author: Javier Jardón <jjardon gnome org>
Date: Tue Aug 17 15:14:05 2010 +0200
gtk/gtkpaned.c: Use accessor functions to access GtkWindow
gtk/gtkpaned.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index 65a8628..6d95aa1 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -1802,7 +1802,7 @@ paned_get_focus_widget (GtkPaned *paned)
toplevel = gtk_widget_get_toplevel (GTK_WIDGET (paned));
if (gtk_widget_is_toplevel (toplevel))
- return GTK_WINDOW (toplevel)->focus_widget;
+ return gtk_window_get_focus (GTK_WINDOW (toplevel));
return NULL;
}
@@ -2320,7 +2320,7 @@ gtk_paned_cycle_handle_focus (GtkPaned *paned,
toplevel = gtk_widget_get_toplevel (GTK_WIDGET (paned));
if (GTK_IS_WINDOW (toplevel))
- gtk_paned_set_saved_focus (focus, GTK_WINDOW (toplevel)->focus_widget);
+ gtk_paned_set_saved_focus (focus, gtk_window_get_focus (GTK_WINDOW (toplevel)));
gtk_paned_set_first_paned (focus, first);
focus->priv->original_position = gtk_paned_get_position (focus);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]