summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/about.c4
-rw-r--r--src/util.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/about.c b/src/about.c
index de85a549..67c2474c 100644
--- a/src/about.c
+++ b/src/about.c
@@ -295,9 +295,9 @@ zenity_about (ZenityData *data)
gtk_widget_show (help_button);
- gtk_box_pack_end (GTK_BOX (GTK_DIALOG (dialog)->action_area),
+ gtk_box_pack_end (GTK_BOX (gtk_dialog_get_action_area (GTK_DIALOG (dialog))),
help_button, FALSE, TRUE, 0);
- gtk_button_box_set_child_secondary (GTK_BUTTON_BOX (GTK_DIALOG (dialog)->action_area),
+ gtk_button_box_set_child_secondary (GTK_BUTTON_BOX (gtk_dialog_get_action_area (GTK_DIALOG (dialog))),
help_button, TRUE);
g_signal_connect (G_OBJECT (dialog), "response",
diff --git a/src/util.c b/src/util.c
index 036e2b54..96bf3152 100644
--- a/src/util.c
+++ b/src/util.c
@@ -403,8 +403,8 @@ zenity_util_show_dialog (GtkWidget *dialog)
{
gtk_widget_realize (dialog);
#ifdef GDK_WINDOWING_X11
- g_assert (dialog->window);
- zenity_util_make_transient (dialog->window);
+ g_assert (gtk_widget_get_window(dialog));
+ zenity_util_make_transient (gtk_widget_get_window(dialog));
#endif
gtk_widget_show (dialog);
}
bgstack15