Hi,<br><br>I&#39;m using personalized rc files in my application[1], and works fine, You can see the code and rc files on svn[2]. Verify mtv-theme.c[3] and gtkrc[4].<br><br><br>Try change your rc file to something like this (I do not know if &quot;xpm&quot; is supported, I use &quot;png&quot;):
<br><font style="font-family: verdana,helvetica,sans-serif;" size="2">------------------------------------------------------------------------------------------<br>style &quot;window&quot;<br>{<br>&nbsp;&nbsp;&nbsp; engine &quot;sapwood&quot; {
<br>&nbsp;&nbsp;&nbsp; image {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function = BOX<br>&nbsp; &nbsp; &nbsp;&nbsp; file &nbsp; &nbsp; &nbsp;&nbsp; = &quot;../common/images/bg.xmp&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp; }<br>}<br>class &quot;GtkWindow&quot; style &quot;window&quot;<br>----------------------------------------------------------------------------------------------
<br></font><br>&quot;sapwood&quot; is the default engine used on maemo platform, it is more faster then pixmap engine.<br><br>[1]https://garage.maemo.org/projects/mtv/<br>[2]https://garage.maemo.org/svn/mtv/trunk/mtv/<br>
[3]https://garage.maemo.org/svn/mtv/trunk/mtv/src/mtv-theme.c<br>[4]https://garage.maemo.org/svn/mtv/trunk/mtv/data/themes/indt/gtkrc<br><br>BR<br>Renato Araujo Filho<br><br><br><div><span class="gmail_quote">On 10/30/07, 
<b class="gmail_sendername">Minti Maemo</b> &lt;<a href="mailto:minti.maemo@yahoo.com">minti.maemo@yahoo.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><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&nbsp; (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&nbsp; 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 &quot;../common/images/&quot;<br><br>style &quot;window&quot;<br>{<br>&nbsp;&nbsp;&nbsp; &nbsp;bg_pixmap[NORMAL] =&nbsp; &quot;bg.xpm&quot;<br>}<br>widget_class &quot;GtkWindow&quot; style &quot;window&quot;
<br><br>---------------------------------------------------------<br><br>App.c&nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp; 
 &nbsp;&nbsp;  &nbsp;&nbsp;  /* Gtk App */<br>----------------------------------------------------------<br>int main(int argc ,char* argv[])
<br>{
<br>&nbsp;&nbsp;&nbsp; GtkWidget *window;<br>&nbsp;&nbsp;&nbsp; gtk_init(&amp;argc,&amp;argv);<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; window = gtk_window_new(GTK_WINDOW_TOPLEVEL);<br>&nbsp;&nbsp;&nbsp; gtk_widget_set_name (window, &quot;window&quot;);<br>&nbsp; <br>&nbsp;&nbsp;&nbsp; gtk_rc_parse (&quot;</font>
<font style="font-family: verdana,helvetica,sans-serif;" size="2">MyResource.rc</font><font style="font-family: verdana,helvetica,sans-serif;" size="2">&quot;);<br>&nbsp;&nbsp;&nbsp; gtk_widget_show(window);
<br>&nbsp;&nbsp;&nbsp; gtk_main();<br>&nbsp;&nbsp;&nbsp;&nbsp; 
<br>&nbsp;&nbsp;&nbsp; return 0;
<br>}<br>------------------------------------------------------------<br><br>App.c &nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  &nbsp;&nbsp;  /*maemo App in Hildon */<br>-------------------------------------------------------------<br>int main( int argc, char* argv[] )
<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; HildonProgram* program; <br>&nbsp;&nbsp;&nbsp; GtkWidget* window; <br><br>&nbsp;&nbsp;&nbsp;&nbsp; gtk_init( &amp;argc, &amp;argv );<br><br>&nbsp;&nbsp;&nbsp; program = HILDON_PROGRAM( hildon_program_get_instance() );<br>&nbsp;&nbsp;&nbsp; g_set_application_name( &quot;My App&quot; );
<br>&nbsp; <br>&nbsp;&nbsp;&nbsp; window&nbsp; =&nbsp; hildon_window_new();<br>&nbsp;&nbsp;&nbsp; gtk_widget_set_name (window ,&quot;window&quot;);<br>&nbsp; </font><font style="font-family: verdana,helvetica,sans-serif;" size="2">&nbsp; gtk_rc_parse (&quot;</font><font style="font-family: verdana,helvetica,sans-serif;" size="2">
MyResource.rc</font><font style="font-family: verdana,helvetica,sans-serif;" size="2">&quot;); <br></font><font style="font-family: verdana,helvetica,sans-serif;" size="2">&nbsp; &nbsp;  <br>&nbsp;&nbsp;&nbsp; hildon_program_add_window( program, HILDON_WINDOW(window));
<br>&nbsp; </font><font style="font-family: verdana,helvetica,sans-serif;" size="2"><br>&nbsp;&nbsp;&nbsp; gtk_widget_show(window); <br>&nbsp;&nbsp;&nbsp; gtk_main();&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; return 0;<br>}<br><br><br>-------------------------------------------------------------
<br>Thx<br>minti</font><span style="font-weight: bold;"><font size="2"><br><span class="ad"><br><span style="font-weight: bold;"></span></span></font><span class="ad"><br></span></span></div><span class="ad"><br>__________________________________________________
<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br><a href="http://mail.yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://mail.yahoo.com</a> </span>
</div><br>_______________________________________________<br>maemo-developers mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a>
<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.maemo.org/mailman/listinfo/maemo-developers" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-developers</a><br><br></blockquote>
</div><br><br clear="all"><br>-- <br>Renato Araujo Oliveira Filho<br>Instituto Nokia de Tecnologia - INdT