3848 Commits

Author SHA1 Message Date
Enrico Tröger
f1eb8dc22d Ellipsize tab labels and some status messages for very long filenames (closes #2777348).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3718 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-21 20:52:51 +00:00
Enrico Tröger
ac0505ee6c Fix build with USE_GIO_FILEMON by declaring the file changed status colour conditionally.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3717 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-21 20:52:32 +00:00
Enrico Tröger
61f89d5c25 Add a trivial symbol parser for NSIS files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3716 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-21 20:52:19 +00:00
Enrico Tröger
6ae141fac0 Replace our own GEANY_KEYS_MODIFIER_MASK by gtk_accelerator_get_default_mod_mask() which gives the same result.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3715 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-21 20:51:53 +00:00
Enrico Tröger
ec6542fa18 Watch the 'show-hidden' property of the file chooser widget using GObject's "notify" signal which gives accurate results and remove the hack using the "selection-changed" signal.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3714 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-19 18:14:12 +00:00
Enrico Tröger
eab512dced Hide the extra file open dialog options in an expander to make the dialog more compact by default and to provide more space for the file view.
Remove the filename field as it is also provided by GTK itself with more features like auto-completion.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3713 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-19 17:54:09 +00:00
Enrico Tröger
0a4256565c Prevent double execution of radio menu item "activate" or "toggled" signal handlers.
Move 'Set Encoding' callback function into encodings.c.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3712 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-17 15:30:01 +00:00
Enrico Tröger
075f2d3e7f Fix a memory leak.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3711 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-16 17:57:29 +00:00
Enrico Tröger
1c1306341b When a project is loaded, replace the project base path with the project name in the Documents sidebar for parent items (closes #2723679).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3710 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-16 17:55:42 +00:00
Enrico Tröger
30494fa2ad Add some missing 'void's in function definitions.
If the project base path is './', just use the path of the project config file instead of appending './'.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3709 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-16 17:55:26 +00:00
Enrico Tröger
a95a59a42f Remove all G_LIKELY macros inside g_return_if_fail() statements as this is redundant.
Remove many other G_LIKELY/G_UNLIKELY macros which doesn't make much sense to keep the code more readable.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3708 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-15 22:47:33 +00:00
Enrico Tröger
ba4002e502 Fix duplicating the recent files and projects lists when closing a project.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3707 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-15 22:46:13 +00:00
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
c4e043c4de Remove finished items.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3702 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-08 12:47:45 +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
d02a9f9c88 Silently ignore a request to start auto-completion when the document has no filetype set.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3697 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-07 22:08:50 +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
Frank Lanitz
4b711df385 Update of French translation
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3692 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-06 22:36:32 +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
7065a92232 Fix Windows build (oops).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3690 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-06 13:39:33 +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
Frank Lanitz
1053d2496d Update of Turkish translation
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3686 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-05 19:58:30 +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
Enrico Tröger
d71d3521d2 Fix Windows build by removing the last reference of the old VCdiff plugin (oops, reported by Timothy Boronczyk).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3678 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-02 15:49:19 +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
6d34508059 Fix wording & typo.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3674 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-31 15:11:58 +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