Enrico Tröger
90cf307265
Adjust error line parsing for newer Python versions
...
The format of the error message output of the py_compile module has changed in
Python 2.6. The code now tries to detect the format and parse it accordingly.
2011-10-18 23:53:44 +02:00
Nick Treleaven
cf88abfe4d
Speed up & simplify stash tree display/update
...
Store a pointer to the stash pref for each row, so display/update is just
O(n) instead of O(n^2) time.
This changes the order prefs are updated in, but this doesn't matter.
2011-10-17 18:03:56 +01:00
Nick Treleaven
d6fc1f74f1
Use GPtrArray and g_slice to allocate prefs.
...
This allows us to return StashPref pointers - before with GArray the
address could change on future appends.
2011-10-17 16:12:41 +01:00
Matthew Brush
a670edfbe5
Remove no longer used global variable
...
This should've been removed in the previous commit (oops).
2011-10-14 21:23:52 -07:00
Matthew Brush
389d996b83
Show the correct Preferences tab when activated from the VTE context menu
2011-10-14 21:19:06 -07:00
Matthew Brush
caaf824f70
Fix VTE font and foreground/background colour preference callbacks
...
Remove `font-set` signal from Glade file since it's dependent on the VTE
being available and connect it from `vte.c`.
Add `color-set` handlers for foreground and background color preferences.
2011-10-14 20:58:13 -07:00
Matthew Brush
c7c9eec6d0
Fix minor style and visibility issue
2011-10-14 20:12:06 -07:00
Nick Treleaven
feb917d5e1
Fix uninitalized 'name' access.
2011-10-14 13:28:14 +01:00
Nick Treleaven
4c633741c8
Use app->datadir instead of GEANY_DATADIR
...
The latter doesn't work on Windows.
2011-10-14 13:23:45 +01:00
Nick Treleaven
eb6f740aff
Fix uninitialized access error
2011-10-14 13:00:01 +01:00
Nick Treleaven
55646df83d
Windows: Fix detecting a changed file on opening from command-line.
...
The file timestamp can actually be in advance of the current time in
this case.
2011-10-13 16:56:40 +01:00
Nick Treleaven
e9021f2174
Windows: Fix wrongly shown debug message 'GetExitCodeProcess failed'
2011-10-13 16:33:15 +01:00
Nick Treleaven
c2ce2403f4
Windows: Fix 'Create process failed' message to show correct error
...
This helps when trying to run build commands that don't exist;
the status bar message for that is now:
Process failed (The system cannot find the file specified.)
2011-10-13 16:18:40 +01:00
Nick Treleaven
fd6c538795
Merge branch 'master' of github.com:geany/geany
2011-10-13 13:29:47 +01:00
Nick Treleaven
02da53d711
Fix focusing editor after startup on Windows
2011-10-13 13:26:57 +01:00
Matthew Brush
4fb9629f5b
Detect HTML embedded filetypes from the current line
...
When using the commenting features (ex. toggle line commentation),
detect the the type of comments for the filetype of the line with
the caret rather than using the filetype of the current document.
Filetype is determined by the Scintilla state/style at the
beginning of the line where the caret is.
This does not fix the existing bug where using the commenting
features on lines with things like `<script>` will result in an
HTML-style comment to be wrapped around it and also where using
the commenting feature on a line with something like `<?php`
will not only wrap it in an HTML-style comment but it also won't
be able to uncomment the line.
This closes bug ID 2863829[1] and 3127598[2].
[1] https://sourceforge.net/tracker/?func=detail&aid=2863829&group_id=153444&atid=787791
[2] https://sourceforge.net/tracker/?func=detail&aid=3127598&group_id=153444&atid=787791
2011-10-12 23:35:06 -07:00
Joshua Hoff
cbadf177f4
simplify "append toolbar to menu" packing code
2011-10-12 18:09:59 +02: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
Matthew Brush
5be552b040
Merge branch 'master' into gtkbuilder
2011-10-11 15:58:44 -07:00
Colomban Wendling
010be558cd
Plug a few memory leaks
2011-10-11 20:20:51 +02:00
Nick Treleaven
b6eccc01ae
Set Colomban as maintainer
2011-10-11 18:02:21 +01:00
Nick Treleaven
055779fb9f
Cleanup dialogs_show_unsaved_file().
2011-10-11 16:19:24 +01:00
Matthew Brush
b8c5be4d11
Add note to ui_hookup_widget() doc comments.
2011-10-10 15:21:05 -07:00
Matthew Brush
6086749e51
Cleanup comments in ui_utils.c/h.
2011-10-10 15:20:55 -07:00
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