Colomban Wendling
5d687aad27
Cleanup code in utils_open_browser()
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5909 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-11 17:06:11 +00:00
Colomban Wendling
490867eb4e
Plug a few memory leaks
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5908 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-02 21:45:20 +00:00
Colomban Wendling
64d632ba29
Fix check for enabling MIME type based icons
...
gtk_icon_theme_lookup_by_gicon() requires GTK >= 2.14, and since
GTK 2.14 requires the GIcon API, drop the GLib check.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5907 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-02 21:45:02 +00:00
Colomban Wendling
57bca3ba25
Fix foreach_ptr_array() not to crash on arrays with 0 elements
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5906 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-02 21:44:44 +00:00
Colomban Wendling
e3bf851784
Add menu items to detect indentation settings from document's content
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5904 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-25 20:15:02 +00:00
Colomban Wendling
3440b6770f
Add and use editor_set_indent_width() to only set indentation width
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5903 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-25 20:14:40 +00:00
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
28056ce711
Cleanup code duplication in editor_start_auto_complete()
...
Use read_current_word() in editor_start_auto_complete() not to
duplicate some code. This also brings non-ASCII characters as
part of a word, first step for non-ASCII word completions.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5900 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-25 20:12:36 +00:00
Colomban Wendling
0ecab5791f
Use gsize instead of C99 type size_t in Geany's core
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5899 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-25 20:12:20 +00:00
Colomban Wendling
079b1689e3
Fix checks for non-ASCII characters not to rely on signed char
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5898 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-25 20:11:59 +00:00
Colomban Wendling
ba09987d10
Cleanup word search for word completion
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5897 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-25 20:11:43 +00:00
Colomban Wendling
4652b74203
Use utils_get_setting() to cleanup filetypes.c:load_settings()
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5896 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-25 20:11:25 +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
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
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
ddb4ad5fa5
Fix some whitespace style errors
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5886 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-06 18:34:14 +00:00
Colomban Wendling
ee1d546d8f
Refactor a little some code to be more readable
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5885 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-06 18:33:27 +00:00
Colomban Wendling
f1f7cac2fd
Fix unlikely but theoretically possible use of an uninitialized variable
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5884 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-06 18:33:04 +00:00
Colomban Wendling
b40338d337
Properly include string.h in stash.c since we use strcmp() (oops)
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5883 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-03 15:20:43 +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
a9f4dcfbbb
Adding a hint to prevent double usage of main_local_init() also to function documentation and correct word order.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5881 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-01 19:31:56 +00:00
Colomban Wendling
c8a71b258e
Add missing documentation for GeanyInterfacePrefs and GeanyToolPrefs
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5875 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-07-31 13:35:43 +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
c26cd608b7
Fix returning a boolean in a function returning a pointer (oops)
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5872 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-07-28 17:59:40 +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
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
1fa30c3a65
Fix plugin function signatures after r5857 changes (no API/ABI changes) (oops)
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5859 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-18 14:54:50 +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
9fa8cd8bf9
Fix a few GCC warnings
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5856 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-17 22:52:43 +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
254007f22c
Consistently always check if USE_GIO_FILEMON is defined, not for its value
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5854 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-17 22:51:51 +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
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
6380810550
Remove treeview-related pre GTK 2.12 support
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5848 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-13 23:03:19 +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
9830d5616c
Drop another wrapper for GTK 2.12 tooltips
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5845 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-13 21:01:42 +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
ebca594c3c
Remove GTK version check for setting show_symbol_list_expanders
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5843 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-13 20:43:17 +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
35ddfa4c70
Properly save and restore the encoding state in Open File dialog (oops)
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5838 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-10 23:13:08 +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