- 07 Dec, 2020 6 commits
-
-
Gaël Bonithon authored
-
Gaël Bonithon authored
-
Gaël Bonithon authored
* Many GObject casts when the required type is actually gpointer * Some GtkWidget casts in the same situation, or when the object is already a GtkWidget * Factorizes some GObject casts in `mousepad/mousepad-private.h` macros * GSourceFunc casts (cast parameter in the function body instead)
-
Gaël Bonithon authored
-
Gaël Bonithon authored
If regex search is enabled at startup, a useless and expensive search can run in the background, when the file is loaded in the buffer. To prevent this, the "regex-enabled" setting isn't bound at startup as others, but bound/unbound with the "highlight" property when the search widgets are shown/hidden. This is a complement to the workaround already implemented in !58 to avoid prohibitive computation times in some situations.
-
Gaël Bonithon authored
This also reinforces existence tests before collecting asynchronous search results, and removes inappropriate use of a warning function. Fixes warnings reported in apps/mousepad!58 (comment 19853)
-
- 06 Dec, 2020 1 commit
-
-
Саша Петровић authored
356 translated messages. Transifex (https://www.transifex.com/xfce/public/).
-
- 05 Dec, 2020 4 commits
-
-
Hsiu-Ming Chang authored
356 translated messages. Transifex (https://www.transifex.com/xfce/public/).
-
Emin Tufan Çetin authored
356 translated messages. Transifex (https://www.transifex.com/xfce/public/).
-
Kjell Cato Heskjestad authored
356 translated messages. Transifex (https://www.transifex.com/xfce/public/).
-
Gaël Bonithon authored
A minimal fix in view of Mousepad 0.5.1, which might not include a larger work in progress, consisting of an extended use of GFile (thus avoiding many of these conversions). Fixes #81.
-
- 04 Dec, 2020 2 commits
-
-
Gaël Bonithon authored
An aesthetic complement to !58. See !63 for more details.
-
Gaël Bonithon authored
To prioritize backward compatibility over naming consistency, and since it is possible to circumscribe this inconsistency quite closely. See apps/mousepad!60 (comment 19670)
-
- 02 Dec, 2020 8 commits
-
-
Hugo Carvalho authored
356 translated messages. Transifex (https://www.transifex.com/xfce/public/).
-
Yannick Le Guen authored
355 translated messages, 1 untranslated message. Transifex (https://www.transifex.com/xfce/public/).
-
Robert Antoni Buj Gelonch authored
355 translated messages, 1 untranslated message. Transifex (https://www.transifex.com/xfce/public/).
-
Gaël Bonithon authored
By the way, avoid using `g_utf8_validate_len()`, only available since GLib 2.60.
-
Gaël Bonithon authored
This is an oversight in !48, see apps/mousepad!48 (comment 19703)
-
Gaël Bonithon authored
This is an oversight in !48, see apps/mousepad!48 (comment 19671)
-
UTUMI Hirosi authored
356 translated messages. Transifex (https://www.transifex.com/xfce/public/).
-
Anonymous authored
356 translated messages. Transifex (https://www.transifex.com/xfce/public/).
-
- 01 Dec, 2020 4 commits
-
-
Luna Jernberg authored
356 translated messages. Transifex (https://www.transifex.com/xfce/public/).
-
Anonymous authored
356 translated messages. Transifex (https://www.transifex.com/xfce/public/).
-
Emanuele Petriglia authored
356 translated messages. Transifex (https://www.transifex.com/xfce/public/).
-
Andreas Eitel authored
356 translated messages. Transifex (https://www.transifex.com/xfce/public/).
-
- 30 Nov, 2020 15 commits
-
-
Gaël Bonithon authored
-
Gaël Bonithon authored
This allows to increase/decrease the font size from a keybinding (Ctrl +/- by default), or using Ctrl + mouse wheel. This font size change is temporary, reset by a settings change, and applies only to the active view. Closes #46 and #54, see !60 for more details.
-
Gaël Bonithon authored
This is a preliminary commit before adding a new feature, allowing to change the font size from keyboard/mouse. * Replace "font-name" with "font" ("font-name" is deprecated as GtkFontButton property since GTK+ 3.22, and quite confusing since it's actually some kind of font description). * Make properties only writable, since it's the only way they are accessed in the code. * Clarify the way the font is set, depending on whether the default font is used or not. See !60 for more details.
-
Gaël Bonithon authored
* Use `g_printerr()` only in command line context. * Don't translate messages from `G_LOG_LEVEL_WARNING` and beyond. See !61 for more details.
-
Gaël Bonithon authored
This activates a spinner when a search is in progress, instead of an outdated or empty occurrences count, both in the search bar and the replace dialog. See !58 for more details.
-
Gaël Bonithon authored
This causes the search bar to follow tab switching, as is already the case with the replace dialog. If both widgets are used at the same time, the replace dialog takes precedence over the search bar to prevent conflicts. See !58 for more details.
-
Gaël Bonithon authored
This makes the occurrences count appear in the search bar, instead of the "Replace All" button. This one is moved in the menubar, with the other search-related items. See !58 for more details.
-
Gaël Bonithon authored
This switches to asynchronous search, so as not to block the UI when searching in big files and/or with regex search enabled. This is almost required when the search mode is "find as you type", which is the case for Mousepad. This also improves the search widgets behavior when documents change (from the buffer or tab), and the consistency between search widgets when used together, within the limits of what is possible. Codewise, this makes increased use of signals to connect the different widgets involved in the search, from the search bar and replace dialog to the documents, through the window and back. Some precautions are also taken to avoid prohibitive computation times in some situations, because of a GtkSourceView issue. See !58 for more details.
-
Gaël Bonithon authored
This last commit of the "GMenuModel-* binding" series adds a `mousepad_window_toolbar_new_from_model()` function, in echo to the `gtk_menu_bar_new_from_model()` function. The goal is to build the same kind of binding, using again the "items-changed" GMenuModel signal, and taking advantage of the use of shared menu items introduced in the previous commit. See !50 for more details.
-
Gaël Bonithon authored
This GMenuModel-GMenuModel binding not only involves the use of the "items-changed" signal, but also a trick in the way to write the GtkBuilder menu files (`mousepad/resources/gtk/*.ui`). The goal is to remove duplicates in these files, by defining a menu item only once (with all its attributes: label, icon, tooltip, action, accel, etc.), and then reusing it in any menu where it should appear, using a syntax close to the expected but missing `<item id="my-already-defined-item"/>`. Downstream, this simplifies the synchronization of the different widgets that use these shared menu items, and makes the overall code easier to maintain. See !50 for more details.
-
Gaël Bonithon authored
This is a preliminary commit before adding a binding between different kinds of GMenuModels. See !50 for more details.
-
Gaël Bonithon authored
Using the "items-changed" GMenuModel signal, this adds an additional GMenuModel-GtkMenu binding (they are already bind in `gtk_menu_bar_new_from_model()`), to automatize a bit more tooltip updates, and localize a bit more this process in `mousepad_window_menu_set_tooltips()`. See !50 for more details.
-
Gaël Bonithon authored
This adds the ability to display only the white spaces at the beginning of the line, the end of the line or between words (or any combination of these three possibilities), accessible only from GSettings. To do this, a property is added to the application that is synchronized with GSettings on the one hand, and with the different views on the other hand. Closes #44, see !46 for more details.
-
Gaël Bonithon authored
-
Gaël Bonithon authored
Using the correspondence between GAction and GSettings (common names, common use of GVariant), this commit globally simplifies action handling. In particular, setting-related actions are transferred from the window level to the application level, resulting in only three generic handlers to bind an action to its setting. As `mousepad/resources/ui/mousepad-prefs-dialog.ui` was already heavily impacted by these changes, this also adds some cleaning (consistency and/or updating of the notations used), and incorporates some object property bindings currently made in `mousepad/mousepad-prefs-dialog.c`. See !48 for more details.
-