2532 Commits

Author SHA1 Message Date
Enrico Tröger
54f406a548 When updating global type definitions for opened documents, take also C++ namespace symbols into account and don't ignore symbols which are defined inside a scope.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3706 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-09 12:41:29 +00:00
Nick Treleaven
19fbfd611a Don't show 'plugin is not binary compatible' messages on the status
bar, only the status window.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3705 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-09 12:12:58 +00:00
Enrico Tröger
ae5e0c5970 When finished sending filenames to a remote instance, notify the environment that we finished starting up.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3704 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-08 16:06:40 +00:00
Enrico Tröger
500935d788 When opening files from a remote instance on X11, set the window server time to encourage window managers to pop up the main window (related to #2735467 and #2276179).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3703 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-08 16:06:25 +00:00
Nick Treleaven
5b23e5e78e Fix autocompletion.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3701 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-08 12:42:55 +00:00
Nick Treleaven
7e7b07e3b7 Sort Configuration Files menu.
Add ui_menu_sort_by_label().
Add foreach_list() macro.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3700 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-08 12:25:47 +00:00
Enrico Tröger
28ac7814fd Don't add opened project files to the GtkRecentManager.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3699 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-07 22:09:23 +00:00
Enrico Tröger
8111ada01b Prevent showing an empty macro list.
Show only macros of the same filetype instead of all macros of all loaded filetypes.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3698 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-07 22:09:08 +00:00
Enrico Tröger
6d50bdf31a Make editor_highlight_braces() static.
Remove unused wrapper functions.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3696 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-07 22:08:38 +00:00
Enrico Tröger
1dc5f0175d Fix setting a wrong default window size when starting without an existing configuration.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3695 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-07 22:08:19 +00:00
Nick Treleaven
bfe7da53bd Fix 2 old uses of filetype IDs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3694 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-07 15:42:24 +00:00
Nick Treleaven
a50dde5037 Add Configuration Files item for snippets.conf.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3693 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-07 15:28:03 +00:00
Enrico Tröger
ab88bb8270 Minor string improvements (spotted by Jean-Philippe Moal, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3691 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-06 16:01:15 +00:00
Enrico Tröger
e652d1f16a Show a message dialog when renaming a file fails.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3689 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-05 21:41:38 +00:00
Enrico Tröger
1f7def7b71 Fix typo in the G_LIKELY checks, introduced in last commit.
Fix the size of the styles array.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3688 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-05 21:22:49 +00:00
Enrico Tröger
a9dc990049 Start using G_LIKELY/G_UNLIKELY macros to gain a little more performance when building the code with gcc.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3687 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-05 21:07:40 +00:00
Enrico Tröger
b98b9b16b9 Describe how to build Geany using the Waf build system.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3685 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-05 15:12:56 +00:00
Enrico Tröger
9a0c567918 Add "Recent Projects" menu to the Project menu (#2728630, patch by Elias Pschernig, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3684 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-05 14:14:29 +00:00
Enrico Tröger
9d8d3f5b2b Add sanity checks in ui_lookup_widget() just to be safe.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3683 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-05 14:13:56 +00:00
Enrico Tröger
ee99a3e841 Remove checks for the .pdf or .dvi files when viewing a LaTeX file (as we did for all other files in SVN r3382).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3682 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-03 14:48:20 +00:00
Nick Treleaven
1681861fa1 Merge reorder-filetypes branch:
Make GEANY_FILETYPES_NONE = 0, sort filetype IDs randomly (so we can
append randomly without breaking the ABI).
Make None filetype name = title = _("None").
Add foreach_slist() macro.
Add filetypes_by_title list to GeanyData for plugin API access
- a list of filetype pointers, which includes the None filetype
first. This list stays constant by the time plugins are initialized,
so you can use e.g. g_slist_nth_data(filetypes_by_title, n) to
index the sorted list.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3681 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-03 14:23:45 +00:00
Nick Treleaven
d3cdd27904 Move ActionScript to the Script group.
Fix wording & typo.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3680 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-03 13:53:04 +00:00
Nick Treleaven
8bf28b76fb Merge trunk changes.
Add string.h include for htmlchars.c.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3679 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-03 13:45:47 +00:00
Nick Treleaven
26d27cbd2e Rename sorted_filetypes filetypes_by_title, and add to GeanyData
for plugin API access.
Fix order of filetypes in Save Actions Instant Save configuration
dialog.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3677 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-02 15:00:17 +00:00
Enrico Tröger
08b0712fcc When hiding the messages window, set the input focus back to the editor widget (part of #1910393).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3676 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-31 19:01:31 +00:00
Enrico Tröger
8eb2028ab5 Add widget names for the menubar and toolbar.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3675 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-31 17:39:17 +00:00
Nick Treleaven
68928213df Use g_slist_nth_data() with sorted_filetypes list instead of
filetypes_find() as it is neater.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3673 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-31 15:07:27 +00:00
Nick Treleaven
4753e20394 Fix sorting filetype template menu items.
Add foreach_slist() macro.
Make sorted_filetypes list public, and include None filetype first.
Rename filetypes_foreach_sorted() to filetypes_foreach_named() to
show it doesn't include the None filetype.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3672 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-31 14:32:03 +00:00
Enrico Tröger
9ab2aefa20 Display file/directory icons in the Documents sidebar (patch by Simon Treny, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3671 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-30 18:46:37 +00:00
Enrico Tröger
f9a5d444e8 Update/fix ActionScript keywords (patch by Chris Macksey, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3670 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-30 18:13:31 +00:00
Enrico Tröger
00bc23cec4 Backport recent changes from Scintilla CVS to add partial support for RFC2822 styled text using the Properties lexer.
Ignore leading whitespace for config files and RFC2822 text.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3669 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-30 17:49:40 +00:00
Enrico Tröger
560af59610 Add an option to allow appending the toolbar to the main menu bar to save some vertical space.
Allow setting toolbar icon size to very small (menu icon size).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3668 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-29 16:15:35 +00:00
Enrico Tröger
9431eea244 Allow negative window coordinates when saving and restoring the position of the main window.
Restore the main window position and size *after* the window has been realised to get it positioned accordingly (this affects at least Windows).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3666 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-27 16:25:57 +00:00
Nick Treleaven
c220fadc9e Make None filetype name = title = _("None").
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3665 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-27 16:14:29 +00:00
Enrico Tröger
a6cecbd433 Add utils_path_skip_root(), a relative path safe variant of g_path_skip_root (forgotten patch by Colomban Wendling, #2518658).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3663 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-27 15:40:19 +00:00
Nick Treleaven
ba6b5c81e9 Fix sorting Document menu filetype names.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3661 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-27 15:36:10 +00:00
Nick Treleaven
ed5f4ecb83 Sort filetype IDs randomly (so we can append randomly).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3660 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-27 15:33:52 +00:00
Nick Treleaven
0cd1683ca6 Sort open dialog filetypes in combo boxes by title.
Add filetypes_foreach_sorted(), filetypes_find().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3658 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-27 14:06:11 +00:00
Enrico Tröger
093c7cff7f Don't manage the last used documents list when quitting to prevent errors by accessing invalid memory (may close #2533990).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3656 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-26 20:31:55 +00:00
Enrico Tröger
76a9d232c2 Use g_win32_get_package_installation_directory_of_module() on Windows with newer GLib versions instead of deprecated API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3654 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-26 20:10:47 +00:00
Enrico Tröger
2bc9e3ae02 Re-set the quitting status after all documents have been closed on quitting.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3653 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-25 19:38:14 +00:00
Enrico Tröger
2c9d6cf069 Check whether skipping the root element of a document's filename succeeded and use the filename itself if not (e.g. on relative filenames, #2702844).
Use the locale encoded filename when saving session files.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3652 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-25 19:00:34 +00:00
Enrico Tröger
a9bf063c7b Delete the geany_run_script.sh immediately after execution to prevent leaking old copies when the script was quit unexpectedly (closes #2710482, patch by Martin Olsson, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3651 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-25 18:52:17 +00:00
Frank Lanitz
10ea2cc7ba Remove usage of deprecated sci_get_selected_text() from htmlchars plugin.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3649 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-24 18:45:16 +00:00
Enrico Tröger
df4a62d571 Deprecate sci_get_text(), sci_get_selected_text() and sci_get_text_range().
Add sci_get_contents(), sci_get_contents_range() and sci_get_selection_contents() as replacement functions to provide an easier and cleaner API (initial patch by Frank).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3647 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-24 18:13:28 +00:00
Enrico Tröger
97a90efb8b Delay disk file checks when switching between documents a little bit to avoid fast, unintentional page switching in some cases.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3646 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-24 18:12:39 +00:00
Enrico Tröger
9318d1def6 Fix wrong parsing of CSS tags when the definition block starts on a new line (reported by Dominic Hopf, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3644 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-22 22:49:29 +00:00
Frank Lanitz
3c36f39cd5 Extend htmlchars plugin with some replacment functions.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3643 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-20 17:22:18 +00:00
Nick Treleaven
2cc65983d2 Fix setting Open dialog filetype on opening a file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3641 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-20 16:33:59 +00:00
Nick Treleaven
5ddc129829 Make GEANY_FILETYPES_NONE = 0; other things are now broken, e.g.
setting Open dialog filetypes.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3640 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-20 16:18:32 +00:00