[gitg/xiaoguang/split-view: 42/42] 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: 42/42] Hide split view when does not makes sense
- Date: Thu, 17 Oct 2019 06:06:22 +0000 (UTC)
commit 02ac2a820c8d76af83060e89e90b930b8c65fa5c
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]