3795 Commits

Author SHA1 Message Date
Matthew Brush
a42161181a Remove debugging print statement that shouldn't have been committed (oops). 2011-10-10 13:17:45 -07:00
Matthew Brush
6b1088ea96 Port the Terminal UI to Glade 3/GtkBuilder.
Just don't show it if we don't have a VTE (ex. on Win32 or if it's disabled).
2011-10-10 13:17:35 -07:00
Matthew Brush
2a5164f098 Change some widget names that were changed in the Glade 3 file. 2011-10-10 13:16:58 -07:00
Matthew Brush
14e880dd96 Update stash widget lookup code. 2011-10-10 13:15:28 -07:00
Matthew Brush
c39ad3e29d Update ui_lookup_widget() and ui_hookup_widget() to use new interface.c/h code. 2011-10-10 13:15:23 -07:00
Matthew Brush
63080efd40 Remove old Glade 2 generated code and add some compatibility code. 2011-10-10 13:15:04 -07:00
Matthew Brush
0d3040bf86 Export symbols from Geany to allow GtkBuilder to find the callbacks.
Link with --export-dynamic and add G_MODULE_EXPORT to make the callback
symbols visible on Win32.
2011-10-10 13:14:22 -07:00
Colomban Wendling
d06e9f4575 Remove $Id$ and $Date$ SVN keywords 2011-10-09 22:57:35 +02:00
Colomban Wendling
69313263e7 Check for Git revision rather than SVN one 2011-10-09 20:46:02 +02:00
Nick Treleaven
534f10454d Remove unnecessary document_show_tab() call (oops).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@6018 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-07 16:50:15 +00:00
Nick Treleaven
1563c625f7 Add document_show_tab().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@6017 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-07 16:47:31 +00:00
Nick Treleaven
be81fafafb Use utils_get_setting() for string keys.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@6015 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-06 16:18:31 +00:00
Nick Treleaven
d9b7ae92b8 Fix missing tagmanager/mio/makefile.win32 in EXTRA_DIST.
Include makefile.win32 in EXTRA_DIST recursively, not at top-level.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@6013 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-06 12:36:28 +00:00
Nick Treleaven
b673f0534e Fix argument description.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5998 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-05 15:33:40 +00:00
Colomban Wendling
965ef1a285 Cleanup utils_strpos()
Use strstr() to find the substring, which makes the code simpler and
is way faster (new version is nearly 2 times faster on my machine).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5994 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-03 17:06:12 +00:00
Colomban Wendling
7ff6f6b799 Cleanup utils_remove_ext_from_filename()
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5993 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-03 17:05:57 +00:00
Colomban Wendling
386b32122e Avoid an unnecessary string duplication in utils_str_casecmp()
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5992 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-03 17:05:41 +00:00
Colomban Wendling
33f471c6f1 Fix "toggle case" when there is no selection
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5991 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-03 17:05:25 +00:00
Nick Treleaven
abefcc3375 Support visual reordering of keybinding groups without breaking the
plugin ABI.
Reorder Project group to follow main menu order.
Move Focus, Notebook tab groups last as they don't have 
corresponding menu items.
Use keybindings_get_core_group() for fixed group IDs instead of 
indexing keybinding_groups.
Make keybindings_lookup_item() only work with a GEANY_KEY_GROUP_ 
ID, not an index into keybinding_groups.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5990 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-03 14:57:02 +00:00
Colomban Wendling
d6dfedf4a0 Post-release version bump
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5989 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-03 14:39:01 +00:00
Nick Treleaven
5b220d70a2 * Merge branches/unstable:
- tagmanager/php.c:
   Fix parsing keyword-qualified functions strictly, e.g. don't 
   parse 'staticfunction' or 'fatfunction'.
 - src/utils.c, src/utils.h, src/editor.c:
   Use GRegex for snippet indentation replacement - fixes wrong 
   behaviour with Mac line endings.
 - tagmanager/lregex.c, TODO:
   Use GRegex for CTags instead of POSIX regex - GRegex is more 
   powerful. This also fixes a (HTML) performance issue on Windows. 
   Geany will now print a debug warning when using the "b" CTags 
   regex flag option for non-extended syntax. This is not currently 
   used by Geany's parsers.
   Note: GNU regex can't be removed yet as it's still used elsewhere 
   by Geany.
 - src/build.c, doc/pluginsignals.c:
   When saving on build, prompt for a filename if necessary.
   Emit the "build-start" signal only if saving succeeds.
 - src/build.c:
   Use #ifdef SYNC_SPAWN instead of G_OS_WIN32 for easier testing with 
   glib's asynchronous spawning (which doesn't work on Windows).
 - src/win32.c, src/win32.h, src/dialogs.c:
   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/trunk@5987 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-03 14:35:11 +00:00
Nick Treleaven
8b987b095a Revert revision 5971 - gint* in accept().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5975 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-30 11:14:23 +00:00
Nick Treleaven
53a0121f69 Fix accept pointer signedness warning portably (hopefully) using socklen_t.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@5974 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-30 11:11:29 +00:00
Nick Treleaven
9ca8db635a Use GRegex for snippet indentation replacement - fixes wrong
behaviour with Mac line endings.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@5973 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-30 11:10:22 +00:00
Nick Treleaven
c6b38b861e When saving on build, prompt for a filename if necessary.
Emit the "build-start" signal only if saving succeeds.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@5972 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-29 18:03:36 +00:00
Nick Treleaven
6ed4900f80 Fix pointer signedness warning.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5971 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-29 17:49:42 +00:00
Colomban Wendling
0eadc9bd7b Compute needle length only once in utils_string_replace_all()
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5966 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-28 19:49:45 +00:00
Colomban Wendling
a89fcc2cc4 Fix utils_string_replace_all() to accept a NULL replacement again
Support of NULL as the replacement was lost in the code refactoring
introduced by revision 5730, and it broke a few plugins.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5965 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-28 19:49:28 +00:00
Nick Treleaven
9522258239 Remove unused and out of sync filetype_remove() - filetypes should not be removed anyway.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5964 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-28 10:47:43 +00:00
Nick Treleaven
36a8459cbb Fix not indenting snippet contents for documents with non-\n line
endings.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5959 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-26 16:31:32 +00:00
Nick Treleaven
0e89b9e2e8 Fix not converting \n to document line endings in snippets.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5958 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-26 16:18:36 +00:00
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