[Crossfire-wiki] [Crossfire DokuWiki] page changed: client:scratchpad

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Sun Apr 18 00:29:08 CDT 2010


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2010/04/18 00:29
User        : kbulgrien
Edit Summary: Add a note on forcing the gtk-v2 client to use special gtkrc settings.

@@ -16,8 +16,22 @@
  * User-interface controls to configure what audio file to play for a particular mood.
  * Deploy a basic set of standard audio files with the client.
  
  ======User Interface=====
+ 
+ =====Style=====
+ 
+ ====Notes====
+ 
+ GTK2_RC_FILES="some_rc_file" should make GTK consider it the default application file and might be useful for experimenting with overriding system defaults to get the UI to render differently (IE smaller fonts on controls).  For example, <code>GTK2_RC_FILES=/home/username/.gtkrc.en_US; gdb ./crossfire-client-gtk2</code> can be shown to impact GTK environment by changing main() to add a gtk_rc_get_default_files() call and inspecting the value (char *) *flist in GDB with and without the GTK2_RC_FILES variable set. 
+ 
+   gchar** flist;
+   
+   gtk_set_locale ();
+   flist = gtk_rc_get_default_files();
+   gtk_init (&argc, &argv);
+ 
+ This worked to alter the application appearance when a sample .gtkrc file was tested.  There are programmatic ways to do this also, but this is a start to allowing one to figure out what might be possible to tweak before implementing some support in a theme file or other mechanism.
  
  =====Controls=====
  
  ====Pickup====


IP-Address  : 75.23.40.208
Old Revision: http://wiki.metalforge.net/doku.php/client:scratchpad?rev=1248148159
New Revision: http://wiki.metalforge.net/doku.php/client:scratchpad

-- 
This mail was generated by DokuWiki at
http://wiki.metalforge.net/




More information about the crossfire-wiki mailing list