1
0
mirror of https://github.com/GNOME/gedit synced 2024-07-05 03:15:06 +00:00
Commit Graph

21 Commits

Author SHA1 Message Date
Sébastien Wilmet
2d68ee477b build: change a meson option to buggy_plugins
The externaltools plugin must *not* be enabled on production systems.
2024-06-22 05:40:22 +02:00
Sébastien Wilmet
a013aeffb3 build: replace inline_side_panel_switcher option -> headerbar option
The inline_side_panel_switcher is implied by the fact that there is an
headerbar or not.

The GEDIT_HAS_HEADERBAR macroconstant still needs to be used in other
places, to actually create the headerbars or not.
2023-07-25 16:00:00 +02:00
Sébastien Wilmet
22b6cb5b3b build: remove a comment
On macOS the headerbar is absent, so it's not possible to put the
switcher there.

The headerbar is absent because it's a normal GtkWindow titlebar plus
the menu available at the top of the screen, detached from the GtkWindow
(like native macOS apps).
2023-07-25 16:00:00 +02:00
Sébastien Wilmet
4c306b6ee7 build: add inline_side_panel_switcher option
See the comment in meson_options.txt.

If macOS still requires an inline switcher, then we can still keep this
option for testing it on Linux.
2023-01-03 16:00:00 +01:00
Sébastien Wilmet
771d778a22 build: options: minor improvement to a comment 2022-11-15 22:14:42 +01:00
Sébastien Wilmet
f20c462777 build: set gtk_doc option to true as its default value
The default values in meson_options.txt are tuned for Linux
distributors.

And I recommend Linux packagers to build the gtk-doc of gedit, so that
it's easier for plugin developers to install e.g. a -devel package,
launch Devhelp and access the API docs.
2022-07-15 17:57:14 +02:00
Sébastien Wilmet
5164375a72 Revert "Merge branch 'master' into wip/next"
This reverts commit 661db63099, reversing
changes made to a8cb2b57f9.

It is to basically come back to:
commit a8cb2b57f9
the previous version of gedit based on the Tepl library.

The goal is to continue the gedit development (on master), but based on
the Tepl library.
2022-07-15 10:49:56 +02:00
Matt Turner
470893ed06 Make gspell and python optional 2021-05-03 16:29:49 +00:00
Zander Brown
fa587e033c deteplification: the mega commit
This commit is a reverse patch of a rebased version of gedit with
commits related to tepl/amtk removed

Sébastien Wilmet has stopped development of these libraries, relevant
commits:

34a1171298
457b5c37eb

As a result usage is being dropped in favour simplifing gedit
dependencies, because there are not enough developers, and too many bugs.
Do you prefer a rock-solid text editor? Or a text editor with some shiny
and non-essential dependencies that complicate the build, at the expense
of more bugs?

Tracked at: https://gitlab.gnome.org/Infrastructure/Infrastructure/-/issues/564

