6061 Commits

Author SHA1 Message Date
Enrico Tröger
3b56ff37c8 Add -Wl,--export-dynamic linker flag
This seems required for GtkBuilder to be able to connect signals. However, this change may break Windows
builds. Needs to be tested and worked around if it is the case.
2011-12-11 15:07:56 +01:00
Enrico Tröger
8763854d76 Adjust Waf build system for recent GtkBuilder changes
The only necessary bits were to remove interface.c and to install the Glade file.
2011-12-11 12:00:46 +01:00
Lex Trotman
e64628745e Move language specific snippets from global to filetype entries
Having C language snippets as global is wrong, moved them to several
language positions.  This files low rate of change and lack of ML
interest in putting language specific snippets in it suggests that
it isn't worth fixing the repitition or moving snippets to filetype
files.
2011-12-11 18:07:56 +11:00
Matthew Brush
d090e7dd85 Ensure Geany's default size takes effect (oops) 2011-12-10 19:52:55 -08:00
Matthew Brush
00473dff4e Use a sane default window size if config is missing 2011-12-10 19:28:23 -08:00
Matthew Brush
4fbabc1f71 Update Glade section in HACKING file 2011-12-10 16:34:40 -08:00
Matthew Brush
b60413ed60 Clean up some compiler warnings (oops) 2011-12-10 16:14:11 -08:00
Matthew Brush
2d41ee941b Merge branch 'gtkbuilder' 2011-12-10 15:50:05 -08:00
Matthew Brush
7d6731279f Show error dialog if the Glade file could not be loaded
Also remove old comment that doesn't apply anymore.
2011-12-10 15:44:37 -08:00
Matthew Brush
f9ff3ee233 Update POTFILES.in with the new data/geany.glade and remove interface.c 2011-12-10 14:44:56 -08:00
Matthew Brush
467363adb9 Set translation domain for the GtkBuilder 2011-12-10 14:39:07 -08:00
Matthew Brush
906ffc6aae Fix some widget names in glade file and code so they match (oops) 2011-12-10 14:10:44 -08:00
Nick Treleaven
fb1c6c63e6 Print system plugin path debug message on startup 2011-12-08 17:02:25 +00:00
Nick Treleaven
d7f53f7f83 Fix offscreen window after quitting when minimized
Fixes #3421282.
Occurred with Windows e.g. Vista, 7.
2011-12-08 16:35:29 +00:00
Nick Treleaven
3baaa53679 GTK tags are no longer distributed with Geany 2011-12-08 13:31: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
Matthew Brush
3f6b4f950d Remove interface.c file added back in from last merge (oops) 2011-12-06 19:06:53 -08:00
Matthew Brush
088b0bc362 Merge branch 'master' into gtkbuilder
Conflicts:
	geany.glade
	src/Makefile.am
	src/callbacks.c
2011-12-05 20:52:00 -08:00
Dimitar Zhekov
4ffbd8f9ad split "always wrap search and hide find dialog" pref into "always wrap search" and "hide find dialog" 2011-12-05 21:54:38 +01:00
Colomban Wendling
eb064df5b6 TCL: Highlight words as keywords after '{' as this highlights 'else'
Upstream Scintilla applied it as 3924:e2385dff420a.

Closes #3432877.
2011-12-05 19:51:08 +01:00
Colomban Wendling
f0de946d3e Fix inserting multi-line comments with "Insert multiline comment"
"Insert multiline comment" did insert single-line style comment when
available even if multi-line style was also supported for the filetype.
2011-12-04 00:21:41 +01:00
Colomban Wendling
c69b8eea23 Fix and unify getting open/close/single comment markers
Add filetype_get_comment_open_close() to get appropriate start and end
comment markers from a filetype, and use it everywhere these markers
are fetched.

This fixes a crash in editor_insert_multiline_comment() if only single
comments are available (closes #3449635).
2011-12-04 00:16:31 +01:00
Joakim Gebart
903e69b388 Fix broken default statusbar_template in Swedish translation. 2011-11-23 15:34:58 +01:00
Colomban Wendling
77a484e990 Don't leave some fields initialization to implicit initialization
Although this doesn't change anything in practice, it started to be a
nightmare trying to deal with compilers warnings about "missing"
initializers, which are generally good but not in that file.
2011-11-23 02:22:07 +01:00
Colomban Wendling
4a0a5f0a09 Don't try to parse 0-length data since TM don't support it 2011-11-23 00:51:46 +01:00
Colomban Wendling
c252b1f376 Fix finding duplicated keybindings
When checking whether a keybinding is already in use before updating
it in the preferences, check against the keybindings the user may have
updated, not the ones that are currently applied.

This fixes changing action A from key K to key L and action B from key
L to key K, which led to conflicts back and forth since when setting B
to K the check found A as a duplicate even after having changed it.
2011-11-23 00:51:46 +01:00
Dimitar Zhekov
6738d43dee --read-only cleanup
Use the global variable only when needed and add an initializer for it
in the default options.
2011-11-21 21:48:32 +01:00
Colomban Wendling
102ce1d205 Prevent GCC to warn about missing initializers in highlightingmappings.h
Use a GCC pragma to disable -Wmissing-field-initializers in this file.
This works with both GCC and CLang, and should be harmless on other
compilers since unknown pragmas are supposed to be ignored.
2011-11-21 16:12:22 +01:00
Colomban Wendling
425e0e39be Merge branch 'symbols-tree-update-fixes' 2011-11-21 15:31:49 +01:00
Colomban Wendling
319a6355fe Use GSlice to allocate cached tree iters 2011-11-21 03:52:51 +01:00
Colomban Wendling
ef0b059917 Rewrite symbols tree updating code
Old implementation was not really fitting the updating needs and had a
bug making symbols disappear if they haven't changed but their parent
did (e.g. when a C++ constructor's signature changed).

New implementation does:
1) walk old tree, updating or removing rows;
2) add remaining tags.

