[nautilus] [eel] GSEAL eel-gtk-container.
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] [eel] GSEAL eel-gtk-container.
- Date: Fri, 11 Jun 2010 11:27:41 +0000 (UTC)
commit 239c62774c44ef6e192301379db19ad53c382742
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jun 11 13:10:49 2010 +0200
[eel] GSEAL eel-gtk-container.
eel/eel-gtk-container.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/eel/eel-gtk-container.c b/eel/eel-gtk-container.c
index 08056d9..8d25aea 100644
--- a/eel/eel-gtk-container.c
+++ b/eel/eel-gtk-container.c
@@ -75,7 +75,7 @@ eel_gtk_container_child_map (GtkContainer *container,
return;
}
- g_return_if_fail (child->parent == GTK_WIDGET (container));
+ g_return_if_fail (gtk_widget_get_parent (child) == GTK_WIDGET (container));
if (gtk_widget_get_visible (child) && !gtk_widget_get_mapped (child)) {
gtk_widget_map (child);
@@ -101,7 +101,7 @@ eel_gtk_container_child_unmap (GtkContainer *container,
return;
}
- g_return_if_fail (child->parent == GTK_WIDGET (container));
+ g_return_if_fail (gtk_widget_get_parent (child) == GTK_WIDGET (container));
if (gtk_widget_get_visible (child) && gtk_widget_get_mapped (child)) {
gtk_widget_unmap (child);
@@ -163,7 +163,7 @@ eel_gtk_container_child_remove (GtkContainer *container,
g_return_if_fail (GTK_IS_CONTAINER (container));
g_return_if_fail (GTK_IS_WIDGET (child));
- g_return_if_fail (child->parent == GTK_WIDGET (container));
+ g_return_if_fail (gtk_widget_get_parent (child) == GTK_WIDGET (container));
child_was_visible = gtk_widget_get_visible (child);
@@ -199,7 +199,7 @@ eel_gtk_container_child_size_allocate (GtkContainer *container,
}
g_return_if_fail (GTK_IS_WIDGET (child));
- g_return_if_fail (child->parent == GTK_WIDGET (container));
+ g_return_if_fail (gtk_widget_get_parent (child) == GTK_WIDGET (container));
if (eel_irect_is_empty (&child_geometry)) {
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]