{"id":769,"date":"2016-12-24T08:41:11","date_gmt":"2016-12-24T15:41:11","guid":{"rendered":"https:\/\/wmbuck.net\/blog\/?p=769"},"modified":"2016-12-24T08:43:04","modified_gmt":"2016-12-24T15:43:04","slug":"gtk-tooltips-and-eclipse","status":"publish","type":"post","link":"https:\/\/wmbuck.net\/blog\/?p=769","title":{"rendered":"GTK Tooltips and Eclipse"},"content":{"rendered":"<p>Eclipse on Fedora (and as I read it, also on Ubuntu) has now got a problem with colors. Specifically, when one hovers over a function to obtain the calling sequence, a pop up appears to provide this information but the background of the pop-up is black, which makes the content unreadable. This is relatively new, though I&#8217;m not sure whether it was with the change to Eclipse Neon or earlier, or the change to Fedora 24.<\/p>\n<p>It turns out this is not a setting in eclipse, although I wasted quite a lot of time looking for it. This ends up being a system setting, associated with gtk, the graphical toolkit. If one starts eclipse with<\/p>\n<p>export SWT_GTK3=0;eclipse<\/p>\n<p>which starts eclipse with gtk 2.0, instead of gtk 3.0, the problem goes away, the background of the pop-ups becomes a nice cream color.<\/p>\n<p>The settings we are using are set in the theme one chooses, the default theme being Adwaita. The themes are kept in \/usr\/share\/themes. I tried simply changing to a different theme (TraditionalOk) but the setting affecting this did not change. So I resorted to force.<\/p>\n<p>In \/usr\/share\/themes\/TraditionalOk there are directories for gtk-2.0 and gtk-3.0. Within gtk-3.0 I changed the file gtk-widgets.css, specifically, I changed the setting in the tooltip section to background-color #f5f5b5; Previously the value was &#8220;@theme_tooltip_bg_color;&#8221; and as I read it, that define ought to have the value #f5f5b5. But something is wrong, and the setting is disruptd. But forcing it this way, it seems to work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Eclipse on Fedora (and as I read it, also on Ubuntu) has now got a problem with colors. Specifically, when one hovers over a function to obtain the calling sequence, a pop up appears to provide this information but the background of the pop-up is black, which makes the content unreadable. This is relatively new, &hellip; <a href=\"https:\/\/wmbuck.net\/blog\/?p=769\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">GTK Tooltips and Eclipse<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38,10,4,9],"tags":[],"class_list":["post-769","post","type-post","status-publish","format-standard","hentry","category-eclipse","category-fedora","category-linux","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/769"}],"collection":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=769"}],"version-history":[{"count":1,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/769\/revisions"}],"predecessor-version":[{"id":770,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/769\/revisions\/770"}],"wp:attachment":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}