2585 Commits

Author SHA1 Message Date
Enrico Tröger
d7f8d9933c Don't use the clear icon inside any spin buttons in the prefs dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3575 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-13 18:13:07 +00:00
Enrico Tröger
8735f3b47e Don't use a hard coded black foreground colour for the compiler and messages windows, instead use the default GTK foreground colour.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3574 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-13 18:12:49 +00:00
Enrico Tröger
8cd312e250 Small optimisations by moving out function calls of loop break conditions (patch by Frank, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3571 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-10 21:11:25 +00:00
Enrico Tröger
4ffd7f2ed9 Add a clear icon to the used text entries all over the place (will be available with GTK >= 2.16).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3570 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-10 21:10:50 +00:00
Enrico Tröger
c5dc11dc6f Really focus the status/compiler/messages window when the corresponding keybinding is used.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3569 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-08 20:35:57 +00:00
Enrico Tröger
e98cf99fb7 Don't follow the path of the document if the document has not an absolute file path.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3568 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-08 19:52:43 +00:00
Enrico Tröger
d6c1d1e801 Add editor_get_word_at_pos() as a convenient function to retrieve the word at a given position.
Make document_get_status_color() returning a const GdkColor.
Add editor_get_word_at_pos() and document_get_status_color() to the plugin API.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3567 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-08 19:52:21 +00:00
Enrico Tröger
0e8e7a687b Fix path quoting problems on Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3566 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-08 19:51:49 +00:00
Enrico Tröger
27530eabe8 Make Menu key and Shift-F10 working on the filebrowser treeview.
Return TRUE if appropriate in the event handlers.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3565 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-08 19:51:31 +00:00
Frank Lanitz
f87cb49e2d Don't put closing td tag into a new line during auto completion of a
HTML table

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3562 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-08 13:01:44 +00:00
Enrico Tröger
35aaad545b Fix ordering of the input methods submenu item in the VTE popup menu.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3560 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-06 19:39:52 +00:00
Enrico Tröger
51b3a33503 Add plugin_module_make_resident() to the plugin API which allows plugins to make the module resident. This seems necessary when using GTypes, e.g. by using the GObject API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3559 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-06 19:05:12 +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
3e168c175c Fix typo which caused wrong snippet completion (closes #2568588).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3553 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-05 20:02:54 +00:00
Enrico Tröger
334e7092ea Allow pressing Space/Enter in the compiler and messages treeviews to activate the selected item (closes #2555704).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3551 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-05 19:14:17 +00:00
Enrico Tröger
bfbc2b6f73 Special case Menu key presses and Shift-F10 to show the popup menu of the widgets where they were pressed instead of always the document notebook tab list.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3550 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-05 19:10:57 +00:00
Enrico Tröger
4daa599478 Use the G_DEFINE_TYPE() macro to generate the *_get_type() code.
Remove useless geany_object_finalize() function.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3549 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-05 19:04:54 +00:00
Enrico Tröger
bbd58c2856 It's enough to check for GTK 2.14 at runtime, not at build time when to determine whether to show non-local folders in the file chooser dialogs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3547 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-04 20:04:49 +00:00
Enrico Tröger
1fc1e8f24a Fix a crash on Windows for PHP files when 'comment_close' in not set (neither in the user's config nor in the global filetypes.php) and (un)commenting is used outside of the PHP tags (reported by Frank, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3546 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-04 20:01:32 +00:00
Enrico Tröger
c70d6c4338 Some code cleanup and improve comments, no changes in functionality.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3545 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-04 19:52:44 +00:00
Enrico Tröger
200d1152f6 Fix wrong Help button sensitiveness in the plugin manager dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3542 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-02 21:04:55 +00:00
Enrico Tröger
30dcb01ca1 Update to waf 1.5.3 and use modern task syntax in the wscript.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3534 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-01 19:14:50 +00:00
Enrico Tröger
c45ea64eec Add an option to 'follow the path of the current file' in the filebrowser plugin.
Add an option to automatically set the project's base directory when a project is opened/changed (closes #2554027).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3533 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-02-01 18:48:09 +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
b2eeefc919 Add some missing @since tags to the API documentation of various functions.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3531 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-30 18:53:23 +00:00
Enrico Tröger
84fc7556eb Add a few notes about basic plugin writing guidelines.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3530 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-30 18:10:27 +00:00
Enrico Tröger
56a1470bb9 Add utils_string_replace_first() to the plugin API.
Allow entering paths prefixed with '~' in the filebrowser path entry.
Show the full path for files and folders in the filebrowser plugin as tooltips.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3529 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-30 16:12:25 +00:00
Enrico Tröger
bc52e9db5d Update Fortran parser from CTags SVN (closes #2545000).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3527 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-29 17:24:31 +00:00
Enrico Tröger
2d6b0f8282 Add a check for 'libtoolize' (suggested by Greg Smith, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3526 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-29 16:29:59 +00:00
Enrico Tröger
f22e90a473 Remove the square brackets around Hidden preferences table titles to avoid confusion with section titles in the config file.
Add the new hidden pref 'allow_always_save'.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3525 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-28 19:55:23 +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
f22c9a5916 Mention necessary header includes in the plugin signal descriptions.
Add missing header includes for the demoplugin.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3522 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-28 17:55:58 +00:00
Enrico Tröger
a2c01c6637 Use the selection 'changed' signal of the treeview to update the popup menu items and show the popup menu on mouse button press events so right clicking on items will select them first.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3521 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-28 17:22:34 +00:00
Enrico Tröger
8ef5804bbe Add a hiden preference "allow_always_save" to make the Save buttons/menu items always sensitive and allow saving files even without changes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3520 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-28 17:01:32 +00:00
Enrico Tröger
692cb1364c Set the documents' mtime field properly for checking disk file changes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3519 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-28 16:18:22 +00:00
Enrico Tröger
644a9cfbff Add a progressbar widget to the statusbar and use it to show progress when building with the Make commands, when printing and when using Find in Files.
Add progressbar convenience functions and ui_entry_add_clear_icon() to the plugin API.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3517 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-27 20:19:43 +00:00
Enrico Tröger
a20ee7d883 Add a clear icon to the toolbar search and goto text fields (will be available with GTK >= 2.16).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3516 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-27 19:31:45 +00:00
Enrico Tröger
ee35d4b1ee Fix legacy file monitoring since I broke once more.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3515 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-27 19:10:12 +00:00
Nick Treleaven
47c0b41a38 Refactor with create_find_dialog().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3514 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-27 18:12:00 +00:00
Nick Treleaven
1027890ee7 Rename static structs, group by dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3513 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-27 18:03:58 +00:00
Nick Treleaven
c5bdf0d9fc Remember whether find/replace all expanders were expanded.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3512 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-27 17:50:45 +00:00
Nick Treleaven
1c4acab84f Split Prefs dialog General tab into sub-notebook with Startup and
Miscellaneous tabs. Merge Search tab into Miscellaneous tab.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3511 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-27 13:54:05 +00:00
Frank Lanitz
7302952f22 Update of Czech translation
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3509 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-26 18:11:37 +00:00
Enrico Tröger
f72e8a3f3a Use the stock overwrite confirmation dialog provided by GTK 2.8 in the Save As dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3508 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-24 19:39:35 +00:00
Enrico Tröger
ba97eb158c Use g_file_set_contents() to write files to disk in utils_write_file() for better error checking and to avoid corruption of config files when there is no more free disk space.
This is not used for saving documents (part of Debian bug #503391).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3507 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-24 19:39:10 +00:00
Enrico Tröger
f0a1081c38 Disable GIO based file monitoring for now since it doesn't work yet as stable as it should. Define USE_GIO_FILEMON to use.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3506 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-24 19:38:53 +00:00
Enrico Tröger
423550f00f Use g_timeout_add_seconds() instead of g_timeout_add().
Add missing NULL check in monitor_file_changed_cb().
Reset the file status when saving a file failed.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3505 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-24 19:38:31 +00:00
Enrico Tröger
f7978158a5 Increase minimum required GTK version to 2.8.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3504 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-22 20:33:21 +00:00
Enrico Tröger
c980b2e4b1 Minor cleanup in the socket code.
When files are opened remotely, always use gtk_window_present() to bring the main window to front or whatever the window manager decides to do (part of #2276179).
On Windows, we send a pointer to the main window to the remote instance which then brings the window to the front (grab focus). This should work better than the previous implementation and should avoid the blinking tasklist item.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3502 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-22 20:31:35 +00:00
Nick Treleaven
15f4b8f136 Reorder replace dialog 'replace all' buttons.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3501 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-22 17:22:05 +00:00