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
Colomban Wendling
4ac3ccbd37
Make Shift-Enter in search dialog and toolbar search entries search backwards
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5621 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-24 16:51:02 +00:00
Colomban Wendling
441bab9d3b
Add new filetype setting "comment_single"
...
This provides separated single-line and multiline comment support.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5609 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-20 15:02:22 +00:00
Colomban Wendling
bf16b24b98
Create a new undo action when inserting templates
...
This makes sure the user can undo the template insertion without also
undoing a previous action.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5608 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-19 22:48:43 +00:00
Enrico Tröger
6ac2623208
Update copyright information.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5528 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-19 19:39:09 +00:00
Nick Treleaven
d65d3adcc4
Fix segfaults when using 'Send Selection to Terminal' and the VTE
...
is not loaded, and when using Ctrl-A after enabling the 'Load VTE'
pref (patch by Dimitar Zhekov, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5470 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-12-07 13:02:46 +00:00
Nick Treleaven
47372d9331
Add 'Mark All' Search menu command.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5427 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-23 12:50:24 +00:00
Nick Treleaven
14daa797d0
Fix auto-displaying of sidebar tab bar when sidebar is reshown.
...
Only auto-display symbols and documents tabs when showing the
sidebar if there are no plugin tabs.
Don't hide the sidebar on startup if only plugin tabs are visible
(fixes #3101867 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5422 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-22 13:49:38 +00:00
Nick Treleaven
554f1b0526
Don't change default build command entry color when cancelling
...
label editing.
Make dialogs_show_input() return NULL when cancelled.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5416 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-18 17:51:15 +00:00
Nick Treleaven
e24d4fbfa0
Re-focus Set Build Commands/Project dialogs after editing a build
...
command label.
Add 'parent' argument to some dialogs_show_input*() functions because
the dialog parent may not always be the main window.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5414 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-18 16:15:10 +00:00
Nick Treleaven
e38f2f6a17
Add 'Project->Apply Default Indentation' menu command to override
...
every document's indentation settings.
Improve 'Indentation' section docs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5386 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-08 18:15:14 +00:00
Nick Treleaven
ab673d22fd
Move find_again() to search.c.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5246 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-21 16:16:15 +00:00
Nick Treleaven
271257a0ae
Prompt for reloading if the document has an undo stack to avoid
...
losing undo ability on accidental reloading (patch by Colomban
Wendling, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5234 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-16 14:52:04 +00:00
Nick Treleaven
91457e47ef
Combine indent width menu item callbacks.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5229 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-14 15:10:46 +00:00
Nick Treleaven
e664c8344f
Allow per-document indent width setting (patch by Jiří Techet,
...
updated by Erik de Castro Lopo - thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5228 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-14 15:01:29 +00:00
Nick Treleaven
1fc8a5bc19
Add Find Usage and Go to Tag items to Search menu for easier
...
discovery.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5211 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-09 11:58:55 +00:00
Nick Treleaven
437d6bc7f7
Only prompt for reloading if the document has unsaved changes
...
(patch by Jiří Techet, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5190 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-08-23 15:16:39 +00:00
Enrico Tröger
e382869a16
Allow '+<number' and '-<number>' as values for Goto Line inputs to jump relative to the current line ( closes #2997238 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4894 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-09 15:48:55 +00:00
Enrico Tröger
317a21b9a3
When switching documents, don't call document_set_text_changed() as this does much more than necessary. Instead call the necessary UI update functions explicitly.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4864 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-27 15:09:34 +00:00
Enrico Tröger
8c963d2829
Make string arguments const where appropriate (patch by Colomban Wendling, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4862 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-25 17:43:39 +00:00
Enrico Tröger
fef3ee8fc5
Shorten the toolbar popup menu, only provide items for Toolbar Preferences and to Hide the toolbar.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4818 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-11 21:56:23 +00:00
Enrico Tröger
e28ca32274
Add option 'System Default' for toolbar icon style and size to use the GTK default value.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4817 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-11 21:56:08 +00:00
Nick Treleaven
14b69a3363
Update status bar after using Document->Set Line Endings.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4813 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-09 12:30:28 +00:00
Nick Treleaven
9191764491
Make Build Commands dialog show menu item labels as a button (to
...
help show that menu labels don't normally need to be edited &
display the mnemonic correctly). Clicking shows an input dialog to
set a new menu item label.
Split dialogs_show_input() into 2 functions: one simple, one for
a persistent dialog.
Fix possible double-destroy of input dialog when closed by user.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4754 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-12 13:06:34 +00:00
Enrico Tröger
37b67fb9f5
Properly show/hide the mesages window when using the View menu item ( closes #2961282 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4734 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-07 17:57:45 +00:00
Enrico Tröger
f07cd20405
Focus the editor widget after hiding the sidebar when it had the input focus (patch by Can Koy, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4733 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-07 17:44:14 +00:00
Enrico Tröger
d461084743
Add new special template wildcard "{command:...}" to use the output of a command in templates.
...
Adjust template functions to mostly work with GeanyDocuments.
Minor cleanups in the template code.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4539 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-24 14:52:46 +00:00
Nick Treleaven
56eb9267bb
Fix GLib warning & beep if trying to insert multiline comment for a
...
filetype that doesn't support it.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4537 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-22 16:41:04 +00:00
Enrico Tröger
7ba4a81181
Update copyright information.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4518 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-01 22:55:18 +00:00
Enrico Tröger
1090159b54
Add a checkbox in the preferences dialog to explicitly toggle the visibility of the sidebar ( closes #2923340 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4517 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-31 15:48:39 +00:00
Enrico Tröger
ce22ffc61e
Show the Find/Goto dialogs if the corresponding toolbar buttons are clicked but their text fields are not part of the toolbar ( #2920807 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4512 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-29 18:40:55 +00:00
Enrico Tröger
87a2c53dc7
Fix sensitivity of the Edit->Plugin Preferences menu item if plugins are loaded which do not provide a configuration dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4509 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-29 18:35:30 +00:00
Enrico Tröger
baccf0391e
Set the correct parent window for the toolbar editor dialog ( closes #2913334 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4503 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 20:49:28 +00:00
Enrico Tröger
d91e7b762b
Add document_need_save_as().
...
Show the Save As also for documents created from filetype templates instead of saving them directly with the untitled filename.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4494 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 15:36:52 +00:00
Enrico Tröger
c1620cfe92
Add and use utils_get_help_url().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4442 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-23 22:59:36 +00:00
Nick Treleaven
4efb79f35d
Show number of files saved on status bar when using Save All.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4402 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-05 18:02:08 +00:00
Nick Treleaven
b9f0304f57
Add 'Edit->Plugin Preferences' menu item and keybinding.
...
Don't include plugindata.h in pluginutils.h because it redefines the
GEANY() macro for plugin use.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4386 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-28 18:06:16 +00:00
Nick Treleaven
637d80945d
Add 'Reflow, Transpose, Smart line indent' Edit->Format menu items.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4384 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-28 11:33:11 +00:00
Nick Treleaven
3615272ec1
Add some useful commands to editor popup menu under "Commands"
...
submenu (thanks to Lex).
Move 'Duplicate line or selection' from Format -> Commands submenu.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4377 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-27 13:40:34 +00:00
Nick Treleaven
caec1ec7c3
Rename treeviews.[hc] -> sidebar.[hc].
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4252 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-28 11:16:59 +00:00
Nick Treleaven
6334ec1676
Focus editor after entering a number in the goto line toolbar entry.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4239 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-27 11:06:04 +00:00
Enrico Tröger
ae11cb9b1a
When reloading files, use the previously set encoding instead of detecting it again ( closes #2862041 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4223 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-21 20:48:50 +00:00
Nick Treleaven
1986d915cc
Run ./scripts/fix-alignment.pl -w src/*.[hc] plugins/*.[hc] (skipping generated files).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4199 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-16 14:13:38 +00:00
Nick Treleaven
4097dfec5b
Make Goto Tag commands use the current selection if present (useful
...
for selecting part of a tag or for ReST section names with spaces
in).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4195 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-16 12:13:50 +00:00
Nick Treleaven
9f761518e1
Fix using 'Insert date' keybinding when a custom date string has
...
not been set.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4107 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-18 14:26:36 +00:00
Nick Treleaven
0071bcf164
Fix 'Open Selected File' for unsaved new documents.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4104 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-18 13:47:29 +00:00
Nick Treleaven
d563da620c
Rename utils_str_replace() utils_str_replace_all(), setting a
...
'gchar **haystack' argument instead of returning a new string.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4014 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-23 16:01:45 +00:00
Enrico Tröger
28fa8d856b
Disable 'Recent Projects' menu item if the list of recent projects is empty.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4001 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-20 23:09:03 +00:00
Nick Treleaven
20c66a6816
Add stash_group_add_widget_property() so we can save any widget's
...
read/write properties.
Use Stash for ui_prefs.sidebar_page setting.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3996 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-20 12:00:06 +00:00
Enrico Tröger
f5295573f9
Add a button in the preferences dialog and an item for the toolbar popup menu to run the toolbar editor dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3899 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-25 17:29:37 +00:00