![]() |
2009-10-28
, 00:00
|
Posts: 61 |
Thanked: 43 times |
Joined on Aug 2008
|
#2
|
![]() |
2009-10-28
, 04:13
|
Posts: 289 |
Thanked: 101 times |
Joined on Oct 2009
|
#3
|
![]() |
2009-10-28
, 17:49
|
|
Posts: 1,665 |
Thanked: 1,649 times |
Joined on Jun 2008
@ Praha, Czech Republic
|
#4
|
![]() |
2009-10-28
, 17:53
|
Posts: 289 |
Thanked: 101 times |
Joined on Oct 2009
|
#5
|
static void show_new_window (void) { GtkWidget *win; win = hildon_stackable_window_new (); // ... configure new window gtk_widget_show (win); } int main (int argc, char **argv) { GtkWidget *win; GtkWidget *button; gtk_init (&argc, &args); win = hildon_stackable_window_new (); gtk_window_set_title (GTK_WINDOW (win), "Main window); // ... add some widgets to the window g_signal_connect (button, "clicked", G_CALLBACK (show_new_window), NULL); g_signal_connect (win, "destroy", G_CALLBACK (gtk_main_quit), NULL); gtk_widget_show_all (win); gtk_main (); return 0; }
![]() |
2009-10-28
, 18:00
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#6
|
gtk_window_set_title (GTK_WINDOW (win), "Main window);
![]() |
2009-10-28
, 18:16
|
Posts: 61 |
Thanked: 43 times |
Joined on Aug 2008
|
#7
|
![]() |
2009-10-28
, 18:34
|
Posts: 289 |
Thanked: 101 times |
Joined on Oct 2009
|
#8
|
int main(int argc, char *argv[]) { HildonProgram *program; HildonWindow *window; GtkWidget *button; /* This is called in all Hildon applications. Arguments are parsed * from the command line and are returned to the application. */ hildon_gtk_init (&argc, &argv); /* Get an instance of HildonProgram. It is an object used to represent * an application running in the Hildon framework. */ program = HILDON_PROGRAM( hildon_program_get_instance () ); /* Set the program title */ g_set_application_name("Hello World"); /* create a new hildon window */ window = HILDON_WINDOW( hildon_window_new () ); gtk_window_set_title(GTK_WINDOW(window), "Kokbok"); /* Registers a window as belonging to the program */ hildon_program_add_window (program, window);
![]() |
2009-10-28
, 19:14
|
Posts: 61 |
Thanked: 43 times |
Joined on Aug 2008
|
#9
|
![]() |
2009-10-28
, 19:45
|
Posts: 289 |
Thanked: 101 times |
Joined on Oct 2009
|
#10
|
Yours Lullen