[maemo-developers] [maemo-developers] show a lot of widget at the same time
From: rh ronny at get-intouch.comDate: Mon Jul 25 12:27:28 EEST 2005
- Previous message: [maemo-developers] show a lot of widget at the same time
- Next message: [maemo-developers] show a lot of widget at the same time
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, I want to change the view of the MaemoPad tutorial. So I want to add image & button on the blank area at the middle of the screen. The image size is fullscreen (800 x 480), and I want to put the button at the middle of the image. The image is appear, but the button doesn't appear. Why ? Can you tell me what's wrong with my program ? My code is like this : MainView* interface_main_view_new( AppData *data ) { MainView* result = g_new0( MainView, 1 ); GtkWidget *main_vbox = gtk_vbox_new( FALSE, 0 ); result->clipboard = gtk_clipboard_get(GDK_SELECTION_CLIPBOARD); result->file_edited = FALSE; result->data = data; result->data->main_view =HILDON_APPVIEW(hildon_appview_new( _( MAIN_TEXT ) )); create_textarea( result ); create_toolbar( result ); create_menu( result ); result->image =gtk_image_new_from_file("/usr/share/themes/default/images/mainscreen.jpg"); result->button=gtk_button_new_with_label("test"); gtk_container_add( GTK_CONTAINER(result->data->main_view ), main_vbox ); gtk_box_pack_start( GTK_BOX( main_vbox ),result->scrolledwindow, TRUE, TRUE, 0 ); gtk_box_pack_start( GTK_BOX( main_vbox ),result->image, TRUE, TRUE, 0 ); gtk_box_pack_start( GTK_BOX( main_vbox ),result->button, TRUE, TRUE, 0 ); gtk_widget_show(result->image); gtk_widget_show(result->button); gtk_widget_show( main_vbox ); gtk_widget_grab_focus( GTK_WIDGET(result->textview)); result->file_edited=FALSE; result->file_name=NULL; return result; } BR, Ronny
- Previous message: [maemo-developers] show a lot of widget at the same time
- Next message: [maemo-developers] show a lot of widget at the same time
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]