[Gtk-sharp-list] rc resource file working

luca luca.maccari at gmail.com
Thu Jul 21 10:45:23 EDT 2011


Dear all,

i'm trying to use my own .rc file in my application, seems to not work fine
and i'm asking what i did wrong
i've read this tutorial
http://developer.gnome.org/gtk-tutorial/2.90/c2111.html
but maybe i've missed something important point

i've got an .rc file, that contains this line

*widget_class "GtkWindow" style "window"*

where 

*style "window"
{
   fg[<NORMAL>] = {0.0, 0.0, 1.0}
  bg[<NORMAL>] = {0.0, 1.0, 0.0}	
}*

and, in my mainClass, is excecute  :
{
     
                	private static MainWindow _Window;
 		        public static MainWindow Window {
       		        get {
      			  if( _Window == null ) {
        			
				_Window = new MainWindow();
				_Window.Name = "window";
			}
      			return _Window;
    		        }
  		        } 
					
		public static void Main (string[] args)
		{
			
		
Gtk.Rc.AddDefaultFile("/home/luca/Projects/dataView/dataView/bin/Debug/normal-theme.rc");
			Gtk.Rc.Parse("normal-theme.rc");
			Gtk.Application.Init();
			Console.WriteLine(""+Gtk.Rc.ModuleDir);
			foreach ( string file in Gtk.Rc.DefaultFiles ) {
				
				Console.WriteLine(""+file);
			}
			Window.Title = "DATAVIEW";
			Window.ShowAll();
			Application.Run ();
		}

output is : 
/usr/lib/gtk-2.0/2.10.0/engines		
/etc/gtk-2.0/gtkrc
/home/luca/.gtkrc-2.0
/home/luca/Projects/dataView/dataView/bin/Debug/normal-theme.rc

all suggestions to solve this problem is very appreciate,

best regards,
Luca

--
View this message in context: http://mono.1490590.n4.nabble.com/rc-resource-file-working-tp3683860p3683860.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.


More information about the Gtk-sharp-list mailing list