[gnome-system-tools] Fix all remaining -DGSEAL_ENABLE issues except for e-map.c for bug 612483.



commit 8bf4330869c31ccbe44923bac404c232699ed9f4
Author: Andre Klapper <a9016009 gmx de>
Date:   Thu Apr 8 15:13:06 2010 +0200

    Fix all remaining -DGSEAL_ENABLE issues except for e-map.c for bug 612483.

 src/time/time-tool.c      |    6 +++---
 src/users/user-settings.c |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/time/time-tool.c b/src/time/time-tool.c
index 8cd0c87..f36895d 100644
--- a/src/time/time-tool.c
+++ b/src/time/time-tool.c
@@ -462,8 +462,8 @@ on_option_changed (GtkWidget   *combo,
 	container = gst_dialog_get_widget (GST_TOOL (time_tool)->main_dialog, "configuration_container");
 
 	/* remove the child */
-	if (GTK_BIN (container)->child)
-		gtk_container_remove (GTK_CONTAINER (container), GTK_BIN (container)->child);
+	if (gtk_bin_get_child (GTK_BIN (container)))
+		gtk_container_remove (GTK_CONTAINER (container), gtk_bin_get_child (GTK_BIN (container)));
 
 	gtk_container_add (GTK_CONTAINER (container), widget);
 	gtk_widget_show_all (container);
@@ -482,7 +482,7 @@ add_option (GstTool      *tool,
 	toplevel = gtk_widget_get_toplevel (w);
 
 	g_object_ref (w);
-	gtk_container_remove (GTK_CONTAINER (w->parent), w);
+	gtk_container_remove (GTK_CONTAINER (gtk_widget_get_parent (w)), w);
 	gtk_widget_destroy (toplevel);
 
 	gtk_list_store_append (store, &iter);
diff --git a/src/users/user-settings.c b/src/users/user-settings.c
index 5d4a8fc..2d7f00a 100644
--- a/src/users/user-settings.c
+++ b/src/users/user-settings.c
@@ -493,7 +493,7 @@ check_shell (gchar **primary_text, gchar **secondary_text, gpointer data)
 	const gchar *path;
 
 	widget = gst_dialog_get_widget (tool->main_dialog, "user_settings_shell");
-	path = gtk_entry_get_text (GTK_ENTRY (GTK_BIN (widget)->child));
+	path = gtk_entry_get_text (GTK_ENTRY (gtk_bin_get_child (GTK_BIN (widget))));
 
 	if (strlen (path) < 1 || !g_path_is_absolute (path)) {
 		*primary_text = g_strdup (_("Incomplete path in shell"));
@@ -1233,7 +1233,7 @@ on_edit_user_advanced (GtkButton *button, gpointer user_data)
 	set_entry_text (widget, (user) ? oobs_user_get_home_phone_number (user) : NULL);
 
 	widget = gst_dialog_get_widget (tool->main_dialog, "user_settings_shell");
-	set_entry_text (GTK_BIN (widget)->child, oobs_user_get_shell (user));
+	set_entry_text (gtk_bin_get_child (GTK_BIN (widget)), oobs_user_get_shell (user));
 
 	widget = gst_dialog_get_widget (tool->main_dialog, "user_settings_home");
 	set_entry_text (widget, oobs_user_get_home_directory (user));
@@ -1289,7 +1289,7 @@ on_edit_user_advanced (GtkButton *button, gpointer user_data)
 	oobs_user_set_home_phone_number (user, gtk_entry_get_text (GTK_ENTRY (widget)));
 
 	widget = gst_dialog_get_widget (tool->main_dialog, "user_settings_shell");
-	oobs_user_set_shell (user, gtk_entry_get_text (GTK_ENTRY (GTK_BIN (widget)->child)));
+	oobs_user_set_shell (user, gtk_entry_get_text (GTK_ENTRY (gtk_bin_get_child (GTK_BIN (widget)))));
 
 	widget = gst_dialog_get_widget (tool->main_dialog, "user_settings_home");
 	oobs_user_set_home_directory (user, gtk_entry_get_text (GTK_ENTRY (widget)));



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