Created
October 8, 2011 15:20
-
-
Save shellexy/1272418 to your computer and use it in GitHub Desktop.
gitg 界面补丁,将标签栏移至左侧,调整控件边距,让详情栏随 diff 栏滚动以增大可视面积(更新到 gitg 0.2.5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/gitg/gitg-window.c b/gitg/gitg-window.c | |
| index fa30e52..6e2b0e1 100644 | |
| --- a/gitg/gitg-window.c | |
| +++ b/gitg/gitg-window.c | |
| @@ -297,6 +297,7 @@ add_revision_panel (GitgWindow *window, | |
| label = gitg_revision_panel_get_label (panel); | |
| label_widget = gtk_label_new (label); | |
| + gtk_label_set_angle (GTK_LABEL(label_widget), 90); | |
| gtk_widget_show (label_widget); | |
| g_free (label); | |
| diff --git a/gitg/gitg-window.ui b/gitg/gitg-window.ui | |
| index 46bc353..5749f20 100644 | |
| --- a/gitg/gitg-window.ui | |
| +++ b/gitg/gitg-window.ui | |
| @@ -24,6 +24,7 @@ | |
| <object class="GtkNotebook" id="notebook_main"> | |
| <property name="visible">True</property> | |
| <property name="can_focus">True</property> | |
| + <property name="tab_pos">left</property> | |
| <child> | |
| <object class="GtkBox" id="vbox_history"> | |
| <property name="visible">True</property> | |
| @@ -36,7 +37,7 @@ | |
| <child> | |
| <object class="GtkBox" id="vbox2"> | |
| <property name="visible">True</property> | |
| - <property name="border_width">6</property> | |
| + <property name="border_width">0</property> | |
| <property name="orientation">vertical</property> | |
| <child> | |
| <object class="GtkBox" id="hbox_top"> | |
| @@ -155,7 +156,8 @@ | |
| <object class="GtkNotebook" id="notebook_revision"> | |
| <property name="visible">True</property> | |
| <property name="can_focus">True</property> | |
| - <property name="border_width">6</property> | |
| + <property name="border_width">0</property> | |
| + <property name="tab_pos">left</property> | |
| </object> | |
| <packing> | |
| <property name="resize">False</property> | |
| @@ -173,6 +175,7 @@ | |
| <object class="GtkLabel" id="label_history"> | |
| <property name="visible">True</property> | |
| <property name="label" translatable="yes">History</property> | |
| + <property name="angle">90</property> | |
| </object> | |
| <packing> | |
| <property name="tab_fill">False</property> | |
| @@ -182,7 +185,7 @@ | |
| <object class="GitgCommitView" id="vpaned_commit"> | |
| <property name="visible">True</property> | |
| <property name="can_focus">True</property> | |
| - <property name="border_width">6</property> | |
| + <property name="border_width">0</property> | |
| <property name="orientation">vertical</property> | |
| <property name="position">450</property> | |
| <property name="position_set">True</property> | |
| @@ -545,6 +548,7 @@ | |
| <object class="GtkLabel" id="label_commit"> | |
| <property name="visible">True</property> | |
| <property name="label" translatable="yes">Commit</property> | |
| + <property name="angle">90</property> | |
| </object> | |
| <packing> | |
| <property name="position">1</property> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
唔,乃的 gitg 版本是啥?
我看了下 git 版 gitg 是使用的 gtk3,于是暂时不理会了