340 Commits

Author SHA1 Message Date
Colomban Wendling
dbb260f5bb Fix some compiler warnings
* Shadowed function (splitwindow plugin);
 * Invalid escape sequence (classbuilder plugin);
 * Non-static local functions (classbuilder plugin);
 * Missing function argument type (keybindings.c).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5626 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-24 22:00:34 +00:00
Colomban Wendling
7698bf60a7 Improve usage of G_(UN)?LIKELY()
G_(UN)?LIKELY() should be only used on whole conditional expressions,
and only if the branching is very highly predictable, not if it is only
more probable.

These macros should be used with care because a wrong prediction may
be a lot worst than what a good prediction can give.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5625 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-24 22:00:18 +00:00
Nick Treleaven
2813df48cf Add history to filter entry.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5620 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-24 16:34:10 +00:00
Nick Treleaven
f25e18d866 Allow multiple file filters to be separated by a space for
consistency with Find in Files file patterns. ';' is still
allowed also.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5616 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-22 17:26:47 +00:00
Nick Treleaven
0e888d75be Undo patch change to cc_option_label_new() to append a ':' colon to
label text because this unnecessarily causes string translations to 
be updated.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5599 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-17 13:02:13 +00:00
Nick Treleaven
d9e3627c01 Fix GLib warning when creating classes and no documents are open
(patch by Matthew Brush, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5598 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-17 12:54:41 +00:00
Nick Treleaven
b3edb0e74b Improve Class Builder plugin dialog UI using a table (patch by
Matthew Brush, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5597 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-17 12:49:21 +00:00
Colomban Wendling
8e79a2255a Prefer prepend elements to lists rather than append them
This is for better performances since appending to a list means walking
it to find the last element to append to. When the list ordering
matters, simply reverse the list after prepengins.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5586 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-10 22:27:04 +00:00
Enrico Tröger
7e29511228 Fix off-by-one bug which hidden the last empty line of a document.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5581 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-06 17:37:58 +00:00
Enrico Tröger
76b49acf4c Use the full filename and add the extension of the export format.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5579 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-06 17:13:45 +00:00
Enrico Tröger
65fcc2b0c0 Cleanup.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5578 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-06 17:10:30 +00:00
Enrico Tröger
b77b71fdd2 Add option to insert line numbers (closes #3197150).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5576 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-06 17:02:09 +00:00
Enrico Tröger
4d2679ad2d Fix wrong warning on empty backup directory setting if 'Backup Copy' is not enabled at all.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5551 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-02 20:00:17 +00:00
Enrico Tröger
09b734f921 Add support for multiple file filters, separated by semicolon (based on a patch by Grigory Javadyan, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5543 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-02-21 19:09:34 +00:00
Enrico Tröger
67d739f9b0 Add '.pyc' to the list of hidden object files (patch by Filip Gruszczyński, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5530 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-20 19:51:31 +00:00
Enrico Tröger
6ac2623208 Update copyright information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5528 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-19 19:39:09 +00:00
Nick Treleaven
4c17428732 Add filetypes_get_display_name() to API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5497 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-12-22 16:59:38 +00:00
Nick Treleaven
b9a42fa6d1 Add dialogs_show_input() to API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5418 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-18 18:27:01 +00:00
Nick Treleaven
ddefb0a0b4 Add API functions (patch by Eugene Arshinov, thanks):
Move editor.c: is_{string,comment,code}_style() functions to
highlighting.c, add to API.
Add editor_find_snippet(), editor_insert_snippet(),
utils_find_open_xml_tag() to API.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5409 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-16 15:07:40 +00:00
Nick Treleaven
65deb1e51d Rename submenu item labels to be more descriptive.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5354 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-02 13:05:12 +00:00
Nick Treleaven
daae45054c Only automatically replace characters when the current document is
a Markup document.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5353 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-02 12:57:10 +00:00
Nick Treleaven
e7206f35b8 Add sci_get_lexer() to plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5352 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-02 12:55:17 +00:00
Nick Treleaven
cf6756d06e Remove unnecessary includes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5351 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-02 12:49:05 +00:00
Nick Treleaven
568f1853d2 Remove unnecessary uses of FILETYPE_ID() macro with
GeanyDocument::file_type.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5323 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-25 17:24:47 +00:00
Nick Treleaven
98e6efb3b4 Add msgwin_set_messages_dir() to API (patch by Jiří Techet, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5237 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-16 15:31:23 +00:00
Enrico Tröger
0f7d1928cc Add editor_goto_pos() to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5164 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-08-15 17:44:31 +00:00
Enrico Tröger
befcb63e59 Ensure inserted templates always have proper line ending characters
according to the current document's preference.
This is also fixes problems with templates on Windows which had
always Unix line ending characters but now since they are read
from files, these have Windows line ending characters and had been
converted twice.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5114 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-08-01 17:20:50 +00:00
Nick Treleaven
4476a79127 Use ui_hookup_widget() instead of g_object_set_data_full() for
widgets.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5063 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-23 16:57:28 +00:00
Nick Treleaven
aca9e894fc Allow Find in Files when no items are selected.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5052 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-18 17:03:35 +00:00
Nick Treleaven
980e4c6112 Remove foreach_slist_free() macro - not worth the complexity (list nodes are probably cached anyway).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5050 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-18 14:20:10 +00:00
Nick Treleaven
9dc088c1e7 Add history to path entry.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5049 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-18 12:22:00 +00:00
Nick Treleaven
c41b55d692 Add ui_combo_box_add_to_history() to API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5048 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-18 12:20:15 +00:00
Enrico Tröger
be5d891f0e Pass G_LOG_DOMAIN to source files for better logging.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4954 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-25 19:49:49 +00:00
Enrico Tröger
0f92a6fd89 Remove two unnecessary g_strdups().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4944 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-22 19:39:38 +00:00
Frank Lanitz
924fc68cdd Fix a memory leak on classbuilder plugin. (Patch by Daniel Marjamaki, thanks)
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4934 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-19 17:36:06 +00:00
Enrico Tröger
77dd8feb44 Fix broken "Go Up" if the current path ends with a slash.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4926 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-16 17:45:06 +00:00
Enrico Tröger
aa05d3be45 Implement reading and evaluating hidden file attribute on Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4925 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-16 17:44:51 +00:00
Enrico Tröger
8c865b6813 Add new GTK define also for Mingw cross compilation and makefile.win32 based Windows builds (untested).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4924 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-16 17:44:40 +00:00
Enrico Tröger
10ad339994 Update Scintilla to version 2.11.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4923 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-16 17:44:24 +00:00
Enrico Tröger
7f037f71e4 Add namespace support for GTK+ classes.
Add GET_CLASS() macro for GTK+ classes.
Add typedef of the private structure in the header file instead of declaring it (all the above from a patch by Colomban Wendling, thanks).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4906 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-14 14:19:11 +00:00
Enrico Tröger
72c7cab17e Don't make the 'Create Class' menu item document-sensitive (patch by Colomban Wendling, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4905 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-14 14:09:43 +00:00
Nick Treleaven
16995c6f1d Add 'Refresh' popup menu item (part of geany-plugins #2999858).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4902 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-11 12:31:16 +00:00
Enrico Tröger
0259f13295 Guard C++/GTK class generation specific code
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4891 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-09 15:48:18 +00:00
Enrico Tröger
43e075a4f8 Minor fixes
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4890 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-09 15:48:10 +00:00
Enrico Tröger
b606964d3c Replace C99 style comments
Adjust plugin author information
Fix shadowed variable

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4889 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-09 15:48:01 +00:00
Enrico Tröger
f7de6b4ada Remove trailing spaces
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4888 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-09 15:47:49 +00:00
Enrico Tröger
a2b0ec155b Add support for creating PHP classes (patch by Ondrej Donek, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4887 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-09 15:47:39 +00:00
Nick Treleaven
fdfbd2efb4 Add symbols_get_context_separator() to plugin API (patch by Colomban
Wendling, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4876 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-05 16:26:25 +00:00
Nick Treleaven
700e6e96bf Add sci_set_line_indentation(), sci_get_line_indentation() to API
(patch by Colomban Wendling, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4869 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-03 14:46:32 +00:00
Enrico Tröger
3f3d2d1b9b Make string arguments const where appropriate (patch by Colomban Wendling, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4861 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-25 17:43:09 +00:00