385 Commits

Author SHA1 Message Date
Nick Treleaven
34e6bddde8 Add File Browser path entry tooltip 2012-01-03 16:29:32 +00:00
Nick Treleaven
a5995468ef Show marker margin in split window
Although go to marker commands (or other keybindings) don't work, the
marker margin can still be useful, and improves alignment with the
original sci widget when using the Top & Bottom split.
2011-12-19 18:23:46 +00:00
Nick Treleaven
ffb33c5299 Show/hide fold margin on sync, not on split 2011-12-19 17:58:51 +00:00
Nick Treleaven
8bdc2d376b Don't manually disconnect "sci-notify" signal
This will get disconnected when the widget is destroyed.
2011-12-19 17:50:58 +00:00
Nick Treleaven
8818ee3fc9 Include gdk-pixbuf-2.0 path for recent GTK+ dev (Windows build)
Fixes #3396195.

Note: GTK+ 2.24 is the current maintained version of the developer
files bundle:
http://www.gtk.org/download/win32.php
2011-12-08 12:53:11 +00:00
Nick Treleaven
58729d4de9 Use foo.o instead of foo.dll.o to enable Make Object (Windows build) 2011-11-16 17:27:31 +00:00
Nick Treleaven
f1b9c58612 Fix auto-saving documents when the current document has no filename 2011-11-02 15:10:50 +00:00
Colomban Wendling
36ebb1f2b7 Use canonical macros for stock items rather than plain strings
This makes the code more readable, potentially more future-proof (if
the actual string changes) and better style (catches possible typos at
build-time).
2011-10-30 22:01:49 +01:00
Matthew Brush
a23e999b7b Bump GTK+ version to 2.16 2011-10-28 10:25:58 -07:00
Matthew Brush
c4980f8c1e classbuilder: Move caret to start of generated documents 2011-10-28 01:12:29 -07:00
Matthew Brush
65e20780e4 classbuilder: Use GTK/GNU code style for generated GTK+ code
Use two spaces instead of tabs, spaces between function and opening
argument bracket, and various minor changes.

Add dummy gpointer to private struct so the class can be compiled
without modification.
2011-10-28 00:31:26 -07:00
Matthew Brush
bd5fba7eb5 Remove extra whitespace at end of lines in all source files.
* Processed with rstrip-whitespace.py script added to scripts/ directory.
* Script run on all .c and .h files in src/ and plugins/ directories.
* Also remove more than one newline at the end of files.
2011-10-11 21:52:58 -07:00
Matthew Brush
182bdc3b17 Replace GTK_BIN(...)->child with gtk_bin_get_child(...) 2011-10-11 21:30:28 -07:00
Colomban Wendling
d06e9f4575 Remove $Id$ and $Date$ SVN keywords 2011-10-09 22:57:35 +02: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
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
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
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
24705610ab Enable SplitWindow build on Windows again
Re-apply r5638 now the SplitWindow plugin is fixed for real.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5775 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-09 13:22:02 +00:00
Colomban Wendling
e8b724ca05 Remove widget reparenting in Split Window plugin
Instead of reparenting the documents notebook full of
ScintillaObjects, just ref it, remove it from the old parent, add
it to the new parent, and then unref it.  This fixes the display
issue on Windows and seems to have no issues on Linux.

Patch by Matthew Brush, thanks.
Closes #2725342.

