Colomban Wendling
18388077e6
Add support for filetype-specific indentation settings
...
Closes #3339420 and #3390435 .
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5902 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-25 20:14:17 +00:00
Colomban Wendling
4685112df3
Support for non-ASCII characters in word completion
...
Closes #3386129 .
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5901 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-25 20:12:56 +00:00
Colomban Wendling
fc6dc88772
Fix search for the current word if it isn't composed of only GEANY_WORDCHARS
...
Use Scintilla's definition of a "word" when fetching the current word
to perform a search. This is needed when we perform a whole-word
search for Scintilla to find the matches.
Closes #3386129 .
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5895 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-21 17:15:19 +00:00
Colomban Wendling
a63a3a3570
Fix tags for one-letter Haskell symbols
...
The tokens were not properly terminated when they were 1 character long,
leading them to contain parts of the previous token.
Closes #3289160 .
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5894 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-19 22:15:59 +00:00
Colomban Wendling
5ee037bfc0
Don't make tags for /dev/null in diff files but for the new file instead
...
Based on a patch by Yang Hong, thanks.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5893 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-19 13:12:53 +00:00
Frank Lanitz
d501e1ccda
Extend list of primary keywords for Cython.
...
Patch by Alexander Eberspächer. Thanks.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5892 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-19 10:07:26 +00:00
Frank Lanitz
a2ef453ea3
Update of wording to fix some grammatical issues etc. on plugin howto.
...
Patch provided by Matthew Brush. Thanks.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5891 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-19 06:55:34 +00:00
Colomban Wendling
9d2975b8fa
Fix generating global tags (geany -g) when the configdir doesn't exist
...
When creating temporary files for generating global tag files, use
the system directory for temporary files rather than the configuration
directory, so it works even if the configuration directory doesn't
already exist.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5890 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-19 00:07:41 +00:00
Colomban Wendling
02dcab4b14
Add Cython filetype
...
Patch by Matthew Brush, thanks.
Also remove the Cython keywords from Python filetype.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5889 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-18 23:01:45 +00:00
Frank Lanitz
4db82ba7fa
Update API version used inside plugin howto to a more recent version (API v211).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5888 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-15 19:26:36 +00:00
Colomban Wendling
24583dc507
Focus the editor upon double click on the message and compiler windows
...
Also improve the code a bit by using a boolean to know whether to focus
the editor rather than always pass the key value and check it against
enter-or-return in the callee side.
Patch by Dimitar Zhekov, thanks!
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5887 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-13 20:44:39 +00:00
Colomban Wendling
5bad25e2ab
Only include config.h when building Geany
...
config.h is not distributed, and we includ it from geany.h. Even
though it was only included it HAVE_CONFIG_H was defined, an Autotools
based build system is likely to define it, and it becomes a problem if
that very build system uses another header name than config.h.
Closes #3384026
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5882 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-03 15:20:26 +00:00
Frank Lanitz
9aaeea1fd6
Adding a hint to main_locale_init() to plugin HowTo
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5879 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-07-31 17:37:12 +00:00
Frank Lanitz
e582590136
Adding some content about PLUGIN_SET_TRANSLATABLE_INFO() into plugin HowTo.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5877 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-07-31 17:35:22 +00:00
Colomban Wendling
09f8e4cc03
Add myself to various prefs credits as asked by Dimitar
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5876 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-07-31 13:35:59 +00:00
Colomban Wendling
018170c130
Improve indentation width detection to better deal with Java and Vala files
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5873 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-07-28 17:59:58 +00:00
Colomban Wendling
44e5687e0b
Allow editing of formerly hidden preferences in the preferences dialog
...
Patch by Dimitar Zhekov, thanks! (closes P#3313315)
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5871 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-07-28 17:59:22 +00:00
Colomban Wendling
461253e005
Fix indentation brace matching ( closes #3309606 )
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5864 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-26 21:47:47 +00:00
Colomban Wendling
af1cc6dc14
Recognize C# and Vala raw and verbatim strings as string styles
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5863 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-26 21:47:28 +00:00
Enrico Tröger
dac3d64413
More GTK 2.8 => GTK 2.12 transition.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5862 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-26 21:28:20 +00:00
Colomban Wendling
5914176970
Completely drop HAVE_GIO checks
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5861 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-20 16:11:46 +00:00
Colomban Wendling
d61dea84ed
Add an hidden pref to choose between GIO and plain C unsafe file saving.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5860 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-20 16:11:18 +00:00
Colomban Wendling
83527f798c
Make StashWidgetID map to gconstpointer rather than gpointer
...
This allows to use constant strings (e.g. string literals) as the
widget ID without triggering tons of compiler warnings. In cases
widgets or non-constant strings are used, this just don't change
anything, since anyway we don't really need the widget pointer not
to be constant.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5857 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-17 22:53:01 +00:00
Colomban Wendling
3bd6a01525
Fix a few signed vs. unsigned and differently-sized integer problems
...
Most notably, utils_get_line_endings() and document_open_file_list()
don't support -1 as the size anymore. If the size should be computed
from null-terminated data, the caller code must take care of doing so.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5855 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-17 22:52:17 +00:00
Colomban Wendling
15eb27b44a
Remove last GLib >= 2.16 check
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5853 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-17 22:51:35 +00:00
Colomban Wendling
e9e3f6a8ab
Remove most of the checks for GIO
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5852 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-17 22:51:17 +00:00
Enrico Tröger
e169372275
Fix two bugs with triple quoted strings within comments and missing indentation within triple quoted strings ( #3316966 , synced from CTags SVN, patch by Elias Pschernig, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5851 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-15 21:01:23 +00:00
Enrico Tröger
fa521d32f1
Add Cython keywords
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5850 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-14 21:23:19 +00:00
Colomban Wendling
c2f035cb70
Remove checks for the GSlice allocator, use it unconditionally
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5849 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-13 23:03:50 +00:00
Colomban Wendling
b32030d500
Fix a small typo in the ChangeLog
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5847 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-13 21:02:16 +00:00
Colomban Wendling
6bf947c04b
Remove pre-GTK 2.10 tab DnD support
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5846 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-13 21:02:01 +00:00
Colomban Wendling
babaad93c4
Fix Printing preferences page alignment
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5844 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-13 20:43:35 +00:00
Colomban Wendling
a465369044
Stop talking about pre-GTK 2.12 tricks in the manual
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5842 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-13 20:42:55 +00:00
Colomban Wendling
acc1ad557c
Enable GTK printing support unconditionally
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5841 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-13 20:42:31 +00:00
Colomban Wendling
5d606ce351
Deprecate ui_widget_set_tooltip_text() in favor of gtk_widget_set_tooltip_text()
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5840 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-13 18:41:50 +00:00
Colomban Wendling
2f20305925
Dump dependencies to GTK >= 2.12, GLib >= 2.16 and GIO
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5839 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-13 18:41:15 +00:00
Colomban Wendling
f856ac782d
Always destroy open and save dialog after use
...
Create and destroy the file open/save dialogs on each call rather than
keeping the same dialog around. This avoids letting GTK monitor the
displayed directory for changes, thus probably reducing overhead and
works around GTK monitoring bugs.
This refactors the code a bit now it works a little differently.
Also fixes a bug that made dialogs_show_save_as() wrongly return the
first user response rather than the one that is actually used to make
the decision. It happened for example when the user first selected an
non-writable location, or was asked whether to override a file and
answered "no".
Closes/references:
https://sourceforge.net/tracker/?func=detail&aid=3311687&group_id=153444&atid=787793
https://sourceforge.net/tracker/?func=detail&aid=3311258&group_id=153444&atid=787791
https://sourceforge.net/tracker/?func=detail&aid=3304273&group_id=153444&atid=787791
https://sourceforge.net/tracker/?func=detail&aid=3201050&group_id=153444&atid=787791
https://sourceforge.net/tracker/?func=detail&aid=3163742&group_id=153444&atid=787791
https://sourceforge.net/tracker/?func=detail&aid=3153120&group_id=153444&atid=787791
https://sourceforge.net/tracker/?func=detail&aid=2985896&group_id=153444&atid=787791
https://bugs.launchpad.net/ubuntu/+source/geany/+bug/754577
Dialog state restoration based on a patch by Matthew Brush, thanks.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5837 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-10 22:13:29 +00:00
Colomban Wendling
d455e83d6e
Also use the actual user search in the combo box history
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5833 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-03 13:41:00 +00:00
Colomban Wendling
6f9d845181
In messages show the actual text user entered in Find and Replace dialogs
...
Previously we could put into a message a string where escape sequences
were already translated.
In the code, now we pass the original text together with the one
that is actually searched for. New `original_text' field was added to
GeanySearchData. A bug was fixed in document.c:show_replace_summary(): it
did not escape the "No matches found for ..." string.
Patch by Eugene Arshinov, thanks.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5832 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-03 13:40:42 +00:00
Enrico Tröger
1e76b590c4
Ignore tags ending with an underscore.
...
Dynamically determine the path of Python's standard library instead of hardcoding it.
Parse all modules of the Python standard library instead of a hardcoded list of filenames.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5831 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-02 23:02:53 +00:00
Enrico Tröger
2ae8e26231
Fix a very old typo
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5830 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-02 21:20:38 +00:00
Enrico Tröger
3ed484ead9
Focus the editor widget after loading project session files.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5829 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-02 21:16:43 +00:00
Enrico Tröger
5141f14007
Add ui_focus_current_document() and document_grab_focus().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5828 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-02 21:15:37 +00:00
Enrico Tröger
ecfab3e67a
Move keyword 'enum' to primary keywords ( closes #3305737 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5827 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-30 18:37:07 +00:00
Enrico Tröger
4b206e86be
Check whether the custom plugin path is one of the user or system plugin paths and if so, ignore it.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5825 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-29 20:08:53 +00:00
Enrico Tröger
8693bde80d
Do not add active plugins to the list of plugins when they are already in the list ( closes #3308191 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5824 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-29 19:45:16 +00:00
Enrico Tröger
247689ec64
Define and use get_plugin_path() always and move platform dependent code into the function definition.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5822 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-29 19:35:38 +00:00
Enrico Tröger
2d95161b05
When checking for literal strings to ignore, consider also unicode, binary and raw strings.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5821 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-29 17:40:50 +00:00
Colomban Wendling
fdc80371c8
Fix preferences help button when activated with the keyboard
...
Don't hack around to trigger the help when the help button is clicked
on, simply handle the HELP dialog response. This makes the button
correctly show help rather than close the dialog when activated using
the keyboard.
This also drops _button_press_event() need and hack, making the button
correctly respond visually to mouse clicks.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5820 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-27 21:00:41 +00:00
Enrico Tröger
b516ec57e5
Add 'enum' to secondary keywords ( closes #3305737 , patch by Matthew Brush, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5816 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-22 11:08:06 +00:00