Matthew Brush
f78e8e602a
Add ui_hookup_object() and ui_lookup_object() functions to the plugin API.
...
TODO: Increment the plugin API number if/when this gets committed.
2011-10-10 15:20:39 -07:00
Matthew Brush
af093c2ddf
Remove interface.c/h files and put code into ui_utils.c/h.
2011-10-10 15:20:15 -07:00
Matthew Brush
9109c6b4e0
Cleanup some comments.
2011-10-10 13:56:54 -07:00
Matthew Brush
d7538c83e1
Make builder and interface_file local to the init function.
2011-10-10 13:56:48 -07:00
Matthew Brush
fb4f21613b
Document that the widget param for ui_lookup_widget() is no longer.
...
Cast it to void to avoid warnings and tell other programmers.
2011-10-10 13:56:43 -07:00
Matthew Brush
cfedadae27
Remove lingering Glade 2 create_*() functions.
...
Add interface.h includes in prefs.c, project.c, stash.c and ui_utils.c.
2011-10-10 13:56:37 -07:00
Matthew Brush
a474046741
Change order of name retrieval.
2011-10-10 13:56:31 -07:00
Matthew Brush
fa6c666c2c
Make sure interface is finalized after the rest of Geany is done with it's objects.
2011-10-10 13:56:26 -07:00
Matthew Brush
93b0b1bed1
Use a GHashTable to store and lookup key/name mapping rather than GSList.
2011-10-10 13:56:13 -07:00
Matthew Brush
6429f36d88
Remove -wl,--export-dynamic from Makefile.am for Win32 since it's not needed and might not even work.
2011-10-10 13:17:59 -07:00
Matthew Brush
7c9430884f
Cleanup code, comments and refactor a bit.
2011-10-10 13:17:55 -07:00
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