From 4c0de94ab66e97d35e995cc2441bd8dc8e81843f Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Thu, 21 Oct 2010 18:22:44 +0100 Subject: [PATCH] [log] remove window border from events --- SparkleShare/SparkleLog.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/SparkleShare/SparkleLog.cs b/SparkleShare/SparkleLog.cs index 0a46a033..48c01e16 100644 --- a/SparkleShare/SparkleLog.cs +++ b/SparkleShare/SparkleLog.cs @@ -47,7 +47,7 @@ namespace SparkleShare { SetSizeRequest (540, 640); SetPosition (WindowPosition.Center); - BorderWidth = 12; + BorderWidth = 0; // TRANSLATORS: {0} is a folder name, and {1} is a server address Title = String.Format(_("Recent Events in ‘{0}’"), name); @@ -98,13 +98,11 @@ namespace SparkleShare { LayoutVertical = new VBox (false, 0); - - LayoutVertical.PackStart (CreateEventLog (), true, true, 0); HButtonBox dialog_buttons = new HButtonBox { Layout = ButtonBoxStyle.Edge, - BorderWidth = 0 + BorderWidth = 12 }; Button open_folder_button = new Button (_("_Open Folder")) { @@ -132,7 +130,7 @@ namespace SparkleShare { dialog_buttons.Add (close_button); // We have to hide the menubar somewhere... - LayoutVertical.PackStart (MenuBar, false, false, 6); + LayoutVertical.PackStart (MenuBar, false, false, 0); LayoutVertical.PackStart (dialog_buttons, false, false, 0); Add (LayoutVertical); @@ -472,13 +470,13 @@ namespace SparkleShare { } ScrolledWindow = new ScrolledWindow (); - ScrolledWindow.ShadowType = ShadowType.None; EventBox wrapper = new EventBox (); wrapper.ModifyBg (StateType.Normal, background_color); wrapper.Add (layout_vertical); ScrolledWindow.AddWithViewport (wrapper); + (ScrolledWindow.Child as Viewport).ShadowType = ShadowType.None; return ScrolledWindow;