Sébastien Wilmet
cdff029a71
Window: API docs: better document the GeditWindowState enum
2024-03-23 12:14:21 +01:00
Sébastien Wilmet
075e0f905a
Window: API docs: re-order the functions
2024-03-23 11:56:54 +01:00
Sébastien Wilmet
0763bec976
Window: improve the API docs
2024-03-22 19:36:11 +01:00
Sébastien Wilmet
5a6856e4cf
docs: write class descriptions for all the main classes
2024-03-22 17:29:39 +01:00
Sébastien Wilmet
d5a89e48f8
docs: split API Reference into two chapters
2024-03-22 16:28:11 +01:00
Sébastien Wilmet
f83ae5e7d8
NEWS file: write all new news so far
2024-03-22 16:09:06 +01:00
Sébastien Wilmet
3cd16c3bca
App: improve a little the show_help() function
2024-03-22 15:15:14 +01:00
Sébastien Wilmet
2aed53e51c
App: small docs enhancements
2024-03-22 15:07:17 +01:00
Sébastien Wilmet
cd79b9f369
App: make process_window_event() private
2024-03-22 14:58:19 +01:00
Sébastien Wilmet
f09a5fa4ee
App: improve docs
...
- Add a class description.
- More logical function order.
2024-03-22 14:43:25 +01:00
Sébastien Wilmet
2010ee45d7
App: make set_window_title() private
...
And reformat the headers while at it.
2024-03-22 14:30:24 +01:00
Sébastien Wilmet
9cf0cfe437
Tab: start to document the GeditTabState enum
2024-03-22 13:30:25 +01:00
Sébastien Wilmet
16b637a454
commands-file: use _gedit_window_get_can_close()
...
Remove the g_return in file_close_all() because it's a static function
and the condition is already checked before all calls to it.
2024-03-21 20:47:20 +01:00
Sébastien Wilmet
aa6eea9f69
Window: start to document the GeditWindowState enum
...
This fixes a compilation warning when building the docs.
It will be easier to improve this documentation since the boilerplate is
now present.
2024-03-21 20:20:59 +01:00
Sébastien Wilmet
6bf531453a
App: use _gedit_window_get_can_close()
...
And improve a little the surrounding code.
2024-03-21 20:06:13 +01:00
Sébastien Wilmet
4737d39e88
Window: add get_can_close() private function
2024-03-21 19:55:27 +01:00
Sébastien Wilmet
95daea6699
commands-file: quit(): minor coding style changes
2024-03-21 17:58:48 +01:00
Sébastien Wilmet
03ca27835c
commands-file: split the quit() function in two
2024-03-21 17:44:08 +01:00
Sébastien Wilmet
d630a4e48f
commands-file: change signature of quit()
...
Small simplification.
The function probably needs to be split in two, but this can be done as
a further commit.
2024-03-21 16:13:23 +01:00
Sébastien Wilmet
7e89b3c728
commands-view: put some code that doesn't work in comments and add todo
2024-03-21 13:31:09 +01:00
Sébastien Wilmet
382d0adddb
commands-view: small cleanup
2024-03-21 13:30:49 +01:00
Sébastien Wilmet
a904a6f235
commands-help: cleanup and small update
2024-03-21 12:36:15 +01:00
Sébastien Wilmet
fc39140e01
commands-file-print: small cleanup
2024-03-21 12:22:44 +01:00
Sébastien Wilmet
7aedc53a61
commands-documents: remove useless #include
2024-03-21 12:17:51 +01:00
Sébastien Wilmet
bbc9954473
commands-documents: small cleanup
2024-03-20 21:36:51 +01:00
Sébastien Wilmet
91329a42e0
Window: simplify configure_event()
...
save_window_state() has the same condition for
window->priv->window_state.
2024-03-20 14:31:52 +01:00
Sébastien Wilmet
b6644c691b
Window: minor code improvements
2024-03-20 12:44:22 +01:00
Sébastien Wilmet
f7310bada3
Window: add missing g_settings_apply()
...
The call to g_settings_apply() was removed in
commit 9c27bdaec6
but was implicitly useful for the call to save_window_state() in dispose
as well.
2024-03-20 09:40:21 +01:00
Sébastien Wilmet
463f54ec2f
Window: small refactoring for save_window_state()
2024-03-20 09:29:07 +01:00
Sébastien Wilmet
9c27bdaec6
Window: delegate a bit more work to SidePanel and BottomPanel
2024-03-20 09:04:12 +01:00
Sébastien Wilmet
4918144a13
BottomPanel: add save_state()
2024-03-20 08:21:10 +01:00
Sébastien Wilmet
530b67f1b3
SidePanel: add save_state()
...
To have less code in GeditWindow.
2024-03-20 08:00:36 +01:00
Sébastien Wilmet
01231d1eab
SidePanel: make the class truly internal
...
Note the added g_type_ensure() call to make it work for the *.ui file.
2024-03-20 07:46:44 +01:00
Sébastien Wilmet
2e6e25b0b8
Window: use the GeditBottomPanel class
2024-03-20 01:31:43 +01:00
Sébastien Wilmet
02ac056f4f
BottomPanel: implement UI
2024-03-20 01:31:43 +01:00
Sébastien Wilmet
a2e19e87a4
BottomPanel: class skeleton
2024-03-20 00:54:21 +01:00
Sébastien Wilmet
04f557174b
Window: bug fix: fixme comment about the bottom panel
...
Grab the focus on the whole bottom panel, not the GtkStack. To do the
same as done by _gedit_cmd_view_toggle_bottom_panel(). This is subject
to change if it appears to be better to grab the focus on the GtkStack
instead.
2024-03-19 16:29:58 +01:00
Sébastien Wilmet
f1018fb22d
Window: bug fix, work on the whole bottom_panel in certain cases
...
Use the whole bottom_panel for two purposes:
- the panel visibility.
- the size (height).
The bug (now fixed)
-------------------
The bottom panel size was not correctly restored after quitting and
restarting gedit. The same when opening a new window.
2024-03-19 15:45:47 +01:00
Sébastien Wilmet
5f92c2d89b
Window: rename bottom_panel -> bottom_panel_stack
...
And have the GtkStack type.
2024-03-19 14:26:57 +01:00
Sébastien Wilmet
c0ed0e2b0a
Window: simplify a little the *.ui file
...
The GtkBox contained only one child.
Setup the valign property.
2024-03-19 03:09:39 +01:00
Sébastien Wilmet
be1aa04db7
Window: remove some dead code from *.ui file
2024-03-19 03:09:39 +01:00
Martin
f36998dd22
Update Slovenian translation
2024-03-17 10:11:05 +00:00
Aurimas Černius
42d90545e5
Update Lithuanian translation
2024-03-16 20:54:34 +00:00
Sébastien Wilmet
cb337d2cdf
NotebookStackSwitcher: more precise type for the notebook attribute
2024-03-15 15:51:21 +01:00
Sébastien Wilmet
1d618cb2a1
NotebookStackSwitcher: various small code improvements
2024-03-15 15:34:17 +01:00
Sébastien Wilmet
bccdeed716
utils: remove location_get_dirname_for_display() from the API
...
Reformat also the header while at it.
The function is badly implemented, see the FIXME comment about the use
of a sync GIO API.
The code needs to be reworked.
2024-03-15 12:20:28 +01:00
Sébastien Wilmet
dd508ce236
NEWS file: write all news so far
2024-03-15 10:42:11 +01:00
Sébastien Wilmet
d94b2c13b3
Window: keep only one ::active-tab-changed* signal
...
1) Remove the deprecated signal (no longer used).
2) Rename the ::active-tab-changed-simple signal to
::active-tab-changed and adapt the code accordingly.
3) Document the API break.
2024-03-15 10:23:42 +01:00
Sébastien Wilmet
5fd0084999
snippets: don't use deprecated GeditWindow signal
2024-03-15 09:59:57 +01:00
Sébastien Wilmet
09314b69ab
WindowTitles: listen to TeplBuffer:tepl-short-title property changes
...
The short_title is what is used by the update function, not the tab
name.
2024-03-15 08:06:04 +01:00