Commit Graph

212 Commits

Author SHA1 Message Date
Steve Groesz 0f6148c892 backport whitespace rendering to LM 19.3 Tricia 2021-07-17 03:05:39 -05:00
Clement Lefebvre 3e37213b5e Print preview: Reuse existing msgid 2019-11-22 12:11:17 +00:00
Michael Webster 8763fbf5df print-preview: add a print button to the preview toolbar, to immediately
print the previewed document.
2019-11-05 20:07:35 -05:00
Clement Lefebvre 54978e6e8f Preferences: Make dialog slightly taller 2019-07-23 12:11:14 +02:00
Alexander Drozdov f4c882e3b5 Automatically open new Xed window on current workspace... (#319)
...if it wasn't already opened. Otherwise, open new tab
in Xed window on current Workspace.

Fix regression #318
2019-07-10 11:24:52 +02:00
Stephen Collins 52ee1591f7 Prevent a warning when closing the window while print preview is open (#315)
The warning was caused by the preview trying to save print settings
after the settings object was cleared. Clearing the settings object
in *_finalize instead of *_dispose fixes the issue.
2019-06-23 14:23:08 +02:00
Stephen Collins dde92eecbf Simplify an if statement. The logic is identical, but easier to read (#314) 2019-06-20 09:29:36 -07:00
Stephen Collins 7bdc217e8c Tab width popup: only select a menu item when the menu is open (#311)
This fixes a gdk window assertion error that occurs every time xed
is opened, as well as causes the correct menu item to actually be
selected as expected (it currently isn't).
2019-06-15 01:21:57 -07:00
Stephen Collins 2520d1c087 Remove deprecated call to gtk_widget_override_background_color (#299)
This was an override that no longer seems necessary and is causing
deprecation warnings.
2019-05-13 00:32:52 -07:00
Stephen Collins 116bfc2ac1 Remove references to deprecated GTK_STOCK_* (#298) 2019-05-13 00:32:34 -07:00
Stephen Collins 17062aaa18 Fix stuttering and disappearing of the toolbar when fullscreen (#300)
This fixes an issue where moving the mouse along the top edge of the
screen while fullscreened will cause a leave event to be triggered,
even though the mouse pointer is still inside the event box. This
caused the toolbar to disappear and/or stutter while moving the mouse
along the top edge.
2019-05-13 00:23:03 -07:00
Stephen Collins aa7dabad39 Search: replace a few functions that were deprecated in Gtk 3.22 (#297)
gtk_source_search_context_forward_finish,
gtk_source_search_context_backward_finish, and
gtk_source_search_context_replace
were replaced with
gtk_source_search_context_forward_finish2,
gtk_source_search_context_backward_finish2, and
gtk_source_search_context_replace2
respectively.
2019-05-08 02:34:06 -07:00
Stephen Collins 15ec9b4e65 Print preview: remove a couple calls to gtk_adjustment_value_changed (#296)
This function is no longer needed as the "value-changed" signal is
automatically emitted whenever the value changes (since Gtk 3.18).
2019-05-08 02:29:29 -07:00
Stephen Collins e7328ad12e print job: replace some deprecated font button functions (#294)
Replaces gtk_font_button_*et_font_name with gtk_font_chooser_*et_font
2019-05-08 02:08:22 -07:00
Stephen Collins 4044529191 Add toggle comment and toggle comment block actions w/ keybindings (#290) 2019-05-05 10:27:11 +01:00
Stephen Collins 992ca7a3ec print preview: fix logic for forward button sensitivity (#292)
Previously, the logic used to set the sensitivity of the forward
navigation button failed to consider when multiple pages are shown.
This resulted in the forward button being sensitive in some cases,
even if all pages, or the last page were shown. With this commit, it
is now updated properly.

Also, when the rows and columns are changed, the current page is now
changed to the nearest multiple of rows*cols so that the current page
is still shown, but navigating back to the beginning and then forward
again will be consistent.
2019-05-05 10:26:58 +01:00
Stephen Collins 67892da099 Fix some deprecation warnings (#289)
* xed-app.c: replace get_active_window with gtk_application version

This allows us to remove quite a bit of code, some of which uses
deprecated functions, so it also has the benefit of cleaning up the
deprecation warnings a bit.

* Switch a couple uses of gtk_show_uri with gtk_show_uri_on_window

gtk_show_uri is deprecated.

* Taglist plugin: remove call to gtk_tree_view_set_rules_hint

This function is deprecated, and it already defaults to false in
any case, so it wasn't doing anything anyway.

* Deprecations: move all instances of gtk_menu_popup to newer methods

In a couple cases this simplifies the code quite a bit

* Replace deprecated gdk_window_at_pointer with newer method
2019-05-05 10:25:37 +01:00
JosephMcc 2ebff67c9c xed-notebook: Always show the main notebook tabs (#285)
We were only showing the tabs when more than one file was open. When
fullscreen this leaves no indication of the current file having been modified
if there is only one. Instead just set them to show at all times.

Closes: https://github.com/linuxmint/xed/issues/152
2019-05-05 10:21:18 +01:00
JosephMcc 43ee0436d8 xed-window: Fix the tabs/spaces label in the statusbar (#283)
This was broken in the commit that added the new highlight mode selection
dialog. Get it working again.
2019-05-05 10:20:53 +01:00
Stephen Collins 2e3f337e84 print preview: fix layout drawing for 1X2 and 2X1 layouts (#291)
The indices were backwards, which was causing incorrect layout, and
scrolling issues at larger zoom levels.
2019-05-03 16:19:49 +01:00
JosephMcc d208cae3bc cleanup: Remove an unused Makefile.am (#280)
We build with Meson now so don't need this
2019-03-25 15:35:46 +00:00
JosephMcc 05b68fb5f5 statusbar: Fix the menu button styling (#281)
This was broken in 7ce2a750db (diff-d114482c8758b92b9c56c95d18efe926)
2019-03-25 15:35:26 +00:00
Michael Webster b868ebde1c highlight mode window: Make activatable via shortcut (ctrl-shift-H),
focus the search entry by default, and allow Escape to cancel the
dialog from the search entry.

Fixes linuxmint/mint-19.1-beta#18
Fixes linuxmint/mint-19.1-beta#19
Fixes linuxmint/mint-19.1-beta#20
2018-12-09 00:07:15 -05:00
Clement Lefebvre 0ec63fc00e Fix merge issues
POTFILES.in and xed-window.c required a couple of changes
after the status selector PR was merged.
2018-11-19 11:30:51 +00:00
Clement Lefebvre 7ce2a750db Merge branch 'highlight-selector' of git://github.com/TomaszGasior/xed into TomaszGasior-highlight-selector 2018-11-19 11:16:20 +00:00
Stephen Collins 6e36dc4a5f Port to meson (#258)
* Port to meson

* plugin generation script: swtich to meson, update to python3, switch to libpeas, add some extra options, and cleanup

* clean up some build warnings

* kill xed-bugreport.sh with fire: it isn't used anymore, and probably doesn't even work

* update gzip command to avoid warnings on some systems and move appdata.xml to /usr/share/metainfo/ as that's where it's supposed to go now

* POTFILES.in: fix path that changed in the meson port, which was causing makepot to fail
2018-11-19 11:09:52 +00:00
NikoKrause 39cadaa36e close dialog: use "suggested-action" style class (#261)
... for the default actions (save as, save)
2018-11-15 10:10:25 +00:00
NikoKrause 834266682c Rearrange help entries (xapp consistency) (#256)
also delete duplicate entry
2018-10-10 10:51:56 +01:00
NikoKrause 3523968707 Use icon for keyboard shortcuts help entry (#255) 2018-10-09 11:04:20 +01:00
JosephMcc 494a2e7ce3 xed-window: Indicate if we are currently using spaces or tabs in statusbar (#246)
Other editors like Sublime do this and it's more obvious to the user what they
are currently using. The current label "Tab Width" can be misleading.
Especially since we default to using spaces.
2018-09-24 09:59:07 +01:00
Tomasz Gąsior 0b1133ac44 Kill XedStatusComboBox. It's not used now. 2018-07-22 22:30:19 +02:00
Tomasz Gąsior 986655d6aa Use XedStatusMenuButton instead -ComboBox in statusbar, for consistency. 2018-07-22 20:13:26 +02:00
Tomasz Gąsior 06a20265ea Use popover with highlight selector instead loooong menu in statusbar. 2018-07-22 16:49:55 +02:00
Tomasz Gąsior 66c155a386 Fix compilation warning. 2018-07-22 16:24:59 +02:00
Tomasz Gąsior fe3fa259fb Import GeditStatusMenuButton. 2018-07-22 16:23:29 +02:00
Tomasz Gąsior ac9d0a9343 XedWindow cleanup. 2018-07-21 22:56:14 +02:00
Tomasz Gąsior bc381189c7 Use highlight dialog instead submenu in "View" menu. 2018-07-21 22:34:26 +02:00
Tomasz Gąsior d4de361efb Import GeditHighlightModeDialog and -Selector from Gedit to Xed.
Just copy&paste and change Gedit -> Xed.
2018-07-21 22:26:37 +02:00
Michael Webster dfcf007a44 search bar/xed-history-entry: Set a 'width-chars' on the GtkEntry
widgets of the search and replace entry widgets, and allow their
labels to ellipsize upon resizing.

This allows the entry widgets to have a smaller minimum size, which
was having an impact on window tiling for certain locales and display
resolutions (muffin and other wm's won't allow tiling of a window
if the resulting window size is less than the minimum size hints
reported by gtk and other toolkits.)

Ellipsizing the labels has the same benefit of enabling xed to be
resized smaller to tile on smaller displays.  This ellipsizing only
occurs once the entries hit their minimum size.

Fixes #73
2018-07-06 14:40:07 -04:00
JosephMcc 3999de8f59 xed-window: Fix a potential crash 2018-03-11 04:38:24 -07:00
JosephMcc 19354f86c1 Clean up a few build warnings
Mostly just missing casts and removing a couple now unused functions and
variables.
2018-02-05 01:48:10 -08:00
JosephMcc 39dcfcab0b Fix a couple of issues turned up by Codacy 2018-02-05 01:03:13 -08:00
JosephMcc 6c7e40c3ba xed-notebook: Allow changing tabs with mouse back/forward buttons
While at it, fix the direction for switching tabs when scrolling with the
mouse wheel.

Closes https://github.com/linuxmint/xed/issues/115
2018-02-05 01:03:13 -08:00
JosephMcc a13a573228 xed-searchbar: Fix the size of the searchbar close button
The theming for this changed in gtk3.20+. Get it back to the proper size and
theme it in xed-style.css instead of hard coding it.
2018-02-05 01:03:13 -08:00
JosephMcc 100428eaf9 css: Add support for Adwaita 2018-02-05 01:03:13 -08:00
JosephMcc ddaf70747c xed-view: Add shortcuts for change case
Closes https://github.com/linuxmint/xed/issues/154
2018-02-05 01:03:13 -08:00
JosephMcc 6159ad5be2 Add a shortcuts window 2018-02-05 01:03:13 -08:00
JosephMcc 6383f71fa0 xed-notebook: Clean up some gtk3.20+ conditionals
Since we are moving to gtk3.22 we can clean these up.
2018-02-05 01:03:13 -08:00
JosephMcc c269c57777 xed-view-frame: Fix the css for the minimap frame
This makes it work in gtk3.20+
2018-02-05 01:03:13 -08:00
JosephMcc 561c94e71a xed-status-combo-box: Remove some deprecated css functionality
This stuff is deprecated and just spams warnings so clean it up.
2018-02-05 01:03:12 -08:00