Commits Dropped:
cfeb7cb6c build: add Tepl dependency, second try
872fb4809 Utils: use str truncate functions from Tepl
9a121d523 Utils: deprecate str_end_truncate()
e0e602799 No longer use gedit_utils_str_end_truncate()
657ce9f7a Utils: deprecate str_middle_truncate()
6eefa74c2 No longer use gedit_utils_str_middle_truncate()
169c1594e main: call tepl_init() and tepl_finalize()
ec31f0c22 snap: Fixed build failures by added tepl part
76cf5562d Document: remove metadata implementation
75cdb6a77 Document: second pass to remove metadata implementation
d6b158ca6 App: remove the GeditMetadataManager
6eccd6672 Remove GeditMetadataManager
03929157e build: remove enable-gvfs-metadata option
1dad3bce2 build: remove libxml dependency
8c0825424 metadata: adapt key names for TeplFileMetadata
c2904aa80 Document: metadata: create an internal TeplFile
9c8ede1e2 App: setup Tepl metadata manager
91bc04efc App: remove leftover comment
b39dd0201 Document: use TeplFileMetadata to re-implement set/get_metadata()
494677bfc Utils: use tepl_utils_replace_home_dir_with_tilde()
aaaa28a87 docs: gtk-doc fixxref: fix the path for gtk and add path for tepl
8710e89d8 Remove GeditViewCentering
5e0909c19 ViewFrame: disable overlay scrolling for the GtkScrolledWindow
7c7296b0e Remove overview map: remove from preferences dialog
26899e0ba Remove overview map
27f54a9ae replace-open-button: remove OpenDocumentSelector
504ced5a9 replace-open-button: Window: remove open document popover
3a8c5bbc2 replace-open-button: remove open button UI
abab6529f replace-open-button: re-create a simple Open button
1ee984a41 replace-open-button: re-create simple Open Recent menu button (UI)
f1a58a70b replace-open-button: set Open Recent menu with Amtk
020e0b340 replace-open-button: re-handle the fullscreen mode
4dfd2104e Window: remove dead code (#defines)
0caf371b1 Window: make the code a little clearer wrt fullscreen mode
584aeb202 Window: rename fullscreen_controls -> fullscreen_revealer
75705bf1d Window: some code cleanup wrt fullscreen mode
cf0d62617 Window: simplify setting the state of the fullscreen revealer
8706e5624 Window: fullscreen mode: remove idle function
6361b281c Window: fullscreen mode: remove no longer needed code
8d3e6faf2 Window: fullscreen mode: fix headerbar shown/hidden "stuttering"
a437e5245 Window: fullscreen mode: add comment about the "stuttering" fix
d064c5f88 Window: remove useless #include
15833e5c7 build: list of deps: simplify
007caff57 build: list of deps: simplify version requirements
72dc3a477 build: avoid the use of a variable
4a49c8562 flatpak: update Amtk to 5.0.2
9ab7b0f0a utils: remove GBOOLEAN_TO_POINTER() and GPOINTER_TO_BOOLEAN()
55c5f1423 Utils: deprecate gedit_warning()
cbdd3a85d PreferencesDialog: use tepl_utils_show_warning_dialog()
7a442c766 Utils: deprecate decode_uri(), use the tepl one
bf3d57003 Use tepl_utils_decode_uri()
2e45bb03f io-error-info-bar: remove useless #include's
092411115 io-error-info-bar: use TeplInfoBar for the file_already_open_warning
8ccb4566f io-error-info-bar: file_already_open_warning moved to Tepl
8bfe0559a io-error-info-bar: use TeplInfoBar for no_backup_saving_error
ca582d2c7 io-error-info-bar: fix fixme in no_backup_saving_error
fa1758081 io-error-info-bar: no_backup_saving_error: show also error->message
321eccdd7 io-error-info-bar: no_back_saving_error moved to Tepl
7bb880114 io-error-info-bar: tepl function renamed to have a shorter name
d1a14a063 io-error-info-bar: externally_modified: use TeplInfoBar
bf60cc1af io-error-info-bar: invalid_character: TeplInfoBar + other improvements
44cff9798 io-error-info-bar: externally_modified: remove unneeded code
873ed25f1 io-error-info-bar: externally_modified: further simplify the code
a8a4724fc io-error-info-bar: externally_modified: moved to Tepl
ec8d8c717 io-error-info-bar: invalid_character: moved to Tepl
2aae17c31 flatpak: switch Tepl to Meson
9caaddeda Window: fix RTL bug for Open buttons in the headerbar
82d8c507d View: subclass TeplView
e23569c59 View: deprecate lots of functions, use the TeplView ones
291eb9c8e commands-edit: use TeplView functions
00f8c5e63 Use tepl_view_scroll_to_cursor()
5fdeaee22 Document: deprecate goto_line() and goto_line_offset()
d87bf25ba commands-file: use tepl_view_goto_line*()
fd5500d90 Tab: use tepl_view_goto_line_offset()
3c8a1dcb8 ViewFrame: use tepl_view_goto_line*()
079f9699e pkg-config file: add Tepl as public dep
cf6281d04 docs: document that gedit is in the process of using more Tepl features
9ac62a6fd build: require Tepl 5
3f84484d8 App: port to new Tepl metadata API
9b9fa6c77 Document: port to new Tepl metadata API
491280c04 docs: roadmap: link to new Tepl roadmap
49db2a666 PreferencesDialog: use TeplStyleSchemeChooserWidget to fix several bugs
94c3b70cb PreferencesDialog: improvements to color scheme management
53cfa1715 PreferencesDialog: fix some bugs when (un)installing color schemes
da5b9af9f snap: the tepl build is meson only now
012a07cb7 snap: use the correct option to specify parameters
325aa857c Factory: class skeleton
7b8579770 Factory: implement ::create_metadata_manager_file vfunc
d5a43cece Factory: create it in main() and set it as the TeplAbstractFactory
392545195 App: use tepl_application_handle_metadata()
8b2fa9092 Keep default buttons orientation for TeplInfoBars
efe48bbe8 flatpak: remove uchardet, Tepl no longer depends on it
5e588d978 PreferencesDialog: improve code to install extra style scheme
eada68d97 PreferencesDialog: use GtkFileChooserNative, not GeditFileChooserDialog
55fc5973c FileChooserDialog: remove hide() (now dead code)
4f5a5681b FileChooserDialog: remove add_pattern_filter() (now dead code)
105ca1ded File choosers: remove GeditFileChooserFlags
ff1e9c27c Update Romanian translation
b4a52f479 Merge branch 'master' of gitlab.gnome.org:GNOME/gedit
21d94f23b Remove all the deprecated API
4b5838b1e docs: update path to Amtk docs for the gtk-doc fixxref_args
a4cf3ac57 Use tepl_pango_font_description_to_css()
205bfc855 Window: port to TeplLanguageChooserWidget
ffedbc882 commands-view: port to TeplLanguageChooserDialog
1dc325294 Remove GeditHighlightModeSelector and GeditHighlightModeDialog
e487680b2 Use Tepl 6 (currently 5.99)
ee465ef0c Tab: port to TeplProgressInfoBar
bc992e11e Remove GeditProgressInfoBar, replaced by TeplProgressInfoBar
fa9d6aeaa docs: document the GeditProgressInfoBar removal
bb4ba5543 docs: document that all deprecated APIs have been removed
325351805 GeditDocument: subclass TeplBuffer
8b01acace GeditDocument: remove the ::cursor-moved signal
b938c50f8 Use the TeplBuffer::tepl-cursor-moved signal
6b6a6e595 GeditDocument: bind GtkSourceFile and TeplFile :location properties
f73828fe1 GeditDocument: remove unused instance variable
01d8a1577 flatpak: build amtk from git master, not from an archive
6e78a57c9 GeditDocument: use tepl_file_get_short_name()
49749c38a GeditDocument: remove untitled_number handling
844f6185a Tab: use TeplFile:short-name property notification
49c0c814a GeditDocument: remove the :shortname property
a4670d7ce help: "Untitled Document" -> "Untitled File"
4d4d5d48c Use tepl_buffer_is_untouched()
b0f67d391 GeditDocument: remove is_untouched()
85b007052 GeditDocument: use the TeplFile location in is_untitled()
4df850fb6 View: use TeplSignalGroup
ef0d0ca9b View: minor code changes
284e6c05c View: make set_font() private
6b1e782d9 View: code refactorings for set_font()
ce790b510 View: use tepl_utils_override_font()
79b3e3011 GeditSettings: remove no longer needed code
da4b3e61a GeditSettings: minor code change: removed unused function param
13033affa GeditSettings: rework fonts changes handling, add ::fonts-changed signal
878ceb988 GeditSettings: minor code change, improve get_system_font()
1e89921a3 GeditSettings: add get_selected_font()
9ef4cf7ed View: simplify the code to update the font
3a3de93bd debug: remove DEBUG_METADATA (dead code)
43925dac7 recent: use the TeplFile
2f7c4a691 recent: move some functions to gedit-recent-osx
87b1f50d4 recent-osx: add TODO comment

Brought to you by GitLens, which honesntly has been very useful
unpicking all this and sticking it back together again
2021-04-13 04:53:21 +00:00
Sébastien Wilmet
5e58ee3c23 build: add option to disable installing the externaltools plugin
The externaltools plugin doesn't work on Windows, there is an error when
loading it, it cannot import fcntl (which is specific to Unix).

So, be able to not install the plugin.

Maybe there is a way to make that plugin work on Windows, but I'm far
from an expert in Python, so contributions welcome.
2020-05-01 04:21:08 +02:00
Sébastien Wilmet
14055fee82 build: add require_all_tests option
Currently it's applied only to the data/ directory.
2020-03-16 11:09:27 +01:00
Sébastien Wilmet
6891e11f69 build: follow meson coding style for meson_options.txt 2020-03-14 18:52:31 +01:00
Sébastien Wilmet
9994fae8a2 build: always require GObject Introspection and vapigen
The gedit repo contains Python plugins. And the gedit-plugins repo
contains one Vala plugin.

It simplifies the build instructions.
2020-03-14 13:38:19 +01:00
Sébastien Wilmet
8c7bfd5428 build: remove option to not build plugins, i.e. always build plugins
The plugins present in this git repo are part of the core experience of
gedit and should all be installed by default.
2019-12-06 07:56:59 +01:00
Sébastien Wilmet
9af1a369ed build: rename option documentation -> gtk_doc
To follow the same option name as used by GLib (GLib can serve as a
reference point).
2019-11-19 15:37:11 +01:00
Sébastien Wilmet
9b226789dc build: rename option user-documentation -> user_documentation
The convention is to have underscores for options. For example that's
what GLib uses (GLib can serve as a reference point).
2019-11-19 15:26:31 +01:00
Sébastien Wilmet
03929157ec build: remove enable-gvfs-metadata option
See the previous commits. There is a similar option in Tepl.
2019-11-14 10:03:09 +01:00
Sébastien Wilmet
1ebdc5ae51 build: add user-documentation option
That option was present with Autotools.

Building the user docs takes a long time when doing `ninja install`.
So when doing gedit development, the option can be set to false.
2019-11-12 13:38:09 +01:00
Sébastien Wilmet
f9f16cf46e build: small improvements to meson_options.txt 2019-11-12 13:16:16 +01:00
Andrea Azzarone
64cc3b8534 build: Reintroduce enable-gvfs-metadata option
Gedit used to have an enable-gvfs-metadata to enable using gvfs to store
metadata. This option was removed with the port to meson. Reintroduce it and set
the default to 'auto' (defaults to 'yes' when running in linux, to 'no'
otherwise).

Closes: https://gitlab.gnome.org/GNOME/gedit/issues/141
2019-04-12 13:00:52 +01:00
Martin Blanchard
a8e5ce2854 build: Port to the meson build system
Introduce meson build scripts along autotools ones. Porting modules to
the meson build system is a GNOME Goal, details here:

https://wiki.gnome.org/Initiatives/GnomeGoals/MesonPorting

https://gitlab.gnome.org/GNOME/gedit/issues/71
2019-01-12 12:15:16 +00:00