diff options
author | Tomasz Sterna <tomek@xiaoka.com> | 2012-01-24 00:31:21 +0100 |
---|---|---|
committer | Tomasz Sterna <tomek@xiaoka.com> | 2012-05-30 23:10:22 +0300 |
commit | cfcc03069b4082441b39bf12af388466e5f0477a (patch) | |
tree | 50ba7d97404a36966c216620a3bd34d36be63fdc /examples/hildon-dialog-example.c | |
parent | a433453ead9f66019cc4625aeaa2b2a2e6101770 (diff) |
Fixed examples to new widgets code
Diffstat (limited to 'examples/hildon-dialog-example.c')
-rw-r--r-- | examples/hildon-dialog-example.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/hildon-dialog-example.c b/examples/hildon-dialog-example.c index 695b561..ac24659 100644 --- a/examples/hildon-dialog-example.c +++ b/examples/hildon-dialog-example.c @@ -28,27 +28,27 @@ int main (int argc, char **argv) { - HildonDialog *d, *d2; + GtkDialog *d, *d2; GtkWidget *label, *label2; hildon_gtk_init (&argc, &argv); - /* First dialog, using hildon_dialog_new() */ + /* First dialog, using gtk_dialog_new() */ - d = HILDON_DIALOG (hildon_dialog_new ()); + d = GTK_DIALOG (gtk_dialog_new ()); label = gtk_label_new ("Hello, world!"); gtk_window_set_title (GTK_WINDOW (d), "Hi!"); - hildon_dialog_add_button (HILDON_DIALOG (d), GTK_STOCK_OK, GTK_RESPONSE_NONE); - gtk_container_add (GTK_CONTAINER (GTK_DIALOG(d)->vbox), label); + gtk_dialog_add_button (GTK_DIALOG (d), GTK_STOCK_OK, GTK_RESPONSE_NONE); + gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (d)), label); gtk_widget_show_all (GTK_WIDGET (d)); gtk_dialog_run (GTK_DIALOG (d)); - /* Second dialog, using hildon_dialog_new_with_buttons() */ + /* Second dialog, using gtk_dialog_new_with_buttons() */ - d2 = HILDON_DIALOG (hildon_dialog_new_with_buttons ("Hi again!", + d2 = GTK_DIALOG (gtk_dialog_new_with_buttons ("Hi again!", GTK_WINDOW (d), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_OK, @@ -59,7 +59,7 @@ main (int argc, label2 = gtk_label_new ("Hello, again!"); - gtk_container_add (GTK_CONTAINER (GTK_DIALOG(d2)->vbox), label2); + gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (d2)), label2); gtk_widget_show_all (GTK_WIDGET (d2)); |