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