[gtk-list] Re: styles and rc files.



It's not ok.  gtk_rc_parse doesn't expand out things like "~/" that is shell
specific.  You'd have to expand that out yourself and pass the expanded path
string to gtk_rc_parse ().  I'd suggest using g_get_home_dir in glib then
appending a given file to it and finally sending it to gtk_rc_parse.

tile

According to Michael Sobolev:
| No, it does not.  At the very beginning I put the following lines:
| 
|     gtk_set_locale ();
|     gtk_init (&argc, &argv);
|     gtk_rc_parse ("~/.filerc");
| 
|     ...
| 
|     my code
| 
|     ...
| 
| I believe this should be ok, no?
| 
| --
| Mike



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