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
Enrico Tröger
17657b71c9
Add backslash to the wordchars on Windows when using 'Open Selected File'.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3846 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-08 19:16:23 +00:00
Nick Treleaven
2edecade6b
Make indenting with the Tabs indent type preserve spaces on the line,
...
so it works for the 'tab indents, space aligns' formatting style.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3802 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-18 15:17:48 +00:00
Enrico Tröger
6d1371eec2
Update the View->Fullscreen menu item when fullscreen state is changed externally (e.g. by the window manager).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3754 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-30 17:17:13 +00:00
Enrico Tröger
b5884be2fa
Remember the active sidebar page between sessions.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3739 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-27 19:30:29 +00:00
Enrico Tröger
6ae141fac0
Replace our own GEANY_KEYS_MODIFIER_MASK by gtk_accelerator_get_default_mod_mask() which gives the same result.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3715 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-21 20:51:53 +00:00
Enrico Tröger
0a4256565c
Prevent double execution of radio menu item "activate" or "toggled" signal handlers.
...
Move 'Set Encoding' callback function into encodings.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3712 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-17 15:30:01 +00:00
Enrico Tröger
a95a59a42f
Remove all G_LIKELY macros inside g_return_if_fail() statements as this is redundant.
...
Remove many other G_LIKELY/G_UNLIKELY macros which doesn't make much sense to keep the code more readable.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3708 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-15 22:47:33 +00:00
Enrico Tröger
a9dc990049
Start using G_LIKELY/G_UNLIKELY macros to gain a little more performance when building the code with gcc.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3687 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-05 21:07:40 +00:00
Enrico Tröger
560af59610
Add an option to allow appending the toolbar to the main menu bar to save some vertical space.
...
Allow setting toolbar icon size to very small (menu icon size).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3668 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-29 16:15:35 +00:00
Enrico Tröger
2bc9e3ae02
Re-set the quitting status after all documents have been closed on quitting.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3653 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-25 19:38:14 +00:00
Enrico Tröger
97a90efb8b
Delay disk file checks when switching between documents a little bit to avoid fast, unintentional page switching in some cases.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3646 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-24 18:12:39 +00:00
Enrico Tröger
cff3f126ac
Fix broken non-incremental search with the toolbar search entry when pressing Enter ( closes #2638180 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3609 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-27 14:06:51 +00:00
Enrico Tröger
46a2d13b4d
Move ui_set_search_entry_background() into ui_utils.c.
...
Change the background colour of the search entries in the Find and Replace dialogs according to the search results like in the toolbar search field.
Add images to the 'Replace' and 'Replace and Find' buttons in the Replace dialog.
Minor cleanups in search.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3605 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-27 14:05:50 +00:00
Enrico Tröger
59079283f2
Add 'Send Selection to Terminal' command to the Edit->Format menu (initial patch by David Gleich, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3601 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-25 23:28:01 +00:00
Enrico Tröger
c4897ee665
Use the document's real path when the VTE setting 'Follow the path of the current file' is used to prevent unnecessary directory changes when symlinks are used (reported by Dominic Hopf).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3532 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-01 18:03:19 +00:00
Enrico Tröger
5752ee9863
Rename utils_start_browser() in utils_open_browser() and add it to the plugin API.
...
Add plugin symbol plugin_help() which is called by Geany when the plugin should show its documentation (if any). This symbol is optional, plugins can omit it if not needed.
Add a Help button next to the Configure button in the plugin manager dialog to easily open a plugin's documentation if available.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3524 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-28 19:30:18 +00:00
Enrico Tröger
c636728975
Fix several compiler warnings and build errors (patch by Daniel Richard G., thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3460 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-11 18:29:39 +00:00
Enrico Tröger
39a6eb455e
Update copyright information.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3446 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-04 18:30:42 +00:00
Nick Treleaven
077270c647
Remove geanyobject.h includes.
...
Use GObject instead of unused GeanyObject argument.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3439 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-03 13:03:42 +00:00