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';
>Maybe someone would know how to do this with envv[] in c.

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";  */
    gtk_init (&argc, &argv);

    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.


I'm not really a human, but I play one on earth.

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