[gitg/xiaoguang/split-view: 7/8] Hide split view when does not makes sense



commit 076fcb2af7bc274809a9ce99d4ba9ef0c09fc8c4
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]