Commit Graph

158 Commits

Author SHA1 Message Date
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
JosephMcc 663511c1d1 xed-print-preview.c: Clean up code styling 2017-01-07 01:14:21 -08:00
JosephMcc c2eab264a3 xed-window: Use a better icon for the documents panel tab 2017-01-02 16:14:42 -08:00
JosephMcc d77659fdcd xed-tab: Clean up some uses of GtkStock 2017-01-01 21:41:09 -08:00
JosephMcc baea0e93b9 xed-tab.c: Clean up code style 2017-01-01 18:20:19 -08:00
JosephMcc b082e73a61 xed-status-combo-box.c: Clean up some code styling 2017-01-01 16:12:36 -08:00
JosephMcc 8ebb54b824 xed-status-combo-box: Don't use deprecated GtkArrow 2017-01-01 16:02:46 -08:00
JosephMcc 412ce3e228 xed-panel.c: Add a couple of missing casts 2017-01-01 15:45:02 -08:00
JosephMcc ded60fbe20 xed-panel: Clean up more uses of GtkStock
Also update a couple of the plugins that call this functionality
2017-01-01 15:41:06 -08:00
JosephMcc 8ab7e902bb xed-utils: Remove a couple functions
We want to move away from use of deprecated GtkStock so remove a couple of
functions that rely on it. They aren't being used anywhere anyway.
2017-01-01 13:57:28 -08:00
JosephMcc ea1f2055e7 xed-utils.h: Clean up code styling 2017-01-01 13:53:19 -08:00
JosephMcc 4ef02d4837 xed-utils: Clean up code styling 2017-01-01 13:31:02 -08:00
JosephMcc 55317e21b0 xed-window.c: Fix a few missing casts 2017-01-01 12:25:44 -08:00
JosephMcc d79bc79dbc notebooks: Don't show tabs when the notebook only has one page 2017-01-01 12:03:45 -08:00
JosephMcc 6e7586c654 xed-prefs-manager-app.c: Clean up an unused variable 2016-12-31 21:21:49 -08:00
JosephMcc 63f4658807 xed-pref-manager-app.c: Clean up code style 2016-12-31 21:21:06 -08:00
JosephMcc d80329db5c xed-notebook.c: Clean up the code formatting 2016-12-31 16:33:21 -08:00
JosephMcc 33f6b71eda xed-prefs-manager-app: Remove some leftover logging 2016-12-31 15:00:49 -08:00
JosephMcc 50c216b17b Allow scrolling on notebook tabs to change the active page
This is enabled by default but has a setting in the preferences so it can be
disabled.
2016-12-31 14:18:31 -08:00
JosephMcc 95a302a46f preferences-dialog: Clean up uses of GtkStock 2016-12-30 12:21:47 -08:00
JosephMcc 05738f44bb preferences-dialog: Clean up code styling 2016-12-30 11:54:48 -08:00
JosephMcc f3791ef8d2 Add view menu entry for word wrap
Adds an entry to the "View" menu that allows temporarily overriding the word
wrap settings in the preferences.
2016-12-30 03:17:05 -08:00
JosephMcc 94188504ab xed-statusbar: Clean up the styling a bit
Make sure the statusbar expands the full width of the window. Do a better job
of lining up buttons in the search and status bar as well.
2016-12-28 12:26:17 -08:00
JosephMcc 9c9e564ec1 Add a few style classes
This will allow themes a bit more control over the styling. Since you can no
longer select objects by class name in gtk version > 3.20 there is no other
easy way to theme these elements.

