Re: theme question
I am just learning about GTK and I have a related problem. My test program does not seem to find my ~/.gtkrc file. If I add a line to my program: gtk_rc_parse (/u/dave/.gtkrc); It finds the file correctly. If I write this line as either: gtk_rc_parse (~/.gtkrc); or gtk_rc_parse ($HOME/.gtkrc); it does NOT find the file, so it looks like some kind of a default path problem. I added three additional lines to the program: system(ls -l /u/dave/.gtkrc); system(ls -l ~/.gtkrc); system(ls -l $HOME/.gtkrc); and I get the following output on the terminal: -rw-rw-r--1 daveusers 813 2003-05-30 09:39 /u/dave/.gtkrc -rw-rw-r--1 daveusers 813 2003-05-30 09:39 /u/dave/.gtkrc -rw-rw-r--1 daveusers 813 2003-05-30 09:39 /u/dave/.gtkrc so $HOME seems to be exported correctly. Any ideas? Also, while I am able to change colors and pixmaps using .gtkrc, I don't seem to be able to select a new font. If I add the line: font = -adobe-helvetica-medium-r-normal-*-24-*-*-*-*-*-*-* (generated using xfontsel) the font remains unchanged. I have also tried numerous other fonts listed by xlsfonts with the same result. Is there a font_path-like variable that needs to be set (similar to pixmap_path)? Thanks in advance. Dave On Thursday 29 May 2003 12:14, Owen Taylor wrote: On Wed, 2003-05-28 at 20:20, Tony Denault wrote: On Wed, 28 May 2003, Owen Taylor wrote: On Tue, 2003-05-27 at 22:50, Tony Denault wrote: I'm using gtk on solaris/sparc, but can't themes to work. The way that most people would select a theme is, to put in their ~/.gtkrc-2.0 gtk-theme-name = Metal Tried this - no luck. If GTK+ was installed some place other than /usr/local, the gtk-engine's README file explains what to do: After I did this, gtk found my themes: cd /usr/local/lib/gtk-2.0/2.2.0 ln -s ../2.0.0/engines So it look like the gtk-engine installed itself in the 2.0.0. gtk-engines decides where to install itself by running $ pkg-config --variable=gtk_binary_version gtk+-2.0 2.2.0 So, you must have had an old version of GTK+ in your PKG_CONFIG_PATH when you configured gtk-engines. GTK 2.0 and 2.2 confusion. In many instances 2.2 really acts like 2.0. I ran across a similiar problem in the pkg-config utility too: 'pkg-config --cflags gtk+-2.2' doesn't work but I can use 'pkg-config --cflags gtk+-2.0' to compile my 2.2 apps. It's no doubt confusing, but there is some sense behind it: Programs for 2.0 still work with 2.0, so we didn't want to rename the PC file. The directory where themes and modules get installed changes to allow both 2.0 executables + 2.0 themes (e.g., statically linked executables) and 2.2 executables + 2.2 themes to work at the same time. Regards, Owen ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: theme question
Hi, Dave Smith [EMAIL PROTECTED] writes: I am just learning about GTK and I have a related problem. My test program does not seem to find my ~/.gtkrc file. Are you using GTK+-2.x (well, you should)? If so, try to rename your file to .gtkrc-2.0. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: theme question
I am just learning about GTK and I have a related problem. My test program does not seem to find my ~/.gtkrc file. If I add a line to my program: gtk_rc_parse (/u/dave/.gtkrc); It finds the file correctly. If I write this line as either: gtk_rc_parse (~/.gtkrc); or gtk_rc_parse ($HOME/.gtkrc); ~ and $HOME are normally interpreted by a shell, and mean nothing to a function call expecting a regular unix path. it does NOT find the file, so it looks like some kind of a default path problem. I added three additional lines to the program: system(ls -l /u/dave/.gtkrc); system(ls -l ~/.gtkrc); system(ls -l $HOME/.gtkrc); these commands are interpreted by a shell, so that ls(1) sees the full path. ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: theme question
Thanks - your suggestion did the trick. BTW, I am using gtk+-2.2.1, (my distro initially loaded 1.2). Any ideas on why the font command still doesn't work in this file? Dave On Friday 30 May 2003 10:18, Sven Neumann wrote: Hi, Dave Smith [EMAIL PROTECTED] writes: I am just learning about GTK and I have a related problem. My test program does not seem to find my ~/.gtkrc file. Are you using GTK+-2.x (well, you should)? If so, try to rename your file to .gtkrc-2.0. Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: theme question
Hi, Dave Smith [EMAIL PROTECTED] writes: BTW, I am using gtk+-2.2.1, (my distro initially loaded 1.2). Any ideas on why the font command still doesn't work in this file? Yes. The syntax for gtkrc-2.0 is not 100% compatible with the old gtkrc format. Fonts are no longer specified using the XLFD. If you want to change the default font, try adding a single line like: gtk-font-name = Sans 10 Sven ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: theme question
On Wed, 2003-05-28 at 20:20, Tony Denault wrote: On Wed, 28 May 2003, Owen Taylor wrote: On Tue, 2003-05-27 at 22:50, Tony Denault wrote: I'm using gtk on solaris/sparc, but can't themes to work. The way that most people would select a theme is, to put in their ~/.gtkrc-2.0 gtk-theme-name = Metal Tried this - no luck. If GTK+ was installed some place other than /usr/local, the gtk-engine's README file explains what to do: After I did this, gtk found my themes: cd /usr/local/lib/gtk-2.0/2.2.0 ln -s ../2.0.0/engines So it look like the gtk-engine installed itself in the 2.0.0. gtk-engines decides where to install itself by running $ pkg-config --variable=gtk_binary_version gtk+-2.0 2.2.0 So, you must have had an old version of GTK+ in your PKG_CONFIG_PATH when you configured gtk-engines. GTK 2.0 and 2.2 confusion. In many instances 2.2 really acts like 2.0. I ran across a similiar problem in the pkg-config utility too: 'pkg-config --cflags gtk+-2.2' doesn't work but I can use 'pkg-config --cflags gtk+-2.0' to compile my 2.2 apps. It's no doubt confusing, but there is some sense behind it: Programs for 2.0 still work with 2.0, so we didn't want to rename the PC file. The directory where themes and modules get installed changes to allow both 2.0 executables + 2.0 themes (e.g., statically linked executables) and 2.2 executables + 2.2 themes to work at the same time. Regards, Owen ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: theme question
On Tue, 2003-05-27 at 22:50, Tony Denault wrote: I'm using gtk on solaris/sparc, but can't themes to work. I installed gtk-engines-2.2.0 using the standard way: ./configure make make install Copy a .gtkrc file: cp /usr/local/share/themes/Metal/gtk-2.0/gtkrc ~/.gtkrc-2.0 The way that most people would select a theme is, to put in their ~/.gtkrc-2.0 gtk-theme-name = Metal (Or select it through the GNOME UI for theme selection, if you are running GNOME) When I start a gtk2.2 program I get: Gtk-WARNING **: Unable to locate theme engine in module_path: metal, So I tried adding module_path in my .gtkrc-2.0 file, but I got: Gtk-WARNING **: module_path directive is now ignored Why can't my 2.0 theme load? I can find any instruction to indicate what I should do. Help.. If GTK+ was installed some place other than /usr/local, the gtk-engine's README file explains what to do: If you configured GTK+ in a non-default prefix, you should configure this package the same way. For instance: ./configure --prefix=/opt/gtk+ If you need to install this package in a different prefix from GTK+, then you'll have to set your GTK_PATH environment variable to point to the installed prefix. For instance, if this package was configured with: ./configure --prefix=/home/john.doe/gtk-engines/ Then you'd set: GTK_PATH=/home/john.doe/gtk-engines/lib/gtk-2.0/ export GTK_PATH This will allow GTK+ to find the newly installed theme engines. To use the sample themes (installed into $prefix/share/themes), you'll need to copy or link them into your ~/.theme [should ~/.themes - OT] directory. Regards, Owen ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
Re: theme question
On Wed, 28 May 2003, Owen Taylor wrote: On Tue, 2003-05-27 at 22:50, Tony Denault wrote: I'm using gtk on solaris/sparc, but can't themes to work. The way that most people would select a theme is, to put in their ~/.gtkrc-2.0 gtk-theme-name = Metal Tried this - no luck. If GTK+ was installed some place other than /usr/local, the gtk-engine's README file explains what to do: I am just using GTK (no gnome) on a sparc/Solaris8 system. I install everything (atk, glib, pango, gtk, gtk-engines) into their default locations: ./configure make make install Then I created a ~/.gtkrc-2.0. Still this didn't work. After some poking around, I found that my directory /usr/local/lib/gtk-2.0 contain the following: /usr/local/lib/gtk-2.0/ |--2.0.0/ |-engines |-immodules |-loaders |--2.2.0/ |-immodules |-loaders After I did this, gtk found my themes: cd /usr/local/lib/gtk-2.0/2.2.0 ln -s ../2.0.0/engines So it look like the gtk-engine installed itself in the 2.0.0. GTK 2.0 and 2.2 confusion. In many instances 2.2 really acts like 2.0. I ran across a similiar problem in the pkg-config utility too: 'pkg-config --cflags gtk+-2.2' doesn't work but I can use 'pkg-config --cflags gtk+-2.0' to compile my 2.2 apps. Tony /---\ | Tony Denault | Email: [EMAIL PROTECTED] | | Institute for Astronomy | Phone: (808) 932-2378 | | 640 North Aohoku Place |Fax: (808) 933-0737 | | Hilo, Hawaii 96720 || \---/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
theme question
I'm using gtk on solaris/sparc, but can't themes to work. I installed gtk-engines-2.2.0 using the standard way: ./configure make make install Copy a .gtkrc file: cp /usr/local/share/themes/Metal/gtk-2.0/gtkrc ~/.gtkrc-2.0 When I start a gtk2.2 program I get: Gtk-WARNING **: Unable to locate theme engine in module_path: metal, So I tried adding module_path in my .gtkrc-2.0 file, but I got: Gtk-WARNING **: module_path directive is now ignored Why can't my 2.0 theme load? I can find any instruction to indicate what I should do. Help.. Thanks, Tony /---\ | Tony Denault | Email: [EMAIL PROTECTED] | | Institute for Astronomy | Phone: (808) 932-2378 | | 640 North Aohoku Place |Fax: (808) 933-0737 | | Hilo, Hawaii 96720 || \---/ ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list