diff options
author | Arx Cruz <arxcruz@src.gnome.org> | 2010-07-12 12:57:47 -0300 |
---|---|---|
committer | Arx Cruz <arxcruz@src.gnome.org> | 2010-07-12 12:57:47 -0300 |
commit | 7969d942c8c1d6fa4b5536d36080a5331db196d7 (patch) | |
tree | 73d7b941222943f1187ca08c5c1eb0aa98071de4 /src | |
parent | Just changing the copyright. (diff) | |
download | zenity-7969d942c8c1d6fa4b5536d36080a5331db196d7.tar.gz zenity-7969d942c8c1d6fa4b5536d36080a5331db196d7.tar.bz2 zenity-7969d942c8c1d6fa4b5536d36080a5331db196d7.zip |
Change GTK_DIALOG(dialog)->vbox to gtk_dialog_get_content_area() in order to compile with GTK 3.0
Diffstat (limited to 'src')
-rw-r--r-- | src/password.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/password.c b/src/password.c index 7aee3068..00896eaf 100644 --- a/src/password.c +++ b/src/password.c @@ -67,7 +67,7 @@ void zenity_password_dialog (ZenityData *data, ZenityPasswordData *password_data FALSE, FALSE, 12); - gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), + gtk_box_pack_start(GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), hbox, FALSE, TRUE, @@ -77,7 +77,7 @@ void zenity_password_dialog (ZenityData *data, ZenityPasswordData *password_data vbox_entries = gtk_vbox_new(FALSE, 5); hbox = gtk_hbox_new(FALSE, 5); - gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), + gtk_box_pack_start(GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(dialog))), hbox, FALSE, TRUE, @@ -135,7 +135,7 @@ void zenity_password_dialog (ZenityData *data, ZenityPasswordData *password_data g_signal_connect (G_OBJECT (dialog), "response", G_CALLBACK (zenity_password_dialog_response), password_data); - gtk_widget_show_all(GTK_WIDGET(GTK_DIALOG(dialog)->vbox)); + gtk_widget_show_all(GTK_WIDGET(gtk_dialog_get_content_area(GTK_DIALOG(dialog)))); zenity_util_show_dialog (dialog); if (data->timeout_delay > 0) { |