Commit Graph

236 Commits

Author SHA1 Message Date
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
JosephMcc 78ca6d13e0 xed-window: Rework the fullscreen toolbar
The animation used for hiding/showing the fullscreen toolbar is totally broken
under HiDPI. Port to GtkRevealer and GtkEventBox to get the proper behaviour.
2018-02-05 01:03:12 -08:00
JosephMcc bc18f166a3 preferences-dialog: Complete revamp
Use the new XApps preferences window as the base for a total redesign of the
new dialog. While at it port to GtkSourceStyleSchemeChooserWidget.
2018-02-05 01:03:12 -08:00
JosephMcc ef9294aae2 Pull upstream fixes for gtk and gtksourceview changes
* fix errors in xed-metadata-manager
* upstream changes for file loading and saving
* modernize some code in xed-document

Closes https://github.com/linuxmint/xed/issues/146
2018-02-05 01:03:12 -08:00
Leigh Scott 50b01551ac Fix clang compile issue (#209) 2018-01-30 10:09:43 +00:00
JosephMcc cbdd4d3197 xed-status-combo-box: Simplify the widget heirarchy (#185)
Remove an unneeded frame widget. This cause padding issues in gtk3.22 that
requires overly convoluted theming to get around. This still leaves a few
warnings from the hard coded theming but those can be removed later when we
no longer need to support gtk3.18.
2017-11-17 10:40:37 +00:00
JosephMcc ce59112fd1 Minimap (#175)
* Add a minimap

Add support for GtkSourceViews SourceMap object. Add both a default setting for
new files to the preferences dialog and a menu item to allow temporarily
disabling it in any view.

* Require gtk and gtksourceview 3.18

* load custom css

We can use this to make small tweaks to the interface so every theme doesn't
need to add specific support.

Make use of this new css to clean up the styling of the new overview map frame
a bit.
2017-09-25 16:01:27 +02:00
JosephMcc 97e1b0a9ec xed-view: Fix a crash when right clicking the left gutter (#166)
Two values were swapped in the g_settings_bind() function causing it to look
for a key that didn't exist.
2017-09-05 08:21:40 +01:00
JosephMcc 54a8c6c616 Don't present users with the hidden highlight languages (#167)
Fixes a crash when choosing 'Defaults' as the the highlight language.

Adapted from 0434e2f918

Closes https://github.com/linuxmint/xed/issues/160
2017-09-05 08:21:09 +01:00
githpr dbc8b3468b Use correct value to save the window state in gsettings. (#147)
* Use correct value to save the window state in gsettings.
This ensures that the window will be maximized if it was closed in this state.

* Use correct value in xed_window_configure_event function
2017-07-13 15:09:06 +02:00
Mike Krüger f004e93547 bugfix: ugly white border (gtk 3.20>) (#128) 2017-06-01 10:41:50 +01:00
leigh123linux 2a1372cac3 fix gtksourceprintcompositor.h includes warning (#117) 2017-05-23 13:33:29 +01:00
Clement Lefebvre 5a9cce674b Only use gtk_text_view_set_top_margin() with GTK 3.18+
It didn't exist before that version of GTK.
2017-05-05 12:27:38 +01:00
JosephMcc 4add4da97a Use GtkApplication inhibit API
This will help prevent users from inadvertently loosing data when logging out
with unsaved files.

Based on: 05918e07ce
2017-04-23 18:22:54 -07:00
leigh123linux e6d1f2e495 Fix FSF address 2017-04-10 08:24:10 +01:00
JosephMcc c6ca2a03da xed-utils: Add runtime checks for x11 specific functions
This should prevent some crashes under wayland.
2017-04-02 03:04:09 -07:00
JosephMcc 932cc3758e xed-commands-view: Clean up code style 2017-03-17 00:22:04 -07:00
JosephMcc c16232ee20 Add a new animated xed-paned
This replaces the GtkPaned we currently use and opens and closes the panes using
an animation.
2017-03-17 00:15:38 -07:00
JosephMcc 9c2d06761b Focus a tab when attempting to close it with unsaved changes
In most cases you want to see the contents of the tab before deciding what to
respond to the dialog that pops up. This is typical behavior in other editors
such as Sublime.

Closes https://github.com/linuxmint/xed/issues/95
2017-03-13 23:37:43 -07:00
JosephMcc 9b704374c7 Fix calling set_command_line_wait()
We were passing the wrong arguments

Based on 2e3b5aea0e

Fixes: https://github.com/linuxmint/xed/issues/90
2017-02-20 03:40:07 -08:00
JosephMcc e1a7919ebd Merge pull request #86 from JosephMcc/focus-1
Focus view when opening files from the filebrowser or documents panel
2017-02-15 16:05:44 -08:00
JosephMcc 5b34780cfe Merge pull request #83 from JosephMcc/docs-2
docs: Start cleaning up the docs
2017-02-15 16:05:02 -08:00
JosephMcc 5498344d82 Merge pull request #82 from JosephMcc/prefs-fix1
prefs-dialog: Fix a crash when removing style schemes
2017-02-15 16:03:25 -08:00
JosephMcc c253d9feaa Focus view when opening files from the filebrowser or documents panel
139db33451
2017-02-13 01:56:33 -08:00
JosephMcc 01bada3e7e Implement font zooming in the editor
Give controls for zoom in, zoom out, and reset zoom in the menu and via hotkey.
Also add a new placeholder in the view menu to allow positioning the menuitems
properly. Still want to keep the highlighting menu item at the  bottom.

This is implemented by using a builtin libpeas python plugin. Add support for
loading these plugins at startup. They cannot be enabled or disabled through the
UI. They can still be disabled in gsettings but will be automatically reloaded
when xed is restarted.

Closes: https://github.com/linuxmint/xed/issues/45
2017-02-12 01:24:02 -08:00
JosephMcc c8c3f4696f docs: Start cleaning up the docs
The code has chaged quite a bit. Start updating the docs to match and to quiet
some warnings during build.
2017-02-11 18:28:38 -08:00
JosephMcc e4745e72b7 prefs-dialog: Fix a crash when removing style schemes
This looks like another old leftover from the move to gtk3

Based on: 11fbe0fe14
Closes: https://github.com/linuxmint/xed/issues/25
2017-02-10 17:11:47 -08:00
JosephMcc 090ba0dc92 Makefile: Forgot to git add changes 2017-02-10 04:07:39 -08:00
JosephMcc c620e48c96 xed-view: Add some margin to the top and left of the text view 2017-02-10 00:18:17 -08:00
JosephMcc 3a83594498 Add a preference to allow using the dark variant of a theme if available 2017-02-09 13:58:08 -08:00
JosephMcc 69f71de2de xed-window: Fix getting the wrong window size when cloning a window
This was mostly caused by a missing set of parens resulting in the wrong logic
being used. Go ahead a clean things up just a bit while I'm here.
2017-02-09 10:30:52 -08:00
JosephMcc 399fc81a41 xed-app: Fix a typo 2017-02-09 04:04:03 -08:00
JosephMcc 17837139ac xed-app: Shutdown metadata-manager after GTK+ 2017-02-09 03:47:08 -08:00
JosephMcc 3567a8e4c9 xed-app: Handle also application::open 2017-02-09 03:34:02 -08:00
JosephMcc 3b9d03837b Don't use global vars for command line parsing 2017-02-09 03:30:01 -08:00
JosephMcc 42f78a6980 Set textdomain as soon as possible 2017-02-09 03:04:04 -08:00
JosephMcc e3e316ea8a Start using GResource
This converts our existing ui files for the main programs to resources and adds
a template for xed-view-frame
2017-02-09 02:37:10 -08:00
JosephMcc 3cfd0f3d5f Remove the dialog utility library 2017-02-06 17:56:51 -08:00
JosephMcc bf69e64718 Don't use deprecated gtk_widget_set margin_left/right 2017-02-05 03:54:09 -08:00
JosephMcc ab8bf81cc3 xed-progress-info-bar: Properly expand the progress bar 2017-02-05 03:20:35 -08:00
JosephMcc 3496c88947 info-bar: Don't use icons in buttons 2017-02-05 02:20:27 -08:00
JosephMcc 30e996eaea info-bars: Don't use deprecated GtkStock 2017-02-05 02:10:26 -08:00
JosephMcc 9a4f7e55fe info-bars: Don't use deprecated gtk_misc 2017-02-05 02:04:14 -08:00
JosephMcc 42bb35d41f message-area: Rename message area to info bar
Lets call it what it is
2017-02-05 01:41:46 -08:00
JosephMcc 2aa009cb76 Port xed to dbus and GtkApplication
This further improves on the port to GtkSource API's and cleans up a ton of
legacy code in xed based on upstream changes in Gedit.
2017-02-04 22:17:58 -08:00
JosephMcc f05ddd7b63 Port to GtkSource* API
There are still bugs but this gets it started
2017-01-30 14:52:12 -08:00
JosephMcc 6888501019 xed-document: Do some cleanup
This is a bit more work in preparation for porting to more of the GtkSource*
API's
2017-01-29 12:59:13 -08:00
JosephMcc 5071bfe065 Add _xed_document_needs_saving
Based on acbf4d4f0c
2017-01-29 03:36:27 -08:00
JosephMcc 511fc3dfec Port to the GtkSourceView search functionality
This also gives us support for regex search
2017-01-28 19:12:36 -08:00
JosephMcc 0a9588ef63 Clean up our GSettings use a bit more 2017-01-21 18:44:15 -08:00
JosephMcc f546598d83 Remove xed_utils_location_has_file_scheme 2017-01-21 14:44:55 -08:00
JosephMcc ed03c490d1 xed-document: Rework externally modified/deleted check
7c5e872ad6
2017-01-21 14:08:11 -08:00
JosephMcc 6b8c07d90e Kill xed-language-manager and use gtksourcelanguagemanager directly 2017-01-21 13:51:08 -08:00
JosephMcc 4a6f1d02b8 xed-document: Fix a couple of possible memory leaks 2017-01-21 01:36:15 -08:00
JosephMcc 4f277063f0 Remove the xed style scheme manager instance
f5d46ef3cc
2017-01-21 01:31:05 -08:00
JosephMcc 1d6f119b04 Pull some upstream changes from Gedit in prep for using more of the
GtkSource* backend
2017-01-20 12:24:07 -08:00
JosephMcc 176dac188b xed-document-output-stream: Factor out validate_and_insert method 2017-01-19 03:45:06 -08:00
JosephMcc e3e9566570 Merge smart converter in the document output stream
Based on 85279adad6 (diff-c243a4d5a7789c35057282ee780df3d5)
2017-01-19 03:29:38 -08:00
JosephMcc 2fb3813793 xed-document-output-stream: Clean up code style 2017-01-19 01:48:54 -08:00
JosephMcc 28ef771d15 xed-document-output-stream: Clean up code style 2017-01-19 01:38:13 -08:00
JosephMcc ca08220560 xed-preferences-dialog: Fix a setting having the wrong sensitiviy
The font chooser sensitivity was backwards
2017-01-19 00:13:56 -08:00
JosephMcc 5d62c0c452 Redesign the goto line popup dialog 2017-01-19 00:00:59 -08:00
JosephMcc 490303557a Revamp our handling of settings
The current handling of settings is a very roundabout leftover from the days of
gconf. Simplify and handle the setting more directly. At the same time move
handling of saving the window state to gsettings instead of saving it to a
config file.
2017-01-16 15:41:07 -08:00
JosephMcc f21c6e9361 Port to the use of GFile instead of URIs and merge gio document loader and saver
into document loader and saver
2017-01-14 11:48:19 -08:00
JosephMcc 6a997b1b79 xed-searchbar.c/h: Clean up styling a bit 2017-01-13 03:49:38 -08:00
JosephMcc 5267b52c70 xed-searchbar: Add a couple missing casts and remove an unused variable 2017-01-13 03:33:53 -08:00
JosephMcc d38b1cd953 xed-statusbar: Fix a missing cast 2017-01-13 03:24:27 -08:00
JosephMcc c5d8a4378a xed-statusbar.c/h: Clean up code styling 2017-01-13 03:21:50 -08:00
JosephMcc 9dc61e0df5 xed-file-dialog.c/h: Clean up code styling 2017-01-13 03:10:01 -08:00
JosephMcc 66800ca9a3 xed-tab-label.c/h: Clean up code styling 2017-01-13 02:53:46 -08:00
JosephMcc 422dc034f4 Clean up uses of deprecated GtkMisc 2017-01-13 02:44:53 -08:00
JosephMcc b9e5097250 Add new (App/Window/View)Activatable interfaces for plugins
Currently only the modelines and filebrowser plugins are updated to these new
interfaces
2017-01-09 11:57:48 -08:00
JosephMcc d45e07b7a1 Install introspection data and lib into a private dir 2017-01-08 04:00:44 -08:00
JosephMcc 32fd96e327 xed-progress-message-area: Clean up more uses of GtkStock 2017-01-07 12:58:32 -08:00
JosephMcc a1671a6227 xed-progress-message-area.c: Clean up code style 2017-01-07 04:13:12 -08:00
JosephMcc 01ace1d02f xed-print-preview.c: Don't you deprecated gtk_layout_get_*adjustment 2017-01-07 03:24:46 -08:00
JosephMcc 5a9258087a xed-print-preview.c: Restyle the toolbar
Make it look nicer and at the same time clean up some more uses of GtkStock
2017-01-07 02:52:00 -08:00