Enrico Tröger
c461da68f1
Removed utils_str_equal() and use g_str_equal() from GLib because it does exactly the same.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1056 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-06 20:44:32 +00:00
Nick Treleaven
1edaaa3d6c
Show read-only notebook tabs in green.
...
Add document_get_status() to get the tab colour for the document.
Use ui_update_tab_status() to update notebook tabs and open files
treeview items.
Avoid using GtkTreeIter struct as treeviews function arguments.
Remove unneeded arguments for treeviews_openfiles_add(),
notebook_new_tab().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1053 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-05 10:37:36 +00:00
Enrico Tröger
6a0f57ad2c
Use default GTK foreground colour for filenames on notebook tabs instead of hardcoded colour black.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1047 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-04 14:32:50 +00:00
Nick Treleaven
01988714b3
Make ui_set_statusbar() use printf-style arguments & assume the
...
message should not be overridden.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1032 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-25 16:33:38 +00:00
Nick Treleaven
3537731023
When replacing in session, use notebook page order and show a count
...
of the files changed.
Show the filename when replacing text over a range.
Add DOC_FILENAME() null-safe macro to get the filename at doc_idx.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1031 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-25 12:32:22 +00:00
Nick Treleaven
9cff8504ea
Ensure tab DnD is enabled when tabs are added; use
...
notebook_remove_page() instead of gtk_notebook_remove_page().
Unified notebook_[en|dis]able_dnd_for_dropping_files() in
tab_count_changed().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1017 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-22 16:07:18 +00:00
Enrico Tröger
4306f9091a
Removed DnD handler for the main window (not very useful).
...
Fixed broken tab reordering by only enabling DnD for dropping files when there are no open file tabs, otherwise disable it and enable DnD for moving file tabs. Dropping files into Geany when file tabs are open still works because then it is handled by the Scintilla widget.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1015 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-21 18:39:23 +00:00
Nick Treleaven
bfd785b72a
Applied patch from Bob Doan to prevent scrolling when wrap searching
...
around a document, and to add a preference for suppressing search
dialogs when wrapping or after Find Next.
Rearranged some Preferences dialog options, added Files tab.
Disable tab position when file tabs are hidden (not new file tab
placement option, it still affects order of pages).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1012 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-18 15:47:28 +00:00
Nick Treleaven
b2f191d37a
Fix sign comparison warnings.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1008 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-17 12:19:31 +00:00
Enrico Tröger
99806172b2
Enabled drag and drop for the whole main window to be able to drop files even if no tabs are open.
...
Moved code for getting the file list to document_open_file_list().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1004 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-15 23:12:13 +00:00
Nick Treleaven
c3300b2da9
Add NULL-safe FILETYPE_ID macro to get filetype::id from pointer.
...
Allow insertion of GPL notice and file header when the filetype is
not set.
Add commenting for PHP & HTML GPL notice and file header templates.
Add make_comment_block() to templates.c.
Move document_prepare_template(), filetypes_get_template() to
templates.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@994 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-14 16:03:25 +00:00
Nick Treleaven
bd1137d9e9
Rename utils_strcmp() utils_str_equal() (to avoid return value
...
confusion with strcmp()).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@978 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-08 16:21:46 +00:00
Nick Treleaven
67ce2f51b0
Move utils_get_tag_list() to symbols.c, make utils_find_tm_tag()
...
static.
Move symbols_get_global_keywords() to get_global_typenames() in
highlighting.c.
Add symbols_find_tags_as_string(), symbols_get_tag_list(),
symbols_get_macro_list(), symbols_find_in_workspace() from various
tag-related existing code.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@976 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-08 11:42:05 +00:00
Nick Treleaven
7b1ca9594f
Scroll matching selection to 1/3 of the view when searching.
...
Add sci_scroll_to_line(); remove sci_goto_line_scroll().
Show 'not found' message on status bar also when enter is pressed in
the search bar.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@964 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-03 15:09:13 +00:00
Nick Treleaven
e79dc052f1
Prevent possible invalid memory read.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@950 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-01 10:58:47 +00:00
Nick Treleaven
1844a2d051
Fix sign comparison warnings.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@947 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-30 11:49:35 +00:00
Enrico Tröger
ff5e5cca37
Fixed bug when setting colour of open files list entry on new, unnamed files.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@946 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-29 14:44:04 +00:00
Enrico Tröger
77a424a270
Colour also the open files list items according to their changed state.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@944 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-29 13:03:13 +00:00
Enrico Tröger
6146cc9399
Fixed typo.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@934 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-25 19:25:35 +00:00
Enrico Tröger
07c61dc5cf
Fixed access before check ;-).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@933 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-25 19:23:19 +00:00
Nick Treleaven
82f1dca4aa
When replacing tabs by space, prevent the scroll position changing,
...
and fix a possible change of cursor position.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@932 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-25 17:03:24 +00:00
Enrico Tröger
60bb784493
Moved utils_convert_to_utf8() and utils_convert_to_utf8_from_charset() to encodings.c.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@931 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-25 14:48:07 +00:00
Enrico Tröger
e3f6f0a890
Added warning message dialog, united dialogs_show_info() and dialogs_show_error() to dialogs_show_msgbox().
...
Added warning message when opening files that cannot be handled correctly and set them to read-only mode.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@930 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-25 14:38:48 +00:00
Enrico Tröger
c08f1553d4
Added GEANY_DEBUG ifdef around the doc() function.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@925 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-24 16:29:17 +00:00
Nick Treleaven
4d42dbbe52
Fix setting document unchanged state when using Undo/Redo for
...
encoding or BOM changes.
Add sci_is_modified().
Added useful doc() function used only when debugging.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@922 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-24 13:41:34 +00:00
Enrico Tröger
47a71bc3aa
Added new encoding "None" to open files without any character conversions ( fixes #1580456 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@920 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-23 20:32:37 +00:00
Enrico Tröger
84a4e8d817
Added drop down box to the file open dialog to select an encoding.
...
Added possibility to open a file without any character set conversions.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@919 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-23 00:05:42 +00:00
Nick Treleaven
03eae9ebc4
Add separate Replace button, rename old button Replace & Find.
...
Add expander to group Replace All options for Replace dialog.
Use Replace All In Session button instead of checkbox.
Add border, update packing for all dialogs in search.c.
Add ui_dialog_vbox_new() for consistent dialog borders.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@914 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-22 14:56:05 +00:00
Nick Treleaven
89b3f4c314
Remove unused argument. Rename document_find_next() document_search_bar_find().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@910 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-21 11:00:37 +00:00
Nick Treleaven
f391cc9588
Make search bar automatically wraparound if necessary.
...
Detect when Find has searched all text and display a 'not found'
message on the status bar.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@909 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-21 10:50:45 +00:00
Nick Treleaven
e821acb863
Move build menu related functions and callbacks to build.c.
...
Renamed ui_update_build_menu -> build_menu_update.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@902 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-18 19:35:42 +00:00
Nick Treleaven
ecdb3beca3
Fixed Undo/Redo setting the wrong document changed state when making
...
edits after saving a file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@901 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-17 16:41:29 +00:00
Enrico Tröger
028fe98373
Finished new Undo system. Now some more actions can be undone and also redone.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@878 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-10 16:02:41 +00:00
Enrico Tröger
c3972d6b2d
Connect only once to the "sci-notify" signal.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@876 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-10 13:52:22 +00:00
Nick Treleaven
93ba5ba45f
Removed the GEANY_MAX_OPEN_FILES limit, using a dynamic array.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@875 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-09 16:08:53 +00:00
Enrico Tröger
ac359bc327
Implemented simple "shebang" detection.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@869 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-06 23:23:05 +00:00
Enrico Tröger
6f00febd3c
Fixed crash when using "Make object" on new files( closes #1570818 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@866 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-04 19:14:57 +00:00
Enrico Tröger
642889e97a
Reordered command line options alphabetically.
...
Added new command line option --line to set the initial line for the first opened file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@863 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-03 13:16:42 +00:00
Nick Treleaven
464e9b7d0b
Change sci_get_line to return a NULL terminated string.
...
Fix memory leak and possible invalid read in sci_cb_auto_latex().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@861 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-02 15:22:29 +00:00
Nick Treleaven
f93a8f9df2
Clear the symbol list when opening a file with no tags.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@856 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-30 16:15:45 +00:00
Nick Treleaven
913e783a43
Reorder the recent files list if necessary when a file is
...
(re)opened - closes #1552178 .
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@805 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-09 12:03:11 +00:00
Nick Treleaven
0701ee9941
Use handle_forced_encoding(), handle_encoding() and handle_bom()
...
when opening files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@804 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-08 15:05:32 +00:00
Nick Treleaven
d3eb239d81
Show parsable errors in red; stderr and compile failure in dark red
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@800 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-08 10:20:15 +00:00
Enrico Tröger
bf5ae49665
Moved the socket code from main.c to socket.c.
...
Remove an unchanged empty document when loading a new file (closes #1545129 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@798 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-07 15:51:24 +00:00
Enrico Tröger
4a44c1a000
Fixed wrong function call order when removing documents.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@797 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-06 18:26:08 +00:00
Enrico Tröger
557b86dc2b
Fixed a crash when a compiler output reports an error in a blank line.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@796 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-06 17:53:58 +00:00
Enrico Tröger
09d7f30aec
Convert tag names to UTF-8 before showing them in the sidebar.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@794 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-06 17:31:53 +00:00
Enrico Tröger
116728caae
Added own implementation of an Undo stack (not yet working).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@793 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-06 16:09:08 +00:00
Enrico Tröger
5a05227d87
Don't quit when an error occurs while saving changed files.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@792 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-05 18:33:48 +00:00
Enrico Tröger
d7951f66d0
Added new file template for filetype HTML.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@791 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-05 16:55:40 +00:00