Added classes for "xed-window", "xed-searchbar", "xed-statusbar", and
"xed-panel" with additional classes of "side" and "bottom" for the panels
2016-12-28 11:44:35 -08:00
JosephMcc 5058c69288 xed-panel: Move the notebook tabs to the top 2016-12-27 11:44:05 -08:00
JosephMcc 4635766fc7 xed-panel: Simplify panel building a bit
Now that the panel headers are removed, we no longer need separate functions for
creating panels of different orientations
2016-12-27 01:30:36 -08:00
JosephMcc 6bc12a2be0 xed-panel: Remove the header and close button
Now that we have the buttons on the statusbar for opening and closing the side
and bottom panels, we don't really need these anymore
2016-12-27 01:11:19 -08:00
JosephMcc 5d258f1e67 xed-window: Stop using deprecated (v/h)box 2016-12-27 00:17:15 -08:00
JosephMcc c78bf46d38 Add buttons to the statusbar to show/hide the panels 2016-12-26 23:43:42 -08:00
JosephMcc 26f8139317 xed-panel: Clean up the layout of the panels
Make sure the bottom panel lays out properly when we actually have a plugin that
lives there
2016-12-26 19:32:38 -08:00
JosephMcc f314622cf0 Remove old plugin system and docs for it
Adapted from:
3860e7b99f (diff-c949f93d03f44a4217d7a138f9e2e54a)
2016-12-26 18:49:12 -08:00
JosephMcc b52cc3f037 Port plugin system to libpeas
Adapted from:
52fd78ddfc
2016-12-26 12:53:23 -08:00
JosephMcc 29f0acc0d6 Drop some leftover 2.xx comments from gnome/pluma 2016-12-26 11:53:22 -08:00
JosephMcc ae4b648a79 xed-window: Remove an unused function 2016-12-26 11:49:28 -08:00
JosephMcc 8cb1a6dad8 Remove a couple of invalid annotations 2016-12-26 11:44:21 -08:00
JosephMcc 7a6db1f8c5 Fix some introspection warnings
Adapted from:
b9a3360ee8
2016-12-26 11:41:29 -08:00
JosephMcc c6f5fd5e1d build GObject introspection data
Adapted from:
a4dcd9177a
0488ffe5d2
2016-12-26 10:56:42 -08:00
JosephMcc cab79801ca plugins: Drop support for old style python plugins
All the the old python plugins have already been removed. Remove a bunch of the
other related cruft since we want to port the plugin system to libpeas

