Commit Graph

157 Commits

Author SHA1 Message Date
Leigh Scott a549184217 add open uri plugin (#317) 2019-11-22 11:47:56 +00:00
Pavel Shlyak eda7a9a23c Cleanup (#321)
The left side of the expression was always true
2019-11-14 17:56:44 +01:00
Stephen Collins 116bfc2ac1 Remove references to deprecated GTK_STOCK_* (#298) 2019-05-13 00:32:34 -07:00
Stephen Collins 1820d0db69 Switch deprecated gtk_icon_info_free to g_object_unref (#301) 2019-05-13 00:23:40 -07:00
Stephen Collins 612f36cea9 Replace deprecated gdk_cursor_new with gdk_cursor_new_for_display (#295)
Also fix a potential memory leak/segfault in the filebrowser plugin.
2019-05-08 02:17:45 -07: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
Stephen Collins fb0002bdcd Filebrowser: Kill the click policy property with fire (#293)
This is left over code from the gedit days, which we don't use, and
don't use. This also has the added benifit of removing at least 1
deprecation warning.
2019-05-05 10:20:18 +01:00
chingyinwan123 39e08bd3b8 Fix warnings when building xed 2.0.1 (#264)
* Remove unused variables

Fixes the following warnings when building xed:

../plugins/filebrowser/xed-file-browser-plugin.c: In function ‘xed_file_browser_plugin_activate’:
../plugins/filebrowser/xed-file-browser-plugin.c:532:22: warning: unused variable ‘schema’ [-Wunused-variable]
     GSettingsSchema *schema;
                      ^~~~~~
../plugins/filebrowser/xed-file-browser-plugin.c:531:28: warning: unused variable ‘schema_source’ [-Wunused-variable]
     GSettingsSchemaSource *schema_source;
                            ^~~~~~~~~~~~~

* Remove an unused variable

Fixes the following warning when building xed:

../plugins/sort/xed-sort-plugin.c: In function ‘buffer_sort_lines’:
../plugins/sort/xed-sort-plugin.c:168:12: warning: variable ‘last_line’ set but not used [-Wunused-but-set-variable]
     gchar *last_line = NULL;
            ^~~~~~~~~

* Remove an unused variable

Fixes the following warning when building xed:

../plugins/wordcompletion/xed-wordcompletion-plugin.c: In function ‘xed_wordcompletion_view_deactivate’:
../plugins/wordcompletion/xed-wordcompletion-plugin.c:306:34: warning: unused variable ‘provider’ [-Wunused-variable]
     GtkSourceCompletionProvider *provider;
                                  ^~~~~~~~

* Remove an unused variable

Fixes the following warning when building xed:

../plugins/spell/xed-spell-plugin.c: In function ‘update_ui’:
../plugins/spell/xed-spell-plugin.c:495:24: warning: unused variable ‘buffer’ [-Wunused-variable]
         GtkTextBuffer *buffer;
                        ^~~~~~
2018-12-11 11:38:12 +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
Clement Lefebvre fdd6c18a51 l10n: Update files 2018-05-22 12:53:27 +01:00
Clement Lefebvre 0409e91288 Wordcompletion: Fix a few mgsids 2018-03-16 11:10:22 +00:00
Mickael Albertus 8a32b92c33 Creation of plugin Word completion (#199)
* Creation of plugin

* Correction of shortcut

* Update translations+fix code

* Add Makefile.in and tab/space fix

* Add makefile.am remove makefile.in
2018-03-16 10:50:39 +00:00
Clement Lefebvre 87cd264acf
Merge pull request #196 from JosephMcc/1.8-dev1
1.8 dev1
2018-03-09 15:11:24 +00:00
Nic cc493b9b9b Add C tags to the taglist plugin (#188)
Added tags for:
 - Including stdio.h
 - `include` statements
 - The `main` function
 - Comments and multi-line comments
 - `printf` statements
2018-02-19 11:52:10 +00:00
JosephMcc a86c482308 spell-plugin: Fix a link to the help file 2018-02-14 10:37:36 -08:00
JosephMcc bd32e81f13 spell-plugin: Port to gspell 2018-02-10 12:22:37 -08:00
JosephMcc 0a25600883 spell-plugin: Update for removal of some deprecated functionality
enchant_dict_add_to_pwl () was removed from libenchant. Use it's replacement,
enchant_dict_add () instead and bump our required version of libenchant.

Closes https://github.com/linuxmint/xed/issues/198
2018-02-05 01:03:13 -08:00
JosephMcc a5af28a95d xed-spell-checker.c: Clean up the code formatting 2018-02-05 01:03:13 -08:00
Leigh Scott 4c813f2c7f Fix Py*DeprecationWarning (#202) 2018-02-03 10:26:28 +00:00
Clement Lefebvre ab581c166b l10n: Fix localization in TextSize plugin 2017-11-15 13:08:58 +00:00
Gavin D. Howard 1f85332906 Make the trailsave plugin also strip trailing lines (#135)
Make the trailsave plugin also strip trailing lines
2017-08-30 11:17:08 +01:00
JosephMcc 9376dc72da text zoom: Put a limit on the min and max zoom (#137)
Text zoom: Put a limit on the min and max zoom
2017-08-30 11:14:43 +01:00
JosephMcc c306c1b527 filebrowser: Change an icon name (#132)
Change the icon name for the filebrowser from system-file-manager to folder.
This prevents you from getting a weird unexpected icon under some themes
like Mint-Y
2017-06-02 11:05:37 +01:00
JosephMcc 96a50bc803 time-plugin: Use GDateTime
121f02a3ea
2017-04-01 12:06:22 -07:00
Clement Lefebvre 99a730fa9c Merge pull request #89 from JosephMcc/filebrowser-3
Filebrowser 3
2017-02-22 10:40:17 +00:00
JosephMcc 57a3daf2d5 Allow building with --disable-spell
It helps if we actually respect our conditionals.
2017-02-20 04:13:09 -08:00
JosephMcc ebb32ff114 filebrowser: Set the combobox insensitive when the bookmarks are showing
The combo doesn't show anything useful when treeview is showing the bookmarks
so just set it insensitive.
2017-02-15 19:51:29 -08:00
JosephMcc 245991c22c filebrowser: Make the "Open terminal here" command work again
Add a gsettings key to set the terminal used for the command in the menu. By
default this is set to 'x-terminal-emulator' but it can be easily overridden
by packagers or changed by users who choose to.
2017-02-15 19:32:40 -08:00
JosephMcc 6801233bd8 filebrowser: Do not parse .hidden in the file browser
f0454abbec
2017-02-15 18:25:54 -08:00
JosephMcc 5c08882ba6 filebrowser: Don't use deprecated GtkStock 2017-02-15 18:25:54 -08:00
JosephMcc ee1448d73f filebrowser: Activate selected item when search is complete
0701c9c463
2017-02-15 18:25:54 -08:00
JosephMcc bf1133231b filebrowser: Redesign the toolbar in filebrowser 2017-02-15 18:25:54 -08:00
JosephMcc 87238194c3 filebrowser: don't use deprecated GIOScheduler
2d1eb80d3d
2017-02-15 18:25:54 -08:00
JosephMcc 9637840886 filebrowser: use Untitled File/Folder for new file/folders
e7e404a32a
2017-02-15 18:25:54 -08:00
JosephMcc 80509d36a3 filebrowser: "Rename" menu entry should have an ellipsis 2017-02-15 18:25:54 -08:00
JosephMcc 14cc619751 xed-file-browser-utils.c: Clean up code style 2017-02-15 18:25:54 -08:00
JosephMcc 44f60af7a7 filebrowser: Support new location of gtk bookmarks file
Also remove an old bit of code that was left over when some of the ifdef's for
windows and mac specific code was removed.

54d69eb93c
2017-02-15 18:25:54 -08:00
JosephMcc 1e2e106d70 filebrowser: Remove the back and forward toolbar dropdowns 2017-02-15 18:25:54 -08:00
JosephMcc c27e781132 filebrowser: Fix crash on open_terminal action
0836fd05ac
2017-02-15 18:25:54 -08:00
JosephMcc fa31c65c2f filebrowser: Don't leak GFiles
e2f792359a
2017-02-15 18:25:54 -08:00
JosephMcc fe9e6ac91c file-browser-messages: Clean up formatting 2017-02-15 18:25:54 -08:00
JosephMcc 372399891d filebrowser: Unref the enumerator in the filebrowser plugin
8bb1b9555f
2017-02-15 18:25:54 -08:00
JosephMcc 4c45b083e1 Do not leak file info for . and .. dirs
fa5fa82ce0
2017-02-15 18:25:54 -08:00
JosephMcc f20b3bdcf5 filebrowser-view: Removed the unused "busy" cursor 2017-02-15 18:25:54 -08:00
JosephMcc 61bca3cc0f xed-file-browser-widget: Clean up code styling 2017-02-15 18:25:54 -08:00
JosephMcc a1e94f2777 Use slice allocator instead of g_new when appropriate
a0b15be6fd
2017-02-15 18:25:54 -08:00
JosephMcc ca9321f599 Fix g_free which should be g_object_unref in file browser
331af4bdda
2017-02-15 18:25:54 -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 c253d9feaa Focus view when opening files from the filebrowser or documents panel
139db33451
2017-02-13 01:56:33 -08:00
JosephMcc ad8fa295f2 Sort: Turn sort into a simpler and undoable action
Convert to a builtin plugin and remove the use of the dialog. Sort can now be
triggered from the edit menu or by the F10 hot key.
2017-02-12 15:42:32 -08:00