Ho adottato una soluzione leggermente diversa;
Innanzitutto creare un nuovo script, eclipse.sh, che inizia eclissi, mio simile a questa:
#!/bin/bash
GTK2_RC_FILES=/usr/share/eclipse/gtkrc-2.0-eclipse /usr/share/eclipse/eclipse
quindi creare il file di gtkrc (/usr/share/eclipse/gtkrc-2.0-eclipse), miniera di simile a questa (si hanno alcuni altri cambiamenti anche per fare un uso migliore dello schermo):
style "my-tooltips"
{
bg[NORMAL] = "#FFFFAF"
fg[NORMAL] = "#000000"
}
widget "gtk-tooltip*" style "my-tooltips"
style "gtkcompact"
{
font_name="Ubuntu Light 11"
GtkButton::default_border={0,0,0,0}
GtkButton::default_outside_border={0,0,0,0}
GtkButtonBox::child_min_width=0
GtkButtonBox::child_min_heigth=0
GtkButtonBox::child_internal_pad_x=4
GtkButtonBox::child_internal_pad_y=4
GtkMenu::vertical-padding=1
GtkMenuBar::internal_padding=0
GtkMenuItem::horizontal_padding=4
GtkToolbar::internal-padding=1
GtkToolbar::space-size=1
GtkOptionMenu::indicator_size=0
GtkOptionMenu::indicator_spacing=0
GtkPaned::handle_size=4
GtkRange::trough_border=0
GtkRange::stepper_spacing=0
GtkScale::value_spacing=0
GtkScrolledWindow::scrollbar_spacing=0
GtkExpander::expander_size=10
GtkExpander::expander_spacing=0
GtkTreeView::vertical-separator=0
GtkTreeView::horizontal-separator=0
GtkTreeView::expander-size=10
GtkTreeView::fixed-height-mode=TRUE
GtkWidget::focus_padding=0
GtkTreeView::vertical-separator = 0
}
class "GtkWidget" style "gtkcompact"
style "gtkcompactextra"
{
xthickness=0
ythickness=0
}
class "GtkButton" style "gtkcompactextra"
class "GtkToolbar" style "gtkcompactextra"
class "GtkPaned" style "gtkcompactextra"
class "GtkNotebook" style "gtkcompact"
http://askubuntu.com/ domande/70599/how-to-change-tooltip-background-colour-in-unity – user1124216