{"id":290,"date":"2012-06-03T16:49:30","date_gmt":"2012-06-03T21:49:30","guid":{"rendered":"http:\/\/www.compdigitec.com\/labs\/?p=290"},"modified":"2012-06-03T16:49:30","modified_gmt":"2012-06-03T21:49:30","slug":"enabling-icons-in-qt4-apps-on-gnome-gtk","status":"publish","type":"post","link":"http:\/\/www.compdigitec.com\/labs\/2012\/06\/03\/enabling-icons-in-qt4-apps-on-gnome-gtk\/","title":{"rendered":"Enabling icons in Qt4 apps on GNOME \/ GTK"},"content":{"rendered":"<p>By default on the latest versions of Debian and Ubuntu, the gconf preferences &#8220;\/desktop\/gnome\/interface\/menus_have_icons&#8221; and &#8220;\/desktop\/gnome\/interface\/buttons_have_icons&#8221; are set to false by default. Despite this, GTK2 and GTK3 applications both display icons next to their menus by default. However, Qt4-based applications such as VLC media player don&#8217;t display icons. To fix this:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ngconftool --type boolean --set \/desktop\/gnome\/interface\/buttons_have_icons true\r\ngconftool --type boolean --set \/desktop\/gnome\/interface\/menus_have_icons true\r\n<\/pre>\n<p>Or, open gconf-editor and set both &#8220;\/desktop\/gnome\/interface\/menus_have_icons&#8221; and &#8220;\/desktop\/gnome\/interface\/buttons_have_icons&#8221; to true.<\/p>\n<div id=\"attachment_291\" style=\"width: 617px\" class=\"wp-caption alignnone\"><a href=\"\/labs\/wp-content\/uploads\/2012\/06\/vlc-before.png\"><img aria-describedby=\"caption-attachment-291\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-291\" title=\"VLC before the menus_have_icons fix\" src=\"\/labs\/wp-content\/uploads\/2012\/06\/vlc-before.png\" alt=\"VLC before the menus_have_icons fix\" width=\"607\" height=\"406\" \/><\/a><p id=\"caption-attachment-291\" class=\"wp-caption-text\">VLC before the menus_have_icons fix<\/p><\/div>\n<div id=\"attachment_292\" style=\"width: 617px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/www.compdigitec.com\/labs\/wp-content\/uploads\/2012\/06\/vlc-after.png\"><img aria-describedby=\"caption-attachment-292\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-292\" title=\"VLC after the menus_have_icons fix\" src=\"\/labs\/wp-content\/uploads\/2012\/06\/vlc-after.png\" alt=\"VLC after the menus_have_icons fix\" width=\"607\" height=\"406\" \/><\/a><p id=\"caption-attachment-292\" class=\"wp-caption-text\">VLC after the menus_have_icons fix<\/p><\/div>\n<h2>References<\/h2>\n<ul>\n<li><a href=\"http:\/\/crunchbanglinux.org\/forums\/post\/195036\/#p195036\">http:\/\/crunchbanglinux.org\/forums\/post\/195036\/#p195036<\/a><\/li>\n<li><a href=\"https:\/\/bbs.archlinux.org\/viewtopic.php?pid=940213#p940213\">https:\/\/bbs.archlinux.org\/viewtopic.php?pid=940213#p940213<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>By default on the latest versions of Debian and Ubuntu, the gconf preferences &#8220;\/desktop\/gnome\/interface\/menus_have_icons&#8221; and &#8220;\/desktop\/gnome\/interface\/buttons_have_icons&#8221; are set to false by default. Despite this, GTK2 and GTK3 applications both display icons next to their menus by default. However, Qt4-based applications such as VLC media player don&#8217;t display icons. To fix this: Or, open gconf-editor and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[798,797,85,862,796],"_links":{"self":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/290"}],"collection":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/comments?post=290"}],"version-history":[{"count":0,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/290\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/media?parent=290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/categories?post=290"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/tags?post=290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}