Taken from 65371f53db (diff-2bbd410468516599f21e84fecb500348)
2016-12-25 14:24:00 -08:00
JosephMcc 6893642b16 xed-panel: Clean up code formatting 2016-12-25 12:42:36 -08:00
JosephMcc d091965175 xed-io-error-message-area: Fix up some deprecations 2016-12-25 12:42:36 -08:00
JosephMcc a5c62d2380 xed-io-error-message-area: Clean up code styling 2016-12-25 12:42:36 -08:00
JosephMcc e9834c0883 xed-message-bus: Clean up an unused variables 2016-12-25 12:42:36 -08:00
JosephMcc 2bf076e7c5 xed-message-bus: Clean up code styling 2016-12-25 12:42:36 -08:00
JosephMcc 909ea55a7c xed-documents-panel: Remove an unused variable 2016-12-25 12:42:36 -08:00
JosephMcc 76ce469bfa xed-documents-panel: Cleanup code styling 2016-12-25 12:42:36 -08:00
JosephMcc 21f524a7b3 xed-document: Remove use of deprecated gdk_color_parse 2016-12-25 12:42:36 -08:00
JosephMcc 3aa6f847d9 xed-document: Clean up code style 2016-12-25 12:42:36 -08:00
JosephMcc ee841c1015 xed-commands-search: Fix some missing casts 2016-12-25 12:42:36 -08:00
JosephMcc 2a93bcbb6d xed-app: Remove an unused variable 2016-12-25 12:42:36 -08:00
JosephMcc fb84d4bfc7 xed-app: Clean up code styling 2016-12-25 12:42:36 -08:00
JosephMcc 7417c54a94 xed-commands-file: Clean up deprecations 2016-12-25 12:42:36 -08:00
JosephMcc c50299ec32 xed-commands-file: Clean up code styling 2016-12-25 12:42:36 -08:00
JosephMcc 71306fa224 xed-encodings-combo-box: Clean up code styling 2016-12-25 12:42:36 -08:00
JosephMcc f1c1e6c689 xed-encodings-dialog: Clean up some deprecations 2016-12-25 12:42:36 -08:00
JosephMcc c801604a2c xed-encodings-dialog: Clean up code styling 2016-12-25 12:42:36 -08:00
JosephMcc 41162911b2 close-confirmation-dialog: Clean up some deprecations
We're stuck with a couple uses of gtk_misc_* for now until we can move to a
newer minimum version of gtk3.
2016-12-25 12:42:36 -08:00
JosephMcc 2ab142b094 close-confirmation-dialog: Clean up code styling 2016-12-25 12:42:36 -08:00
Clement Lefebvre 708d79dbf8 Search: Don't jump to the next result when toggling search options 2016-12-16 21:35:41 +00:00
Clement Lefebvre d890aaf565 Search: Perform a search when case-sensitive or entire-word buttons are clicked 2016-12-05 11:25:59 +00:00
Clement Lefebvre 615ae47272 Search: Fix search jumping to next result while typing 2016-12-05 11:17:24 +00:00
JosephMcc 0f1de23d7f searchbar: Make sure we clear highlighting when the last character is removed
We need to call do_find() even if we just backspaced the last character out of
the search entry. This ensures all highlighting gets removed from the document.
2016-11-28 15:07:57 -08:00
JosephMcc aa31c09fc7 searchbar: Add a close button
Currently there is no clear way to close the searchbar. Add a simple small close
button to make this easier.
2016-11-28 14:23:27 -08:00
Clement Lefebvre bc250a48fd l10n: Improve some of the new msgids 2016-11-02 18:14:20 +00:00
Clement Lefebvre 4e1a63347a Merge pull request #43 from JosephMcc/notebook-button
xed-close-button: Convert to using a symbolic icon
2016-10-07 11:22:32 +01:00
Clement Lefebvre cfd631779e Merge pull request #42 from JosephMcc/fullscreen-tabs
ui: Don't hide the main notebook tabs in fullscreen
2016-10-07 11:22:22 +01:00
JosephMcc 1e9f14ebee xed-close-button: Convert to using a symbolic icon
Also remove some use of deprecated GtkRcStyle
2016-10-06 11:39:05 -07:00
JosephMcc 14c5bc1a99 ui: Don't hide the main notebook tabs in fullscreen
Not sure why this was being done but keep the open tabs visible when swithcing
to fullscreen so you can still access all open tabs
2016-10-06 11:20:12 -07:00
JosephMcc 2ecb36178a prefs: Remove now unused toolbar style prefs
We no longer set a toolbar button style so remove some of the left over code for
handling it.
2016-10-06 10:33:53 -07:00
JosephMcc 46c8d8adc8 ui: Convert the remaining actions to use symbolic icons
With the toolbar icons converted to symbolic icons we now have a mix of symbolic
and non-symbolic icons in the menu since they share the same GtkAction's.
Convert the remaining actions along with a couple that are placed in the menu
by plugins to use symbolic style icons.
2016-10-05 12:20:30 -07:00
JosephMcc 94dae95b95 toolbar: Revamp the main toolbar style
Get rid of the text and switch all icons to slightly smaller symoblic icons.
This will allow it to behave much better with dark gtk themes. Replace the
recent documents button with a button for file open. Changing the style of
the buttons on the main toolbar also effects the fullscreen toolbar so
update this as well to use a matching layout.
2016-10-04 11:32:30 -07:00
Clement Lefebvre 26d0ac85a0 Reformated code to conform to Mint coding style
As discussed within the team.
2016-09-21 13:44:19 +01:00
Clement Lefebvre f4236351ae Give Xed a Sublime-like searchbar
The search dialog is replaced with a searchbar similar to the one used in Sublime.

The following features are implicit and therefore removed:
  - "incremental search"
  - "remove highlights"
  - "parse \n characters"

Code style is applied to impacted files (should have been done in a separate commit but it was being discussed during WIP and the new committed code followed neither the new style nor the old).
2016-09-20 16:32:54 +01:00
Clement Lefebvre c8f0c14add Toolbar: Don't emphasize toolbar items (save, open, undo) 2016-08-19 10:44:43 +02:00
Clement Lefebvre c8ef96a94d When running as root, add an infobar to warn about Elevated Privileges 2016-08-18 20:09:35 +01:00
Clement Lefebvre 6cb2e56365 Revert "Fixed some UI elements not localized"
This reverts commit 2dbb1bea6b.
2016-08-18 14:42:01 +02:00
Clement Lefebvre 2dbb1bea6b Fixed some UI elements not localized 2016-08-17 17:28:36 +02:00
Michael Webster 78080f80bb xed-notebook.c: check vertical mouse position when determining
whether a tab is being manipulated.  We were just checking
horizontal position, which meant that depending on where you start
a drag-and-drop, it might think you're trying to drag a tab instead,
causing undesirable behavior.
2016-06-22 18:08:19 -04:00
Clement Lefebvre 6f4eefe1e4 Use Ctrl+Y for Redo 2016-03-04 16:52:26 +00:00
Clement Lefebvre 5716a01447 Merge pull request #13 from JosephMcc/notebook-shadow
notebooks: Remove the extra frame from the main and documents panel s…
2016-03-03 15:21:30 +00:00