Paul
42c93d89fc
adw: move notebook to its own file
2024-09-11 15:42:03 +02:00
Paul
0e22695ec4
gtk: use adwaita tab view when possible
...
add tab bar view
2024-09-11 15:35:22 +02:00
Mitchell Hashimoto
9409e3072f
apprt/gtk: remove usingnamespace
2024-08-16 14:58:04 -07:00
Mitchell Hashimoto
8858c2ba4e
apprt/gtk: convert surface to overlay so we can support the url overlay
2024-07-06 15:01:18 -07:00
Igor Anić
137359bcb5
gtk: use symbolic icon for tab close
...
On my system (xorg Ubuntu 24.04, Adwaita:dark theme) tab close icon was
red while in all other applications was more discrete. With adding
`-symbolic` to the icon name now looks like all other application.
2024-03-27 20:04:17 +01:00
Mitchell Hashimoto
81b9a6b623
config: rename window-append-new-tab to window-new-tab-position
2024-01-12 09:50:47 -08:00
Thorsten Ball
2aa1874f94
gtk: append new tabs at the end if config is set
...
This adds a new config option: `window-append-new-tabs` (please: if you
have a better name, let me know). If this is set to true, then new GTK
tabs aren't added after the current tab, but after at the end.
2024-01-12 17:35:15 +01:00
Denys Pavlov
fc7013fc2e
gtk: close tabs with middle-click
...
Follow the behaviour of other tabbed interfaces like browsers, editors,
and file-managers.
GTK code is based on `/src/apprt/gtk/ImguiWidget.zig`
2023-12-13 11:14:35 -05:00
Mitchell Hashimoto
14ef6fb2f9
apprt/gtk: add comments, rename some funcs
2023-12-01 09:07:37 -08:00
Mitchell Hashimoto
dd39b29f30
apprt/gtk: we don't need to keep track of Tabs
2023-12-01 08:52:08 -08:00
Mitchell Hashimoto
c7eeda1f00
apprt/gtk: code aesthetic changes
2023-12-01 08:08:06 -08:00
Mitchell Hashimoto
89f4cf11c7
apprt/gtk: rename parent2 to parent
2023-11-30 21:46:43 -08:00
Thorsten Ball
7e9dce054f
gtk: remove unneeded method setContainer on Surface
...
We don't need to update the titles, etc. since that's done by
`grabFocus` and that then makes the method not that useful. Removing for
now.
2023-11-30 21:44:52 -08:00
Thorsten Ball
3fef4fce56
gtk: move surface destroy through deref
2023-11-30 21:44:52 -08:00
Thorsten Ball
a18fb4a661
gtk: fix closing of windows that contains splits
2023-11-30 21:44:52 -08:00
Thorsten Ball
0065bae0d4
gtk: get closing of tabs working again (closing windows still broken)
2023-11-30 21:44:52 -08:00
Thorsten Ball
8cf9d97ac3
gtk: fix replacing of splits, remove dead code
2023-11-30 21:44:52 -08:00
Thorsten Ball
ecbe910714
gtk: fix closing of surfaces by releasing the ref to gl_area
2023-11-30 21:44:52 -08:00
Thorsten Ball
956fcf7349
gtk: fix compilation error after rebase
2023-11-30 21:44:52 -08:00
Mitchell Hashimoto
06b40a8b89
apprt/gtk: closing tabs works again
2023-11-30 21:44:52 -08:00
Mitchell Hashimoto
17445a7d87
apprt/gtk: nested splits are good
2023-11-30 21:44:51 -08:00
Mitchell Hashimoto
4c1300ab69
apprt/gkt: a lot of things are broken
2023-11-30 21:44:51 -08:00
Mitchell Hashimoto
79a9d417d1
apprt/gtk: working on new Split
2023-11-30 21:44:51 -08:00
Mitchell Hashimoto
83b0096dfc
apprt/gtk: get rid of one newsurface call
2023-11-30 21:44:51 -08:00
Mitchell Hashimoto
f1547465cc
apprt/gtk: new surface options down to just a couple
2023-11-30 21:44:51 -08:00
Mitchell Hashimoto
97b9708dd1
apprt/gtk: remove tab option from surface
2023-11-30 21:44:16 -08:00
Mitchell Hashimoto
14570b8a6c
apprt/gtk: get rid of title label option, we can infer it on container
2023-11-30 21:44:16 -08:00
Mitchell Hashimoto
00c02e88d2
apprt/gtk: remove Window from Surface, use container only
2023-11-30 21:44:16 -08:00
Mitchell Hashimoto
d65a804edd
apprt/gtk: working on some reorg
2023-11-30 21:44:16 -08:00
Thorsten Ball
ba2992d4d0
gtk: remove fields on Paned we don't need
2023-11-30 21:44:16 -08:00
Thorsten Ball
290b79ad62
gtk: restore "inherit working directory" behavior
2023-11-30 21:44:16 -08:00
Thorsten Ball
b60133fd34
gtk: keep buffer of surface title, update if focused
2023-11-30 21:44:15 -08:00
Thorsten Ball
b1e3685664
gtk: find first surface to focus on if sibling is Paned
2023-11-30 21:44:04 -08:00
Thorsten Ball
f1e81563d9
gtk: always remember focused surface before grabbing focus
2023-11-30 21:44:04 -08:00
Thorsten Ball
ab93579bf6
gtk: port new-tab behavior over after rebase and refactor
...
This is the new behavior from #776 .
2023-11-30 21:43:39 -08:00
Thorsten Ball
8c58bf222d
gtk: move logic of splitting surface in a tab to Tab
2023-11-30 21:43:39 -08:00
Thorsten Ball
633a3e2e85
gtk: remove duplication of new surface creation
2023-11-30 21:43:39 -08:00
Thorsten Ball
eed2bb3078
gtk: refactor code and add comments to Paned
2023-11-30 21:43:39 -08:00
Thorsten Ball
fde6289880
gtk: rename and refactor Tab.deinit
2023-11-30 21:43:39 -08:00
Thorsten Ball
dc0f6e3a5b
WIP: gtk: handle split surfaces when closing tab/window
2023-11-30 21:43:38 -08:00
Thorsten Ball
a7717289eb
gtk: fix tab settings after introducing *Tab
2023-11-30 21:43:38 -08:00
Thorsten Ball
790cd84203
gtk: refator Parent/Tab/Paned and how they interact
2023-11-30 21:43:38 -08:00
Thorsten Ball
19f7b37bb3
gtk: move Child/Parent/Position into same file
2023-11-30 21:43:38 -08:00
Thorsten Ball
8afcce666a
gtk: wire up close-tab button
2023-11-30 21:43:38 -08:00
Thorsten Ball
2d7a81c0db
gtk: cleanup code in *Paned
2023-11-30 21:43:38 -08:00
Thorsten Ball
d88898fc61
gtk: get 1st version of GTK splits working
2023-11-30 21:43:37 -08:00
Nathan Fisher
aba1b85503
Add Parent
and Child
types for tracking splits; Add methods for
...
adding start and end children in `Paned` widget;
2023-11-30 21:41:34 -08:00
Nathan Fisher
5b5c2c9ab2
Fill out the rest of Tab.init()
2023-11-30 21:41:34 -08:00
Nathan Fisher
1b16c2dd23
Add to Tab.init and fix compilation errors
2023-11-30 21:41:34 -08:00
Nathan Fisher
5c0b668517
Begin working on a skeleton for splits in Linux/Gtk
2023-11-30 21:41:34 -08:00