Re: GTK Widgets drawing an undesired background



On Sun, 26 Aug 2007 14:02:46 -0400
zentara <zentara1 sbcglobal net> wrote:

> In Perl:

>use Gtk2;      
>$ENV{GTK2_RC_FILES}= 'somepath_to_a_custom_rc_file';
>Gtk2->init;            
>
>Maybe someone would know how to do this with envv[] in c.
>zentara

Here is the same thing in c. 

int main (int argc, char **argv){

    const char* gtk_env = "GTK2_RC_FILES"; 
    const char* rc_file = "";          
/*  const char* rc_file = "myapp_rc";  */
    setenv(gtk_env,rc_file,1); 
    
    gtk_init (&argc, &argv);

    Main();
    gtk_main ();
    
}

So you can set it to empty, for full program control over colors,
or set it to a custom rc file for the program.


zentara

-- 
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]