29 Commits

Author SHA1 Message Date
Nick Treleaven
601dfd69f7 Make msgwin_status_add() only log a message, not display it on the
status bar.
Make ui_set_statusbar() take a log argument for whether to record the
message in the Status window.
(Plugin API functions already do this).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1971 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-24 10:52:48 +00:00
Nick Treleaven
ef1399e000 Rename MyApp -> GeanyApp.
Move most GeanyApp fields into:
GeanyPrefs for (most) Preferences dialog fields;
UIPrefs for non-Prefs dialog visual settings;
UIWidgets for less commonly used widgets such as menuitems and
dialogs;
GeanyStatus for various states the application can be in.
Move some GeanyApp fields into EditorPrefs (and one into each of
CommandLineOptions and SidebarTreeviews).
Add plugin API prefs field.
Move disabling build widgets on Windows to build_init().
Make build callbacks static.
Add treeviews_init() to prepare popup menus and open files treeview.
Replace treeviews_find_node() with treeviews_select_openfiles_item().
Make utils_isbrace() and utils_is_opening_brace() take an
'include_angles' argument (to separate from editor_prefs).
Make 'Goto matching brace' keybinding include <> angle brackets.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1815 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-23 11:34:06 +00:00
Nick Treleaven
25e596bf0d Add allocation for NULL-terminated selection ends.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1765 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-30 10:40:09 +00:00
Enrico Tröger
b0322faa93 Fix compiler warnings on Windows
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1757 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-28 15:18:01 +00:00
Nick Treleaven
767b70dbb3 Move Color Chooser and Word Count tools to tools.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1751 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-27 11:28:17 +00:00
Nick Treleaven
109a7aee67 Convert 'Insert Special HTML Characters' tool into a plugin;
keybinding support will be added later.
Add plugin functions for inserting text into the current document.
Add plugin support for disabling a menu item when no documents are
open.
Destroy plugin_fields->menu_item on unloading if set by a plugin.
Use G_MODULE_BIND_LOCAL for plugins to prevent symbol shadowing by
other modules, and to help detect unresolved symbols at loading time.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1734 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-23 15:41:08 +00:00
Nick Treleaven
8fe0974d8a Capitalize some dialog titles.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1694 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-12 11:59:13 +00:00
Nick Treleaven
451c5b0e7e Make Class Builder into a plugin.
Add some function pointers to the plugin API (for the class builder).
Don't use G_MODULE_BIND_LAZY when loading plugins otherwise we can
potentially get unresolved symbols at runtime, causing a segfault.
Capitalize 2 menu item labels.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1659 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-04 11:32:33 +00:00
Enrico Tröger
0fdff2eb50 Apply patch from Alexander Rodin to improve the class builder code(thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1626 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-17 15:14:04 +00:00
Enrico Tröger
b496302508 Fix sanity checks in utils_str_replace().
Fix several memleaks.
Avoid using broken functions g_strdown() and g_strup().
Only create header and source files if filename is not empty.	   


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1625 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-15 17:16:06 +00:00
Enrico Tröger
72dbd1c0cb Fix bug when reopening the Insert special characters dialog after it was closed by a delete event.
Fix creation of class files with an empty name and some code reformatting.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1622 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-15 15:37:59 +00:00
Enrico Tröger
c40c49e6f9 Fixed spelling of GTK.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1621 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-15 13:33:01 +00:00
Frank Lanitz
72fe75c980 Fixed a small typo
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1619 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-14 18:47:08 +00:00
Nick Treleaven
69e70bf715 Fix 'sensitive' spelling.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1618 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-14 16:24:58 +00:00
Nick Treleaven
363690e9d4 Apply class builder patch from Alexander Rodin (thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1616 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-14 13:10:51 +00:00
Enrico Tröger
b5f8992a5d Added many widget names to different dialogs for use with custom styles. Menu items still don't work.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1535 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-15 15:16:16 +00:00
Nick Treleaven
ec40674023 Remove unneeded callbacks.h include.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1419 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-24 12:50:19 +00:00
Nick Treleaven
fe2ee88919 Correct typo.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1379 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-09 16:40:22 +00:00
Enrico Tröger
90b01daf35 Fixed several compiler warnings (mainly shadowing local variables and unreachable code).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1376 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-09 13:52:26 +00:00
Enrico Tröger
926437688f Set IO channels for custom commands to blocking mode (thanks to Jeff Pohlmeyer).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1353 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-01 21:45:43 +00:00
Enrico Tröger
0cad18d0eb Replaced glibc printf extension %m with strerror() call.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1349 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-01 11:42:11 +00:00
Enrico Tröger
a8dae8ecb6 Applied patch from Jeff Pohlmeyer to improve the custom command execution code(thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1347 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-01 10:54:37 +00:00
Nick Treleaven
2cab3043de Fix sign comparison warnings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1344 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-27 15:06:17 +00:00
Enrico Tröger
1e3a92d617 Fixed wrong sensitiveness of custom commands menu items.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1341 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-26 13:32:34 +00:00
Enrico Tröger
549f19444e Added custom commands to send selected text through some definable commands and replace the selection with the output.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1334 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-25 14:26:55 +00:00
Nick Treleaven
806dd5be1d Add descriptions for all .c source files below the file header.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1329 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-24 11:41:56 +00:00
Enrico Tröger
7b61ad934d Updated copyright information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1188 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-14 17:36:42 +00:00
Enrico Tröger
cce673cdc4 Completed list of special characters, implemented expanding and collapsing of categories at double click.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1123 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-18 22:55:27 +00:00
Enrico Tröger
ad37f83878 New files tools.c and tools.h.
Added a dialog to insert HTML special characters.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1088 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-13 00:46:14 +00:00