Change GTK_DIALOG(dialog)->vbox to gtk_dialog_get_content_area() in order to compile with GTK 3.0

This commit is contained in:
Arx Cruz 2010-07-12 12:57:47 -03:00
parent 79ea294e0a
commit 7969d942c8

View File

@ -67,7 +67,7 @@ void zenity_password_dialog (ZenityData *data, ZenityPasswordData *password_data
FALSE, FALSE,
FALSE, FALSE,
12); 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, hbox,
FALSE, FALSE,
TRUE, TRUE,
@ -77,7 +77,7 @@ void zenity_password_dialog (ZenityData *data, ZenityPasswordData *password_data
vbox_entries = gtk_vbox_new(FALSE, 5); vbox_entries = gtk_vbox_new(FALSE, 5);
hbox = gtk_hbox_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, hbox,
FALSE, FALSE,
TRUE, TRUE,
@ -135,7 +135,7 @@ void zenity_password_dialog (ZenityData *data, ZenityPasswordData *password_data
g_signal_connect (G_OBJECT (dialog), "response", g_signal_connect (G_OBJECT (dialog), "response",
G_CALLBACK (zenity_password_dialog_response), G_CALLBACK (zenity_password_dialog_response),
password_data); 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); zenity_util_show_dialog (dialog);
if (data->timeout_delay > 0) { if (data->timeout_delay > 0) {