[gitg] Add missing shadows



commit 071377e49bf2d699df838365fa3000b161e58e00
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Feb 18 13:53:39 2013 +0100

    Add missing shadows

 plugins/diff/gitg-diff.vala               |    7 ++++++-
 plugins/history/resources/view-history.ui |    2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/plugins/diff/gitg-diff.vala b/plugins/diff/gitg-diff.vala
index 479fc3a..94b48a0 100644
--- a/plugins/diff/gitg-diff.vala
+++ b/plugins/diff/gitg-diff.vala
@@ -25,13 +25,18 @@ namespace GitgDiff
                private const string version = Gitg.Config.VERSION;
 
                public GitgExt.Application? application { owned get; construct set; }
+               private Gtk.ScrolledWindow d_sw;
                private GitgGtk.DiffView d_diff;
                private GitgExt.ObjectSelection? d_view;
 
                construct
                {
+                       d_sw = new Gtk.ScrolledWindow(null, null);
+                       d_sw.shadow_type = Gtk.ShadowType.IN;
+                       d_sw.show();
                        d_diff = new GitgGtk.DiffView(null);
                        d_diff.show();
+                       d_sw.add(d_diff);
 
                        application.notify["current_view"].connect((a, v) => {
                                notify_property("available");
@@ -102,7 +107,7 @@ namespace GitgDiff
                                        on_selection_changed(objsel);
                                }
 
-                               return d_diff;
+                               return d_sw;
                        }
                }
 
diff --git a/plugins/history/resources/view-history.ui b/plugins/history/resources/view-history.ui
index a09c878..4176545 100644
--- a/plugins/history/resources/view-history.ui
+++ b/plugins/history/resources/view-history.ui
@@ -6,7 +6,7 @@
     <property name="hexpand">True</property>
     <property name="vexpand">True</property>
     <property name="can_focus">True</property>
-    <property name="shadow-type">none</property>
+    <property name="shadow-type">in</property>
     <child>
       <object class="GitgGtkCommitListView" id="commit_list_view">
         <property name="visible">True</property>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]