{"id":38,"date":"2006-07-12T13:16:11","date_gmt":"2006-07-12T11:16:11","guid":{"rendered":"http:\/\/www.hackenberger.at\/wordpress\/?page_id=38"},"modified":"2006-07-12T13:36:57","modified_gmt":"2006-07-12T11:36:57","slug":"how-to-apply-a-theme-to-gtk-apps-without-having-gnome-installed","status":"publish","type":"page","link":"https:\/\/www.hackenberger.at\/blog\/linux-guides\/gentoo-guides\/how-to-apply-a-theme-to-gtk-apps-without-having-gnome-installed\/","title":{"rendered":"GTK themes without GNOME"},"content":{"rendered":"<p><strong>Instructions how to apply a theme to GTK apps without having GNOME installed<\/strong><\/p>\n<p><strong \/>There are several configuration files for GTK applications.<\/p>\n<ul>\n<li>~\/.gtkrc This is for the GTK-1.2 applications<\/li>\n<li>~\/.gtkrc-2.0 This one is for GTK+ 2.0 applications<\/li>\n<li>\/usr\/share\/themes\/Default\/gtk\/gtkrc This is the global equivalent to the ~\/.gtkrc<\/li>\n<li>\/usr\/share\/themes\/Default\/gtk-2.0\/gtkrc This is the global equivalent to the ~\/.gtkrc-2.0<\/li>\n<li>~\/.gimp-1.2\/gtkrc The GIMP uses it&#8217;s own gtkrc file<\/li>\n<\/ul>\n<p>If you want to apply themes to GTK applications you have to emerge (or download and install) a GTK \t\t\t\ttheme and then symlink the above mentioned files to the installed gtkrc file.<br \/>\nBut you have to choose the appropriate GTK Theme version for the different gtkrc files. E.g. you \t\t\t\tcannot use a GTK 2.0 gtkrc file for GTK 1.2 applications (which means that you cannot link the \t\t\t\t~\/.gtkrc file to a GTK 2.0 gtkrc theme), because it wouldn&#8217;t work as expected.<\/p>\n<p>If you want to use different fonts for your GTK applications you have to add a line, similar to \t\t\t\tthe following, to your gtkrc files:<br \/>\nfont = &#8220;-adobe-helvetica-medium-r-normal&#8211;*-80-*-*-*-*-*-*&#8221;<br \/>\nYou have to add this line after the opening curly brace from &#8220;style &#8220;default&#8221;&#8221;.<\/p>\n<p>Another problem are the .so and .la files from the GTK themes. By default they are installed under \t\t\t\t\/usr\/local\/lib\/gtk\/themes\/&#8230; But that doesn&#8217;t work, so you have to move the whole \t\t\t\t\/usr\/local\/lib\/gtk folder to \/usr\/lib, because libtool under Gentoo will search only \/usr\/lib for \t\t\t\tshared object files.<\/p>\n<p>Another problem are the .so and .la files from the GTK themes. By default they are installed under \t\t\t\t\/usr\/local\/lib\/gtk\/themes\/&#8230; But that doesn&#8217;t work, so you have to move the whole \t\t\t\t\/usr\/local\/lib\/gtk folder to \/usr\/lib, because libtool under Gentoo will search only \/usr\/lib for \t\t\t\tshared object files.<\/p>\n<p>Have fun!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Instructions how to apply a theme to GTK apps without having GNOME installed There are several configuration files for GTK applications. ~\/.gtkrc This is for the GTK-1.2 applications ~\/.gtkrc-2.0 This one is for GTK+ 2.0 applications \/usr\/share\/themes\/Default\/gtk\/gtkrc This is the global equivalent to the ~\/.gtkrc \/usr\/share\/themes\/Default\/gtk-2.0\/gtkrc This is the global equivalent to the ~\/.gtkrc-2.0 ~\/.gimp-1.2\/gtkrc &hellip; <a href=\"https:\/\/www.hackenberger.at\/blog\/linux-guides\/gentoo-guides\/how-to-apply-a-theme-to-gtk-apps-without-having-gnome-installed\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">GTK themes without GNOME<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":35,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.hackenberger.at\/blog\/wp-json\/wp\/v2\/pages\/38"}],"collection":[{"href":"https:\/\/www.hackenberger.at\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.hackenberger.at\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.hackenberger.at\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hackenberger.at\/blog\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":0,"href":"https:\/\/www.hackenberger.at\/blog\/wp-json\/wp\/v2\/pages\/38\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.hackenberger.at\/blog\/wp-json\/wp\/v2\/pages\/35"}],"wp:attachment":[{"href":"https:\/\/www.hackenberger.at\/blog\/wp-json\/wp\/v2\/media?parent=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}