[gitg/xiaoguang/split-view: 3/3] Hide split view when does not makes sense
- From: Alberto Fanjul <albfan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/xiaoguang/split-view: 3/3] Hide split view when does not makes sense
- Date: Tue, 26 Nov 2019 16:55:17 +0000 (UTC)
commit 6da0b479004d55546e8feb67ed1c65f0d2e8ec61
Author: Gaurav Agrawal <agrawalgaurav1999 gmail com>
Date: Fri May 31 06:01:29 2019 +0000
Hide split view when does not makes sense
libgitg/gitg-diff-view-file.vala | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/libgitg/gitg-diff-view-file.vala b/libgitg/gitg-diff-view-file.vala
index ba34e11c..cee1a328 100644
--- a/libgitg/gitg-diff-view-file.vala
+++ b/libgitg/gitg-diff-view-file.vala
@@ -38,6 +38,9 @@ class Gitg.DiffViewFile : Gtk.Grid
[GtkChild( name = "split_button" )]
private Gtk.RadioButton split_button;
+ [GtkChild( name = "unif_button" )]
+ private Gtk.RadioButton unif_button;
+
private Gtk.ScrolledWindow d_scrolledwindow;
private Gtk.ScrolledWindow d_scrolledwindow_left;
private Gtk.ScrolledWindow d_scrolledwindow_right;
@@ -267,7 +270,8 @@ class Gitg.DiffViewFile : Gtk.Grid
this.renderer = new DiffViewFileRendererBinary();
this.renderer.show();
-
+ unif_button.hide();
+ split_button.hide();
d_diff_stat_file.hide();
}
@@ -277,7 +281,8 @@ class Gitg.DiffViewFile : Gtk.Grid
this.renderer = new DiffViewFileRendererImage(repository, delta);
this.renderer.show();
-
+ unif_button.hide();
+ split_button.hide();
d_diff_stat_file.hide();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]