2010-11-29 4 views
1

J'avais préinstallé gtk 2.14.6 installé, en l'utilisant via python 2.5 avec pygtk 2.12. Je viens de télécharger le paquet gtk 2.22 et l'ai extrait, en remplaçant l'ancien. (Je ne l'ai pas extrait sur l'ancien dossier, j'ai simplement déplacé l'ancien dossier et extrait le nouveau paquet au même endroit). Cependant, la même application est passée de ressembler beaucoup à une application Windows 7 native à l'air très laide, maladroite .. plus comme un thème de Windows XP, mais il n'a même pas imiter si bien.mise à jour gtk à la dernière version fait applications regardent UGLY

Comment fonctionne la thématique GTK? Comment puis-je obtenir la dernière version de GTK (j'ai mis à jour en raison de problèmes d'instabilité), mais avez le thème? Et pourquoi l'ancienne version était-elle meilleure que la plus récente?

Répondre

3

Dans votre distribution, dans etc/gtk-2.0/gtkrc, vous devez vous assurer que "style" est réglé sur "msw-default" et que le moteur est réglé sur "wimp". Voici tout mon gtkrc, juste pour vous assurer que vous avez:

gtk-icon-sizes = "gtk-menu=13,13:gtk-small-toolbar=16,16:gtk-large-toolbar=24,24:gtk-dnd=32,32" 
gtk-toolbar-icon-size = small-toolbar 

# disable images in buttons. i've only seen ugly delphi apps use this feature. 
gtk-button-images = 1 

# enable/disable images in menus. most "stock" microsoft apps don't use these, except sparingly. 
# the office apps use them heavily, though. 
gtk-menu-images = 1 

# use the win32 button ordering instead of the GNOME HIG one, where applicable 
gtk-alternative-button-order = 1 

# use the win32 sort indicators direction, as in Explorer 
gtk-alternative-sort-arrows = 1 

# Windows users don't expect the PC Speaker beeping at them when they backspace in an empty textview and stuff like that 
gtk-error-bell = 0 

style "msw-default" 
{ 
    GtkWidget::interior-focus = 1 
    GtkOptionMenu::indicator-size = { 9, 5 } 
    GtkOptionMenu::indicator-spacing = { 7, 5, 2, 2 } 
    GtkSpinButton::shadow-type = in 

    # Owen and I disagree that these should be themable 
    GtkUIManager::add-tearoffs = 0 
    #GtkComboBox::add-tearoffs = 0 

    GtkComboBox::appears-as-list = 1 
    GtkComboBox::focus-on-click = 0 

    GOComboBox::add_tearoffs = 0 

    GtkTreeView::allow-rules = 0 
    GtkTreeView::expander-size = 12 

    GtkExpander::expander-size = 12 

    GtkScrolledWindow::scrollbar_spacing = 1 

    GtkSeparatorMenuItem::horizontal-padding = 2 

    engine "wimp" 
    { 
    } 

} 
class "*" style "msw-default" 

binding "ms-windows-tree-view" 
{ 
    bind "Right" { "expand-collapse-cursor-row" (1,1,0) } 
    bind "Left" { "expand-collapse-cursor-row" (1,0,0) } 
} 

class "GtkTreeView" binding "ms-windows-tree-view" 

style "msw-combobox-thickness" = "msw-default" 
{ 
    xthickness = 0 
    ythickness = 0 
} 


widget_class "*TreeView*ComboBox*" style "msw-combobox-thickness" 
widget_class "*ComboBox*GtkFrame*" style "msw-combobox-thickness" 
+0

wow, parfait, merci! mon fichier gtkrc était réellement manquant. Je n'ai aucune idée pourquoi il ne serait pas inclus dans le paquet. – Claudiu

Questions connexes