271 Commits

Author SHA1 Message Date
Nick Treleaven
d7cd30cd99 Add 'Show Paths' documents list popup item.
Add "load_settings" core-only signal emitted just after loading
main keyfile settings; useful to delay building UI elements until
settings have been read.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3976 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-16 15:04:21 +00:00
Nick Treleaven
99641558bb Add documents_foreach() API macro that skips invalid docs.
Make filetypes[], documents[] part of the API again.
Add GEANY() macro for sharing geany symbols between API and core.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3964 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-14 13:05:51 +00:00
Nick Treleaven
b051d01215 Apply patch from Eugene Arshinov to reload color schemes via menu
(thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3955 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-13 11:58:21 +00:00
Nick Treleaven
69c1173478 Minor typos.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3888 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-22 15:08:44 +00:00
Enrico Tröger
8d18b3c2fa Init stock items before creating the toolbar (closes #2809324).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3882 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-20 16:53:28 +00:00
Enrico Tröger
d4700f094e Properly clean up the logging mechanism.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3878 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-20 16:52:30 +00:00
Enrico Tröger
8b5b6287e1 Instantly reload (i.e. rebuild) the toolbar when ui_toolbar.xml is saved within Geany.
Refactor some related code.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3874 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-20 16:51:32 +00:00
Enrico Tröger
66b78ad961 Create parent directories if necessary when checking for the configuration directory on startup (closes #2784577).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3777 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-10 17:44:43 +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
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
ae5e0c5970 When finished sending filenames to a remote instance, notify the environment that we finished starting up.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3704 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-08 16:06:40 +00:00
Enrico Tröger
1dc5f0175d Fix setting a wrong default window size when starting without an existing configuration.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3695 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-07 22:08:19 +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
9a0c567918 Add "Recent Projects" menu to the Project menu (#2728630, patch by Elias Pschernig, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3684 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-05 14:14:29 +00:00
Enrico Tröger
8eb2028ab5 Add widget names for the menubar and toolbar.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3675 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-31 17:39:17 +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
9431eea244 Allow negative window coordinates when saving and restoring the position of the main window.
Restore the main window position and size *after* the window has been realised to get it positioned accordingly (this affects at least Windows).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3666 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-27 16:25:57 +00:00
Enrico Tröger
76a9d232c2 Use g_win32_get_package_installation_directory_of_module() on Windows with newer GLib versions instead of deprecated API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3654 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-26 20:10:47 +00:00
Enrico Tröger
a70a679898 Add an option to set an additional plugin lookup path.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3626 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-13 10:02:29 +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
ec531d2495 On Windows, change the working directory to the Geany installation path at startup to avoid unwanted directory locking(closes #2626124).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3596 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-24 18:26:16 +00:00
Enrico Tröger
df24b80537 Don't check for old configuration directory location on Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3557 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-06 14:15:19 +00:00
Enrico Tröger
91ba3a12da Add a NULL check for locale filename string just to be safe.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3481 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-17 18:46:44 +00:00
Enrico Tröger
de30d056c7 Rename command line option --debug to --verbose.
Change short form of --version from -v to -V.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3469 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-15 18:20:19 +00:00
Enrico Tröger
787a680290 Add checks for GIO (GLib >= 2.16) support.
Allow to specify files on the command line and from remote instances to be URIs (local and with GIO also remote URIs).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3454 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-09 18:21:12 +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
9a89cd2a51 Fix build (oops).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3442 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-03 16:31:12 +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
Nick Treleaven
943f07d07a Add dialog for switching to last used tab, which disappears when
releasing the modifier key. (Useful once MRU switching is
implemented).
Connect window key-press-event in keybindings.c.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3436 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-02 13:37:40 +00:00
Nick Treleaven
8af824aee4 Fix creating a new configuration directory (oops).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3426 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-28 13:40:26 +00:00
Nick Treleaven
0f575ea2b7 Don't forget active plugins after disabling plugin support.
Use Stash for plugin-related prefs.
Add geany_object "save-settings" signal (for core only).
Add stash_group_add_string_vector().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3425 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-28 13:21:35 +00:00
Nick Treleaven
f0d2f92e65 Add Project Indentation prefs, which override the Editor
Preferences dialog options. For new projects, these default to the
editor indent prefs.
- Plugins:
For compatibility with this change, use editor_get_indent_prefs().
- Code changes:
The Project Properties dialog is now created by Glade, but (for
now) the existing options are added manually.
Add GeanyProjectPrivate project field.
Add stash_group_set_use_defaults().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3423 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-27 12:55:04 +00:00
Enrico Tröger
9e25c43487 Move implementation of lookup_widget() into ui_lookup_widget().
Change uses of lookup_widget() to ui_lookup_widget().
Remove now unneeded support.c.
Use GLib gettext macros in support.h instead of own ones.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3402 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-18 21:21:53 +00:00
Nick Treleaven
8de6b131c9 Remember Find in Files mode at startup.
Add configuration_add_pref_group(), with separate array for GUI
prefs.
Move search pref group to search.c.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3383 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-16 13:01:47 +00:00
Enrico Tröger
428b93da88 Add new toolbar elements: Close All and Preferences.
The icon for Close All was kindly provided by Tyler Mulligan, thanks.
Remove GeanyStockItem and add ui_new_pixbuf_from_stock() as a replacement.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3354 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-09 20:31:38 +00:00
Nick Treleaven
5c5dfe9df5 Move Stash data types to stash.c, so Stash functions could be used
by plugins without breaking the ABI when appending fields. Also the
user code is neater and has type checking.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3349 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-09 13:16:52 +00:00
Enrico Tröger
7c6ff4d5bb Add Line number and Markers margin settings to the prefs dialog.
Add View->Editor submenu and group there the Line numbers, Markers margin, Show white space, Show line endings and Show indentation guides settings.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3340 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-07 19:12:08 +00:00
Enrico Tröger
b5c392d309 Add new stock icon GEANY_STOCK_SAVE_ALL.
Remove code to manually update the size of the 'Save All' toolbar icon and use the GEANY_STOCK_SAVE_ALL stock icon instead.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3329 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-06 11:45:48 +00:00
Enrico Tröger
8ed9710f48 Rewrite of the whole toolbar code. Now it is based on GtkActions and all elements can be added/removed/reordered using a simple XML file.
Add GeanyMenubuttonAction and GeanyEntryAction as GtkAction subclasses to have menu buttons and text entries in the toolbar.
Change the Goto line toolbar item back to a plain text entry again.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3328 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-06 11:10:06 +00:00
Enrico Tröger
72d6493932 Don't mark console messages as translatable.
Add two comments for translators.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3315 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-04 15:56:54 +00:00
Nick Treleaven
492f78c769 Move configuration_read_filetype_extensions() to
filetypes_read_extensions().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3281 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-26 16:09:48 +00:00
Nick Treleaven
899dce26b6 Add 'Tools->Configuration Files' menu with items to open
filetype_extensions.conf and ignore.tags. These files are also
reloaded automatically when saved.
- Code changes:
Make app->configdir a realpath().
Add ui_add_config_file_menu_item().
Add utils_build_path(), similar to g_build_path() but (re)using a
fixed buffer, so the result is never freed.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3279 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-26 13:15:53 +00:00
Nick Treleaven
d05dca5468 Make 'Reload Configuration' command also reload ignore.tags.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3278 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-25 12:09:08 +00:00
Nick Treleaven
e6fa252184 Create geany_object in main.c so core functions can use it even
when plugins are disabled.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3265 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-21 17:27:16 +00:00
Enrico Tröger
f31899538d Try to fix some problems when opening files with non-Ascii characters on Windows from the command line.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3263 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-21 15:42:26 +00:00
Nick Treleaven
51e4000038 Move symbol list popup menu code to symbols.c.
Add symbols_init().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3243 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-18 13:29:53 +00:00
Nick Treleaven
44bff7b443 Prompt the user for whether to move the configuration directory or
just quit instead. This is useful if the user is already running an
older binary of Geany and the second instance is newer.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3225 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-14 13:38:59 +00:00
Enrico Tröger
d7caf0f9c0 Follow XDG Base Directory specification and use $XDG_CONFIG_HOME/geany (most often this is ~/.config/geany) as default configuration directory (closes #2166229).
The previous configuration will be moved to the new location if the new directory doesn't exist yet.
Move utils_make_settings_dir() into main.c.
Remove win32_get_appdata_folder() because g_get_user_config_dir() does the same.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3219 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-13 14:37:47 +00:00
Enrico Tröger
1c46db7dd6 Add main_locale_init() to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3153 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-25 18:56:27 +00:00