Re-apply this patch now the X PRIMARY selection bug is fixed in
Scintilla's side (see r5692).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5774 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-09 13:21:45 +00:00
Nick Treleaven
2a45938205 Add utils_find_open_xml_tag_pos() API function (patch by Eugene
Arshinov, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5733 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-23 11:44:31 +00:00
Enrico Tröger
9f8c5103a8 Add document_compare_by_tab_order() and document_compare_by_tab_order_reverse() to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5727 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-17 13:40:04 +00:00
Enrico Tröger
d478a5cc01 Add missing parts from previous commit, oops
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5715 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-12 17:24:13 +00:00
Nick Treleaven
3aa483d82f Update path when saving a new document for the first time if the
follow path option is enabled.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5706 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-11 12:07:19 +00:00
Enrico Tröger
66c8b7faee Add ui_menu_add_document_items_sorted() and document_sort_by_display_name() to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5705 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-10 17:03:41 +00:00
Nick Treleaven
07fed6de1e Don't hide directories matching hidden file extensions e.g. foo.o.
Refactor with check_object().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5663 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-31 17:58:01 +00:00
Nick Treleaven
e6c579c624 Fix optimization for filter check when pattern is '*'.
Use foreach_strv() instead of foreach_c_array().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5662 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-31 17:28:03 +00:00
Nick Treleaven
b41b021674 Fix applying default setting for hide_object_files (oops).
Fix warning when enabling plugin from the Plugin Manager.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5661 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-31 15:34:55 +00:00
Nick Treleaven
d69f8f69f6 Make 'Hide object files' preference configurable with file
extensions.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5660 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-31 15:01:24 +00:00
Nick Treleaven
953be445cb Remove confusing macro CHECK_READ_SETTING().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5659 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-30 16:18:47 +00:00
Colomban Wendling
12db21f519 Properly use 0 as the invalid timeout source ID, rather than G_MAXUINT
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5657 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-30 14:59:25 +00:00
Nick Treleaven
bf4b063853 Remove unnecessary use of DOC_VALID() macro.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5656 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-30 13:09:27 +00:00
Nick Treleaven
a1f96c36ae Fix Instant Save preferences combo box filetype order.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5655 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-30 12:47:26 +00:00
Nick Treleaven
93d65a1daf Update styles when the filetype changes (based on patch by
Matthew Brush, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5654 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-30 12:31:29 +00:00
Colomban Wendling
8b737e707d Use new plugin_idle_add(), preventing an unlikely crash
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5651 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 23:20:29 +00:00
Colomban Wendling
ef9360c78b Add plugin_{idle_add,timeout_add,timeout_add_seconds}() to the plugin API
These functions does the same as the corresponding GLib functions but
makes sure that the added GSource will be removed when the plugin is
unloaded, preventing possible crashes.

These are only convenience functions for the plugin author not to have to
care about the case the plugin gets unloaded, he can still manually
manage hes GSources if he wants to.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5650 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 23:20:14 +00:00
Nick Treleaven
22038400cc Add filetypes_get_sorted_by_name() to API.
Fix --ft-names sorting to print in name order, not title order.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5649 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 18:06:26 +00:00
Colomban Wendling
2fcb9c6790 Revert r5636 "Remove widget reparenting in Split Window plugin"
It breaks the X PRIMARY selection on the normal Geany editor.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5640 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 16:02:34 +00:00
Colomban Wendling
e5071473c1 Revert r5638 "Enable SplitWindow build on Windows again."
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5639 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 16:02:21 +00:00
Enrico Tröger
9b8b01a0b2 Enable SplitWindow build on Windows again.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5638 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 15:28:02 +00:00
Colomban Wendling
df172dfedd Remove widget reparenting in Split Window plugin
Instead of reparenting the documents notebook full of
ScintillaObjects, just ref it, remove it from the old parent, add
it to the new parent, and then unref it.  This fixes the display
issue on Windows and seems to have no issues on Linux.

Patch by Matthew Brush, thanks.
Closes #2725342.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5636 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 15:02:07 +00:00
Colomban Wendling
9704e8f954 Don't unsplit when closing the document if we can show another one
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5634 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 00:18:31 +00:00
Colomban Wendling
35d5bb2c24 Fix confusing terminology in Split Window plugin menu labels
Patch by Matthew Brush, thanks. Closes #2796316.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5633 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 00:18:18 +00:00
Colomban Wendling
fc910a2448 Enable code folding in splitview window (closes #3097780)
Based on a patch by Matthew Brush, thanks!

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5632 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 00:18:05 +00:00
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