[Glade-users] Resource file.



This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C47B0E.9CDEC420
Content-Type: multipart/alternative;
        boundary="----_=_NextPart_001_01C47B0E.9CDEC420"


------_=_NextPart_001_01C47B0E.9CDEC420
Content-Type: text/plain;
        charset="iso-8859-1"

I have a little program which I using Glade-2 to generate C++ code.
After that I tried to add some look and feel into it by using the resource
file as direct by GTK + 2.0 Tutorial.
I was not lucky and didn't not know why.
 
I have a resource file name:  project1.rf   in the same directory as my
program:
 
 
      style "window"
        {
 
          fg[NORMAL] = [1.0, 1.0, 0]
          bg[NORMAL] =[.99, 0, .99]
 
        }
 
      style "button"
      {
         font = "-b&h-lucida sans
typewriter-bold-r-normal-sans-14-140-72-72-m-90-iso8859-1"
       }
 
     widget_class GtkWindow style "window"
     widget_class GtkButton style "button"
 
In main() before instantiating two windows,  I called:  
 
 char * rsf = " project1.rf";
 gtk_rc_parse(rsf);
 
 
 It just did not have any effect on my interface.  Please help.        
 Thank to John for you help on the removing the title bar.

                                                                          
 
 
Thuy Tran
NSWCDD -T25
Bld.1490T Rm. 151
(540)653-6799

 


------_=_NextPart_001_01C47B0E.9CDEC420
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<TITLE id=3DridTitle>Blank</TITLE>

<STYLE>BODY {
        MARGIN-TOP: 25px; FONT-SIZE: 10pt; MARGIN-LEFT: 25px; COLOR: #000000; =
FONT-FAMILY: Arial, Helvetica
}
P.msoNormal {
        MARGIN-TOP: 0px; FONT-SIZE: 10pt; MARGIN-LEFT: 0px; COLOR: #ffffcc; =
FONT-FAMILY: Helvetica, "Times New Roman"
}
LI.msoNormal {
        MARGIN-TOP: 0px; FONT-SIZE: 10pt; MARGIN-LEFT: 0px; COLOR: #ffffcc; =
FONT-FAMILY: Helvetica, "Times New Roman"
}
</STYLE>

<META content=3D"MSHTML 6.00.2800.1458" name=3DGENERATOR></HEAD>
<BODY id=3DridBody background=3Dcid:960535416@05082004-1e21>
<DIV><SPAN class=3D960535416-05082004>I have a little program which I =
using=20
Glade-2 to generate C++ code.</SPAN></DIV>
<DIV><SPAN class=3D960535416-05082004>After that I tried to add some =
look and feel=20
into it by using the resource file as direct by GTK + 2.0 =
Tutorial.</SPAN></DIV>
<DIV><SPAN class=3D960535416-05082004>I was not lucky and didn't not =
know=20
why.</SPAN></DIV>
<DIV><SPAN class=3D960535416-05082004></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D960535416-05082004>I have a resource file =
name:&nbsp;=20
project1.rf&nbsp;&nbsp; in the same directory as my =
program:</SPAN></DIV>
<DIV><SPAN class=3D960535416-05082004></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D960535416-05082004></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D960535416-05082004>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
style=20
"window"</SPAN></DIV>
<DIV><SPAN =
class=3D960535416-05082004>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
{</SPAN></DIV>
<DIV><SPAN class=3D960535416-05082004></SPAN>&nbsp;</DIV>
<DIV><SPAN=20
class=3D960535416-05082004>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;=20
fg[NORMAL] =3D [1.0, 1.0, 0]</SPAN></DIV>
<DIV><SPAN=20
class=3D960535416-05082004>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;=20
bg[NORMAL] =3D[.99, 0, .99]</SPAN></DIV>
<DIV><SPAN class=3D960535416-05082004></SPAN>&nbsp;</DIV>
<DIV><SPAN =
class=3D960535416-05082004>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
}</SPAN></DIV>
<DIV><SPAN class=3D960535416-05082004></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D960535416-05082004>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
style=20
"button"</SPAN></DIV>
<DIV><SPAN class=3D960535416-05082004>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
{</SPAN></DIV>
<DIV><SPAN=20
class=3D960535416-05082004>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; font =3D=20
"-b&amp;h-lucida sans=20
typewriter-bold-r-normal-sans-14-140-72-72-m-90-iso8859-1"</SPAN></DIV>
<DIV><SPAN =
class=3D960535416-05082004>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
}</SPAN></DIV>
<DIV><SPAN class=3D960535416-05082004></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D960535416-05082004>&nbsp;&nbsp; &nbsp; widget_class =
GtkWindow=20
style "window"</SPAN></DIV>
<DIV><SPAN class=3D960535416-05082004>&nbsp;&nbsp;&nbsp; =
&nbsp;widget_class=20
GtkButton style "button"</SPAN></DIV>
<DIV><SPAN class=3D960535416-05082004></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D960535416-05082004>In main() before instantiating =
two windows,=20
&nbsp;I called:&nbsp; </SPAN></DIV>
<DIV><SPAN class=3D960535416-05082004></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D960535416-05082004>&nbsp;char * rsf =3D "=20
project1.rf";</SPAN></DIV>
<DIV><SPAN =
class=3D960535416-05082004>&nbsp;gtk_rc_parse(rsf);</SPAN></DIV>
<DIV><SPAN class=3D960535416-05082004></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D960535416-05082004></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D960535416-05082004>&nbsp;It just did not have any =
effect on my=20
interface.&nbsp;=20
Please&nbsp;help.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>=
</DIV>
<DIV><SPAN class=3D960535416-05082004>&nbsp;Thank to John for you =
help&nbsp;on the=20
removing the title bar.</SPAN><SPAN=20
class=3D960535416-05082004>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</SPAN></DIV>
<DIV><SPAN=20
class=3D960535416-05082004>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</SPAN></DIV>
<DIV><SPAN class=3D960535416-05082004></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D960535416-05082004>&nbsp;</SPAN></DIV>
<DIV><FONT face=3D"MS Sans Serif" color=3D#0080ff>Thuy =
Tran</FONT></DIV>
<DIV><FONT face=3D"MS Sans Serif" color=3D#0080ff>NSWCDD =
-T25</FONT><BR><FONT=20
face=3D"MS Sans Serif" color=3D#0080ff>Bld.1490T Rm. 151</FONT></DIV>
<DIV><FONT face=3D"MS Sans Serif" =
color=3D#0080ff>(540)653-6799</FONT></DIV>
<P>&nbsp;</P></BODY></HTML>

------_=_NextPart_001_01C47B0E.9CDEC420--

------_=_NextPart_000_01C47B0E.9CDEC420
Content-Type: image/gif;
        name="Blank Bkgrd.gif"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
        filename="Blank Bkgrd.gif"
Content-ID: <960535416@05082004-1e21>

R0lGODlhLQAtAID/AP////f39ywAAAAALQAtAEACcAxup8vtvxKQsFon6d02898pGkgiYoCm6sq2
7iqWcmzOsmeXeA7uPJd5CYdD2g9oPF58ygqz+XhCG9JpJGmlYrPXGlfr/Yo/VW45e7amp2tou/lW
xo/zX513z+Vt+1n/tiX2pxP4NUhy2FM4xtjIUQAAOw==

------_=_NextPart_000_01C47B0E.9CDEC420--




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