Commit Graph

158 Commits

Author SHA1 Message Date
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