Enrico Tröger
ba97eb158c
Use g_file_set_contents() to write files to disk in utils_write_file() for better error checking and to avoid corruption of config files when there is no more free disk space.
...
This is not used for saving documents (part of Debian bug #503391 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3507 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-24 19:39:10 +00:00
Enrico Tröger
f0a1081c38
Disable GIO based file monitoring for now since it doesn't work yet as stable as it should. Define USE_GIO_FILEMON to use.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3506 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-24 19:38:53 +00:00
Enrico Tröger
423550f00f
Use g_timeout_add_seconds() instead of g_timeout_add().
...
Add missing NULL check in monitor_file_changed_cb().
Reset the file status when saving a file failed.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3505 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-24 19:38:31 +00:00
Enrico Tröger
f7978158a5
Increase minimum required GTK version to 2.8.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3504 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-22 20:33:21 +00:00
Enrico Tröger
c980b2e4b1
Minor cleanup in the socket code.
...
When files are opened remotely, always use gtk_window_present() to bring the main window to front or whatever the window manager decides to do (part of #2276179 ).
On Windows, we send a pointer to the main window to the remote instance which then brings the window to the front (grab focus). This should work better than the previous implementation and should avoid the blinking tasklist item.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3502 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-22 20:31:35 +00:00
Nick Treleaven
15f4b8f136
Reorder replace dialog 'replace all' buttons.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3501 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-22 17:22:05 +00:00
Nick Treleaven
be8b2eaef3
Refactor with create_replace_dialog().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3500 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-22 17:19:15 +00:00
Enrico Tröger
836fa1dca0
Add dialogs_show_input_numeric() to the plugins API.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3497 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-21 22:49:47 +00:00
Enrico Tröger
0582c61824
Replace remaining occurrences of '__func__' with 'G_STRFUNC'.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3496 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-21 22:49:21 +00:00
Enrico Tröger
46e200bb39
Use an unique "monitor" prefix for file monitoring functions.
...
Don't check disk status for files which are marked to be ignored.
Reset file disk status when manually reloading a file.
Various improvements to the GIO-based file disk checking code.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3495 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-21 15:50:48 +00:00
Enrico Tröger
866cc1e934
Reuse the locale-encoded filename in document_save_file().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3494 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-21 15:50:12 +00:00
Nick Treleaven
1256ab235f
Fix focusing the editor after clicking on a notebook tab.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3492 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-20 16:46:15 +00:00
Nick Treleaven
4dd4108b44
Disable documents popup menu items when invalid.
...
Make close, save menu items work for all children when a parent row
is selected.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3491 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-20 16:34:11 +00:00
Enrico Tröger
e36a60c4f0
Skip disk changes detection for all remote files.
...
Don't try to detect a remote file when running on old GLib versions without GIO (< 2.16).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3490 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-19 19:30:18 +00:00
Nick Treleaven
f62363e6eb
Use tree for Documents sidebar, grouped by path.
...
Remove Documents show full path pref.
Use enum for documents tree store column ids.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3488 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-19 13:12:45 +00:00
Frank Lanitz
dd2ae2e7b9
Added a missing g_free().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3487 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-18 23:05:54 +00:00
Enrico Tröger
ebb4363ef1
Disable the Build menu item in the Build toolbar button explicitly for LaTeX files.
...
Update the tooltip for the Build toolbar button according to the last used action.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3485 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-18 18:20:23 +00:00
Enrico Tröger
de3d3b42fb
Add document_save_file_as and document_rename_file to the plugin API.
...
If GIO is available, use GFileMonitor to watch for file disk changes and indicate them immediately using an orange tab label colour.
Break plugin ABI for this and the last commits.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3484 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-18 18:19:58 +00:00
Enrico Tröger
8c5c5bb27c
Reorder some keybindings.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3483 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-18 18:19:09 +00:00
Enrico Tröger
60e751eaf2
Remove filetype O-Matrix (probably unused for years).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3482 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-18 18:18:38 +00:00
Enrico Tröger
a47b682f6f
Remove GTK tags (data/global.tags).
...
Add C (C99) tags (data/c99.tags) and a script to generate them).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3480 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-17 18:44:38 +00:00
Enrico Tröger
204b62d000
Add 'Build' toolbar button with a submenu for Make actions.
...
Make use of ui_image_menu_item_new() for some menu items.
Remove tooltips from menu items.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3479 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-17 17:59:20 +00:00
Enrico Tröger
525678b4eb
Update keywords lists.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3478 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-17 13:11:06 +00:00
Enrico Tröger
27205da2c6
Properly fix parsing of compiler error messages.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3477 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-17 13:10:46 +00:00
Enrico Tröger
c8690d4486
Major improvements for the Windows installer:
...
Register ".geany" as Geany Project File extension.
Show a checkbox to open the Release Notes at the end of the installation.
When the installer is executed without admin privileges, install Geany only for the user. Otherwise, install Geany for All Users.
Fix problems with automatic uninstallation at startup of the installation when the installation directory were different.
Install GTK translation files only if installation of translation files were requested (saves about 22 MB otherwise).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3475 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-17 13:10:13 +00:00
Nick Treleaven
b98069855b
Prevent type-punned pointer warnings with gcc 4.1.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3473 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-16 20:34:34 +00:00
Enrico Tröger
ebd3776cde
Add documentation for some missing options.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3472 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-15 19:51:18 +00:00
Enrico Tröger
ffebb43c8e
Remove tooltips from menu items.
...
Don't use full stops in tooltips for short sentences.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3470 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-15 19:15:41 +00:00
Enrico Tröger
de30d056c7
Rename command line option --debug to --verbose.
...
Change short form of --version from -v to -V.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3469 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-15 18:20:19 +00:00
Enrico Tröger
9d627214f1
Add GUI pref to invert all colours for syntax highlighting.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3468 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-14 19:19:08 +00:00
Enrico Tröger
06e3783c1f
Fix Windows build: don't use GIO. Link against GIO anyways just to be safe with GTK 2.14.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3467 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-14 18:38:31 +00:00
Enrico Tröger
312841a794
Strip the compiler error messages to fix possibly broken message parsing.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3466 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-14 16:45:24 +00:00
Enrico Tröger
e65d0f2362
Add a format specification in global tags files and implement an additional fallback if the specification is missing.
...
Adjust code and scripts which generate global tags files to add the new format specification.
Update global tags files.
Add documentation for the two supported global tags files formats.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3465 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-14 16:08:00 +00:00
Nick Treleaven
ddeb979e6f
Add default build commands (other sections are commented out and
...
untested).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3464 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-12 17:20:43 +00:00
Enrico Tröger
4a6abdaa0e
Fix build without GIO again (sorry).
...
Remove trailing slashes in Makefile.am's (patch by Daniel Richard G., thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3463 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-12 00:33:29 +00:00
Enrico Tröger
71f1dac2db
Don't fold toplevel PHP script tags (part of #2003912 ).
...
Replace remaining occurences of sptr_t by uptr_t in the third argument of SSM() calls.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3462 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-11 21:24:09 +00:00
Enrico Tröger
bd2d677d84
Support multiple %cursor% wildcards in Snippets. To switch between %cursor% wildcards, use the new keybinding 'Move cursor in snippet' (patch by Thomas Martitz, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3461 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-11 21:05:03 +00:00
Enrico Tröger
c636728975
Fix several compiler warnings and build errors (patch by Daniel Richard G., thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3460 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-11 18:29:39 +00:00
Enrico Tröger
ceb7edc8f1
Fix build with GTK 2.12 by adding GIO compile and linker flags ( closes #2498580 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3459 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-11 17:40:40 +00:00
Enrico Tröger
153544a80e
Add utils_is_remote_path().
...
Add private field 'is_remote' to GeanyDocument to indicate whether an opened file is locally accessed or via gvfs-fuse.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3457 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-09 18:22:07 +00:00
Enrico Tröger
787a680290
Add checks for GIO (GLib >= 2.16) support.
...
Allow to specify files on the command line and from remote instances to be URIs (local and with GIO also remote URIs).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3454 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-09 18:21:12 +00:00
Nick Treleaven
1b2af6a816
Fix remaining spin buttons in the prefs dialog ( closes #2492317 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3453 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-08 17:27:57 +00:00
Nick Treleaven
555c06727c
Fix using prefs dialog editor & files tab spin button values when
...
they've just been edited and Alt-O is used to close the dialog
without moving the focus.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3452 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-08 17:14:18 +00:00
Enrico Tröger
ffaa900b8b
Update keyword list for Tcl/Tk 8.5.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3451 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-06 17:13:45 +00:00
Enrico Tröger
8362d6be15
Don't remove leading whitespace from compiler output for compilers like gfortran which use space for indentation in error messages.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3450 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-06 15:16:55 +00:00
Enrico Tröger
a097d3dbb7
Fix some bugs in parsing FreeBasic code ( #2489605 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3449 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-06 14:53:31 +00:00
Enrico Tröger
0f0dbac7cd
Don't write the default filetype to the config if it isn't set.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3447 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-04 18:31:22 +00:00
Enrico Tröger
39a6eb455e
Update copyright information.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3446 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-04 18:30:42 +00:00
Enrico Tröger
42578efd22
Add *.desktop as extension for the Conf filetype.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3445 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-04 18:24:50 +00:00
Enrico Tröger
d007adc71f
Add filetype Ada ( closes #1811306 and #1765830 , patch by Philipp Gildein, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3444 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-04 16:00:50 +00:00