X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=examples%2Fhildon-color-pop-example.c;h=7988bdd69af77a9a7fc49ae22ca00f60716153b3;hb=4b7a3e775470d82b8ba2c5d896edbb8911aca2f0;hp=ebe33a7fd3eb79e9b197a49b74172e39dad998a1;hpb=5157d53fef688ef5e766448854b8dbf4b6f8b45b;p=hildon diff --git a/examples/hildon-color-pop-example.c b/examples/hildon-color-pop-example.c index ebe33a7..7988bdd 100644 --- a/examples/hildon-color-pop-example.c +++ b/examples/hildon-color-pop-example.c @@ -8,7 +8,7 @@ * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; version 2.1 of - * the License. + * the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -26,7 +26,7 @@ #include #include #include -#include "hildon.h" +#include #include gpointer @@ -40,9 +40,9 @@ new_thread_func (gpointer data) sleep (3); - if (hildon_color_button_get_is_popped (button)) { + if (hildon_color_button_get_popup_shown (button)) { g_debug ("Dialog popped, trying to close it!"); - hildon_color_button_pop_up (button); + hildon_color_button_popdown (button); } else { g_debug ("Dialog not popped, doing nothing"); } @@ -52,11 +52,11 @@ new_thread_func (gpointer data) int main (int argc, - char **args) + char **argv) { g_thread_init (NULL); - gtk_init (&argc, &args); - + hildon_gtk_init (&argc, &argv); + HildonProgram *program = hildon_program_get_instance (); GtkWidget *window = hildon_window_new ();