It walks less than (new_tags + old_tags + new_tags) in the worst case,
thanks to some hash table-based caching;  and also gets rid of the
"valid" column in the symbols tree, saving a few bytes in memory.

Finally, there is a ~7% performance gain (from 21 to 18ms) upon common
tree updates, sometimes more.
2011-11-21 03:52:42 +01:00
Enrico Tröger
39606dd17c Add Close menu item to the notebook tab menu
This is especially useful if tab close buttons are disabled.
2011-11-20 16:10:02 +01:00
Enrico Tröger
cfa334de74 Fix using the current document on 'Close Other Documents' from the GtkNotebook tab menu
Instead we should use that tab which is under mouse cursor where the user clicked (this might be a
different one than the current document). To be able to do so, we need to handle the right-click signal
per tab not on the GtkNotebook tab area to identify the tab under the mouse cursor.
2011-11-20 16:05:39 +01:00
Enrico Tröger
7aa9160b5f Mention new openro command 2011-11-20 14:48:05 +01:00
Enrico Tröger
a62d99a5f2 Add --read-only option to the manpage 2011-11-20 14:46:30 +01:00
Enrico Tröger
22ba6de142 Remove set but unused variable dwStatus (closes #3440276). 2011-11-20 13:39:20 +01:00
Enrico Tröger
917ce32ccc Prefix header guards with GEANY_ for consistency 2011-11-20 13:31:56 +01:00
Enrico Tröger
7edcb7978f Remove double underscores around header guards (closes #3440258)
While this is a violation of the C standard in theory, it should not affect anything.
Anyway, removing the double underscores makes the header guard scheme more
consistent with the rest of Geany header files so it's still a good thing.
2011-11-20 13:31:07 +01:00
Colomban Wendling
f994427319 Fix walking a tree branch twice when removing the last leaf
When removing the last leaf of a symbols tree branch, make sure not
to start walking parent's children again.
2011-11-18 21:35:24 +01:00
Nick Treleaven
03152902a9 Mention 'Go to tag' commands can use the current selection
Cleanup 'Go to tag' sections and keybinding descriptions.
2011-11-17 16:15:38 +00:00
Nick Treleaven
9ae71ab6cc Add default keybindings for Go to Tag, remove Transpose default
This does not affect existing users.

Ctrl-T          Go to tag definition
Ctrl-Shift-T    Go to tag declaration

A default keybinding for 'Transpose current line' is no longer
necessary as it does the same as 'Move line(s) up', which we now have
a default for.
2011-11-17 15:58:27 +00:00
Nick Treleaven
82769a046c Set Move Line(s) default keybindings, change Move Tab defaults
This does not affect existing users.

Ctrl-Shift-PageUp   Move document left
Ctrl-Shift-PageDown Move document right

The above shortcuts were aliases for selecting left/rightmost
documents, but those are not necessary as Alt-1/Alt-0 does the same.

Alt-PageUp      Move line(s) up
Alt-PageDown    Move line(s) down

Alt is easier to press than Ctrl-Shift, so is better for moving lines
as this needs more accuracy.
2011-11-17 15:49:09 +00:00
Thomas Martitz
8f280ed884 New --read-only commandline option
This adds a new commandline option --read-only (or -r). It's implemented
according to the behavior agreed on on the mailing list:

--read-only applies to all files on the command line
irrespective of positioning and has no effect on any other files
opened by session or menu (...)

Current behaviour on attempting to re-open a file with different
read-only status is that nothing happens, the already open
file is raised but not changed. (...)
2011-11-17 16:41:51 +01:00
Colomban Wendling
80d5e07c6c Revert granting an unexpected check to an assertion
It actually happens, and until fixing this properly, don't output
useless useless scary warnings.  Anyway, this is not a big problem
or anything.
2011-11-17 03:57:15 +01:00
Colomban Wendling
59eb0557b6 Add a configurable prefix for commands sent to the shell in the VTE
This adds an hidden VTE preference, send_cmd_prefix, that allows to
define a prefix for the commands Geany sends to the shell in the VTE
like "cd" when following current path.

This can be used for example to prevent some shells (Bash, ZSH, maybe
others) from putting these commands in the history by setting this to
a space.
2011-11-17 03:57:14 +01:00
Nick Treleaven
5b41e177de Explain Windows paths for data and plugins 2011-11-16 17:27:33 +00:00
Nick Treleaven
70b3cae060 Verify active plugin paths on startup
Geany saves the path for each active plugin on shutdown, but the 3
valid plugin paths can each change.
2011-11-16 17:27:32 +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
Colomban Wendling
048e6a6c3c Fix an assertion logic 2011-11-15 20:32:36 +01:00
Colomban Wendling
c73ee49758 Fix a few things, most of them reported by clang's static analyzer 2011-11-15 19:40:29 +01:00