X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=examples%2Fhildon-banner-example.c;h=847172dae72f16ad615939749c7d65a9daff3417;hb=ece69692d489b5975cd0bf24d454c035f3f12ca1;hp=b5b13a64f5beb61c6749bb2da2f95f12c418f6d8;hpb=547b89e39b4750436dc96e4baa78798e334f659e;p=hildon diff --git a/examples/hildon-banner-example.c b/examples/hildon-banner-example.c index b5b13a6..847172d 100644 --- a/examples/hildon-banner-example.c +++ b/examples/hildon-banner-example.c @@ -24,6 +24,8 @@ #include +#ifndef HILDON_DISABLE_DEPRECATED + static gboolean on_animation_idle (GtkWidget *banner) { @@ -40,6 +42,8 @@ on_progress_idle (GtkWidget *banner) return FALSE; } +#endif + static gboolean on_information_clicked (GtkWidget *widget) { @@ -48,6 +52,8 @@ on_information_clicked (GtkWidget *widget) return TRUE; } +#ifndef HILDON_DISABLE_DEPRECATED + static gboolean on_animation_clicked (GtkWidget *widget) { @@ -66,12 +72,17 @@ on_progress_clicked (GtkWidget *widget) return TRUE; } +#endif + int main (int argc, char **argv) { HildonProgram *program; - GtkWidget *window, *vbox, *button1, *button2, *button3; + GtkWidget *window, *vbox, *button1; +#ifndef HILDON_DISABLE_DEPRECATED + GtkWidget *button2, *button3; +#endif hildon_gtk_init (&argc, &argv); @@ -82,16 +93,20 @@ main (int argc, button1 = gtk_button_new_with_label ("Information"); g_signal_connect (button1, "clicked", G_CALLBACK (on_information_clicked), NULL); +#ifndef HILDON_DISABLE_DEPRECATED button2 = gtk_button_new_with_label ("Animation"); g_signal_connect (button2, "clicked", G_CALLBACK (on_animation_clicked), NULL); button3 = gtk_button_new_with_label ("Progress"); g_signal_connect (button3, "clicked", G_CALLBACK (on_progress_clicked), NULL); +#endif vbox = gtk_vbox_new (6, FALSE); gtk_box_pack_start (GTK_BOX (vbox), button1, TRUE, TRUE, 0); +#ifndef HILDON_DISABLE_DEPRECATED gtk_box_pack_start (GTK_BOX (vbox), button2, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (vbox), button3, TRUE, TRUE, 0); +#endif gtk_container_set_border_width (GTK_CONTAINER (window), 6); gtk_container_add (GTK_CONTAINER (window), vbox);