From fb9fe211dbe3d2814605b32ace14cf4478586207 Mon Sep 17 00:00:00 2001 From: "(cdep)illabout" Date: Sat, 9 Nov 2019 15:27:23 +0900 Subject: [PATCH] Get rid of the one-pixel border around the GtkNotebook. --- CHANGELOG.md | 2 ++ src/Termonad/App.hs | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index eadb51c..e86da21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ ## next +* Remove the one-pixel white border around the `GtkNotebook` (the GTK widget thing + that contains the tabs). [#138] * Add a right-click menu for the terminal. It currently allows copy and paste. [#136](https://github.com/cdepillabout/termonad/pull/136) Thanks @jecaro! diff --git a/src/Termonad/App.hs b/src/Termonad/App.hs index dd57ef0..3d73bcd 100644 --- a/src/Termonad/App.hs +++ b/src/Termonad/App.hs @@ -68,6 +68,7 @@ import GI.Gtk , labelNew , notebookGetNPages , notebookNew + , notebookSetShowBorder , onEntryActivate , onNotebookPageRemoved , onNotebookPageReordered @@ -365,6 +366,9 @@ setupTermonad tmConfig app win builder = do fontDesc <- createFontDescFromConfig tmConfig note <- notebookNew widgetSetCanFocus note False + -- If this is not set to False, then there will be a one pixel white border + -- shown around the notebook. + notebookSetShowBorder note False boxPackStart box note True True 0 mvarTMState <- newEmptyTMState tmConfig app win note fontDesc