---
title: "Ubuntu10.04EclipseTab页标题栏超大的解决方案"
author: "Dollyn"
date: "2010-07-20T19:31:32Z"
tags: []
categories: ["操作系统"]
slug: "ubuntu10-04eclipsetab"
draft: false
lastmod: "2010-07-20T19:34:10Z"
id: 717262
url: "https://dollyn.iteye.com/blog/717262"
---

Google到了这个：[http://ubuntuforums.org/showthread.php?t=1465712](http://ubuntuforums.org/showthread.php?t=1465712)

简单地说就是:

1\. 在控制台输入

 

```
gedit ~/.gtkrc-2.0
```

 

2\. 复制下面的内容，保存，并重启Eclipse即可

 

```
style "gtkcompact" {
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=0
GtkButtonBox::child_internal_pad_y=0
GtkMenu::vertical-padding=1
GtkMenuBar::internal_padding=0
GtkMenuItem::horizontal_padding=4
GtkToolbar::internal-padding=0
GtkToolbar::space-size=0
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
GtkTreeView::vertical-separator=0
GtkTreeView::horizontal-separator=0
GtkTreeView::fixed-height-mode=TRUE
GtkWidget::focus_padding=0
}
class "GtkWidget" style "gtkcompact"
```