Nick Treleaven
af369cf776
Fix memory leak when using utils_scan_unicode_bom().
...
Prevent invalid memory read in utils_scan_unicode_bom() when text
length is < 4.
Move utils_scan_unicode_bom(), utils_is_unicode_charset() to
encodings.c.
Read the BOM length in handle_bom().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1167 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-07 16:22:41 +00:00
Nick Treleaven
f415b70a2f
Always switch to the tab when showing the unsaved file dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1117 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-18 12:34:29 +00:00
Enrico Tröger
659ed0f3f3
Added more spaces in word count dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1086 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-12 21:22:50 +00:00
Enrico Tröger
871d166375
Use a table to layout the word count dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1079 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-10 22:21:15 +00:00
Nick Treleaven
0a90306c8f
Use ui_button_new_with_image() in dialogs_show_unsaved_file().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1070 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-08 16:21:52 +00:00
Enrico Tröger
019859b55b
Revert the last change to utils_str_equal() and use it again because g_str_equal() is not NULL-safe.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1060 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-07 16:12:01 +00:00
Nick Treleaven
e458304ce3
Make all filetypes except LaTeX use the same build menu, disabling
...
any items that don't apply for the current document.
Move BuildMenuItems struct type to build.h.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1038 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-30 15:42:52 +00:00
Nick Treleaven
373ec102e4
Add frame for VTE Preferences tab, update packing.
...
Replace ui_frame_new() with ui_frame_new_with_alignment().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1026 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-24 11:11:06 +00:00
Enrico Tröger
829f0e3696
Don't set width of file open dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@975 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-07 23:32:30 +00:00
Nick Treleaven
20637b939b
Don't close any tabs when quitting until all unsaved changes have
...
been accounted for; switch to each unsaved file before showing the
unsaved dialog.
Remove limit of ~256 chars for session filenames.
Make dialogs_show_unsaved_file() fail if the Save As dialog was
cancelled.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@972 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-07 11:24:22 +00:00
Enrico Tröger
a70b1ea728
Run set includes build dialogs for LaTeX files modally, too.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@961 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-02 23:22:34 +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
413f31f373
Removed unneeded macro GEANY_MAX_TAGS_COUNT.
...
Moved macro GEANY_USE_WIN32_DIALOG to geany.h.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@929 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-24 23:50:50 +00:00
Enrico Tröger
a8925aa73a
Use GTK's file open dialog also under Windows to have the extended options.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@927 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-24 18:21:16 +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
06e8521a82
Use Untitled string for unsaved dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@908 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-20 16:40:12 +00:00
Nick Treleaven
df64d0a535
Added 6pt border, changed padding for all dialogs in dialogs.c;
...
also allow ESC to close cancellable dialogs.
Updated unsaved, LaTeX Set Arguments dialogs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@906 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-19 16:26:29 +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
76f60f7a03
Made string "Permissions" in the file property dialog translatable.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@874 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-09 13:50:23 +00:00
Enrico Tröger
6af166578d
Fixed compiler warnings and removed unnecessary signal handler.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@822 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-18 08:19:40 +00:00
Nick Treleaven
b89abc8586
Add ui_frame_new().
...
Run set includes build dialogs modally, keeping the same filetype.
Updated set includes & arguments dialog layout.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@817 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-15 14:25:42 +00:00
Enrico Tröger
8dede470b1
Made socket code for detecting running instances working under Windows.
...
Fixed compile warnings under Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@810 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-11 07:41:37 +00:00
Nick Treleaven
6c511f413d
Move on_recent_file_activate, dialogs_create_recent_menu,
...
dialogs_create_build_menu_gen, dialogs_create_build_menu_tex to
ui_utils.c. Also make some functions static.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@807 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-09 14:36:15 +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
6ad79f7610
Fixed some typos.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@778 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-01 15:48:56 +00:00
Nick Treleaven
0bd427bd05
Remove filetypes.h and Scintilla includes from geany.h; Add VALID_DOC_IDX macro
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@751 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-20 20:39:59 +00:00
Enrico Tröger
312579d70a
Added menu items to insert configurable date/time strings.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@744 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-19 12:56:30 +00:00
Nick Treleaven
e3c7a60b17
Add dialogs_show_question_full for custom buttons and extra text; Don't show message dialogs in the window manager taskbar
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@736 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-18 17:22:57 +00:00
Nick Treleaven
6275b82cb3
Change Don't save button icon and add mnemonic
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@734 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-18 11:46:35 +00:00
Enrico Tröger
0dcbacec1f
Use utf8/locale encoding wrappers.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@711 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-13 09:07:10 +00:00
Nick Treleaven
7c4f9843ed
Auto destroy the open dialog size group
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@701 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-12 12:49:22 +00:00
Nick Treleaven
f75fd1402a
Group search related code
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@698 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-11 21:12:49 +00:00
Nick Treleaven
7d8637f549
Fixed all sign comparison warnings
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@684 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-08 13:01:50 +00:00
Nick Treleaven
4f7860b1a2
Disable word and word start matching when regexes are enabled; Don't hide the Find dialog after searching; use Close button.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@669 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-04 12:21:41 +00:00
Enrico Tröger
53d91a4c55
Fixed wrong behaviour of Save As on unchanged files.
...
Don't set file as changed when changing encoding to the same one.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@663 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-02 10:50:53 +00:00
Enrico Tröger
85af83f6ae
Added some options to the Find in files dialog, made search directory editable.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@647 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-28 18:37:32 +00:00
Enrico Tröger
d561c70125
Let the colour chooser pick the colour under the cursor(Win32 code). Added some sanity checks.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@643 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-27 23:17:31 +00:00
Enrico Tröger
31c17438cb
Removed unused colour parsing functions.
...
Let the colour chooser pick the colour under the cursor.
Fixed bug in parsing strings containing hex values, modified the styles to keep the syntax highlighting consistent.
Removed startup warning.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@641 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-27 20:57:13 +00:00
Enrico Tröger
4e122c97b7
Removed macro GEANY_WIN32, use G_OS_WIN32 instead.
...
Introduced global variables for PACKAGE_DATA_DIR and PACKAGE_LOCALE_DIR, removed macro DOCDIR (these changes are important for the Windows port).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@639 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-26 17:02:16 +00:00
Enrico Tröger
902379738b
Removed some unneeded functions to avoid duplicate code.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@629 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-25 12:46:08 +00:00
Enrico Tröger
d05945cfa1
Convert Unicode strings to wide characters to avoid weird display.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@623 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-25 00:09:28 +00:00
Nick Treleaven
6bebea40d4
Wait for Save as dialog to run before closing tab
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@621 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-24 21:18:06 +00:00
Enrico Tröger
ab05f39d24
Renamed document element unicode_bom in has_bom.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@611 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-23 15:45:05 +00:00
Nick Treleaven
e389341f6c
Make Find and Replace dialogs more compact
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@607 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-22 19:11:58 +00:00
Enrico Tröger
4ec2bd121b
Added Unicode BOM detection.
...
Added "Reload as" menu item to force opening a file with a specified encoding(both were patches from Stefan Oltmanns).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@600 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-22 01:29:10 +00:00
Nick Treleaven
b625529c8b
Prevent using Find in files for unnamed files
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@599 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-21 19:35:33 +00:00
Nick Treleaven
96a4a059df
Added Find button to Replace dialog to skip a match; Change Replace button to find first & use current selection; Ask whether to wraparound when replacing and no next match is found
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@597 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-20 21:19:18 +00:00
Nick Treleaven
c417607f27
Share find/replace common checkbox setup code
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@591 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-20 14:52:26 +00:00