<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font style="font-family: verdana,helvetica,sans-serif;" size="2">hi,<br>i want to use gtk resource file (e.g. MyResource.rc ) to change background colour / to put background image on widget<br>i am able to do same thing in simple gtk application . the same application is not able to load resource file on maemo platform .Is there any difference to load / write the resouce for maemo application (in hildon framework)?<br><br>MyResource.rc<br>-------------------------------------------------------<br>pixmap_path "../common/images/"<br><br>style "window"<br>{<br> bg_pixmap[NORMAL] = "bg.xpm"<br>}<br>widget_class "GtkWindow" style "window"<br><br>---------------------------------------------------------<br><br>App.c
/* Gtk App */<br>----------------------------------------------------------<br>int main(int argc ,char* argv[])
<br>{
<br> GtkWidget *window;<br> gtk_init(&argc,&argv);<br> <br> window = gtk_window_new(GTK_WINDOW_TOPLEVEL);<br> gtk_widget_set_name (window, "window");<br> <br> gtk_rc_parse ("</font><font style="font-family: verdana,helvetica,sans-serif;" size="2">MyResource.rc</font><font style="font-family: verdana,helvetica,sans-serif;" size="2">");<br> gtk_widget_show(window);
<br> gtk_main();<br>
<br> return 0;
<br>}<br>------------------------------------------------------------<br><br>App.c /*maemo App in Hildon */<br>-------------------------------------------------------------<br>int main( int argc, char* argv[] )<br>{<br> <br> HildonProgram* program; <br> GtkWidget* window; <br><br> gtk_init( &argc, &argv );<br><br> program = HILDON_PROGRAM( hildon_program_get_instance() );<br> g_set_application_name( "My App" );<br> <br> window = hildon_window_new();<br> gtk_widget_set_name (window ,"window");<br> </font><font style="font-family: verdana,helvetica,sans-serif;" size="2"> gtk_rc_parse ("</font><font style="font-family: verdana,helvetica,sans-serif;" size="2">MyResource.rc</font><font style="font-family:
verdana,helvetica,sans-serif;" size="2">"); <br></font><font style="font-family: verdana,helvetica,sans-serif;" size="2"> <br> hildon_program_add_window( program, HILDON_WINDOW(window));<br> </font><font style="font-family: verdana,helvetica,sans-serif;" size="2"><br> gtk_widget_show(window); <br> gtk_main(); <br> <br> return 0;<br>}<br><br><br>-------------------------------------------------------------<br>Thx<br>minti</font><span style="font-weight: bold;"><font size="2"><br><br><span style="font-weight: bold;"></span></font><br></span></div><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com </body></html>