Skip to content

Commit

Permalink
Get rid of the one-pixel border around the GtkNotebook.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdepillabout committed Nov 9, 2019
1 parent ef47941 commit fb9fe21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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!
Expand Down
4 changes: 4 additions & 0 deletions src/Termonad/App.hs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ import GI.Gtk
, labelNew
, notebookGetNPages
, notebookNew
, notebookSetShowBorder
, onEntryActivate
, onNotebookPageRemoved
, onNotebookPageReordered
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fb9fe21

Please sign in to comment.