4164 Commits

Author SHA1 Message Date
Colomban Wendling
92c95ad06b Fix a few warnings
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5949 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-22 18:04:03 +00:00
Nick Treleaven
478f91a129 Move build_menu_prefs to keyfile.c, it's only used there.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5947 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-22 15:55:10 +00:00
Nick Treleaven
c2b8bc1c4f Fix \0 char in format string - save as dialog filter bug.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5946 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-22 15:53:14 +00:00
Nick Treleaven
6fb7d6c181 Fix string literal comparison warning.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5945 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-22 12:05:05 +00:00
Nick Treleaven
1afb825ec8 Add configuration_add_various_pref_group().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5944 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-22 11:52:58 +00:00
Nick Treleaven
6aeefe91c3 Use various_treeview global to tidy code a little.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5943 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-21 16:03:11 +00:00
Nick Treleaven
4d3959ac2f Fix making various prefs tree sync with data values when showing
the prefs dialog (patch by Dimitar Zhekov, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5942 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-21 15:50:36 +00:00
Nick Treleaven
a80bab9e3c Use GTK unsaved file dialog on Windows too because the button names
should be specific.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@5941 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-21 15:35:38 +00:00
Nick Treleaven
b4bdd530da Use #ifdef SYNC_SPAWN instead of G_OS_WIN32 for easier testing with
glib's asynchronous spawning (currently doesn't work on Windows).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@5940 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-21 13:47:37 +00:00
Nick Treleaven
4a56c9d19d Rename use_safe_file_saving various pref to use_atomic_file_saving
as it's not 'safe'. Use old pref if new one is missing for 
compatibility with Geany <= 0.20.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5937 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-20 14:29:46 +00:00
Frank Lanitz
602e8ba6d1 Added Persian translation
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5928 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-17 07:59:11 +00:00
Colomban Wendling
8b92d08908 Fix document sensitivity of a few menu items
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5925 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-16 21:44:11 +00:00
Nick Treleaven
534ad583ea Change various prefs label to /warn/ the user to read the manual.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5924 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-16 16:23:16 +00:00
Colomban Wendling
0ebc4ed3a6 Minor wording fix
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5923 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-16 14:47:27 +00:00
Colomban Wendling
4151a973dd Ask the user if spawn fails in utils_open_browser()
Ask the user to configure a valid browser command if spawning it fails
rather than falling back to some arbitrary hardcoded defaults.

This avoid spawning an unexpected browser when the configured one is
wrong, and gives the user a chance to correctly fix the preference.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5918 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-15 02:01:38 +00:00
Nick Treleaven
233f36a603 Fix uninitialized font size & other fields.
Remove unhooked font dialog apply button.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5916 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-14 12:01:29 +00:00
Colomban Wendling
d31baeab56 Add missing MIME type to a few filetypes
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5912 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-12 23:04:53 +00:00
Colomban Wendling
aace32fb69 Fix updating symbol list for overloaded C++ symbols
When searching for an old entry to reuse when updating an existing
symbol list, take into account the symbol's argument list not to
always match the same entry for overloaded symbols.

Closes #3406644.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5910 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-12 16:58:31 +00:00
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