Nick Treleaven
9191764491
Make Build Commands dialog show menu item labels as a button (to
...
help show that menu labels don't normally need to be edited &
display the mnemonic correctly). Clicking shows an input dialog to
set a new menu item label.
Split dialogs_show_input() into 2 functions: one simple, one for
a persistent dialog.
Fix possible double-destroy of input dialog when closed by user.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4754 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-12 13:06:34 +00:00
Enrico Tröger
2ec40e1a01
Fix setting the icon for some dialogs if the parent itself is also a dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4731 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-07 17:28:13 +00:00
Enrico Tröger
08f201b118
Fix crashes when using Save As with no open files ( closes #2964406 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4726 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-07 11:08:19 +00:00
Enrico Tröger
7ba4a81181
Update copyright information.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4518 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-01 22:55:18 +00:00
Enrico Tröger
ba94d0ce6f
Rename win32_show_file_dialog() to win32_show_document_open_dialog() as it is specialised for opening documents.
...
Implement win32_show_file_dialog() as a generic file open dialog and use it with ui_path_box_new().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4505 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 21:49:23 +00:00
Enrico Tröger
0be8ea8b8c
Make dialogs_show_prompt() more flexible to take up to three button/response code pairs to be shown.
...
Add a close button to the dialog when asking to Re-Save a deleted file (closes #2916954 , based on a patch by Dominik Stadler, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4495 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 15:37:40 +00:00
Enrico Tröger
d91e7b762b
Add document_need_save_as().
...
Show the Save As also for documents created from filetype templates instead of saving them directly with the untitled filename.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4494 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 15:36:52 +00:00
Nick Treleaven
bc2b6829c5
Make ui_entry_add_clear_icon() take a GtkEntry, not GtkWidget.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4220 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-21 16:46:16 +00:00
Nick Treleaven
dcd66f09a0
Add & use ui_label_set_markup(), ui_label_new_bold().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4219 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-21 16:21:03 +00:00
Nick Treleaven
1986d915cc
Run ./scripts/fix-alignment.pl -w src/*.[hc] plugins/*.[hc] (skipping generated files).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4199 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-16 14:13:38 +00:00
Nick Treleaven
06113d6782
Add 'Allow' button when showing the conflicting keybinding dialog.
...
Make dialogs_show_question_full() use GTK dialog on Windows if
button text is not the stock yes/no items.
Add dialogs_show_prompt() which also has an 'Apply' button.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4188 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-14 17:10:22 +00:00
Nick Treleaven
2bb49a38c8
Support adding custom filetype files e.g. filetype.Foo.conf. (Only
...
tested with empty file so far).
Allow GeanyFiletype::extension to be NULL.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@4070 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-12 11:19:54 +00:00
Enrico Tröger
39a74c5a18
Continue unifying usage of @a and @c markup elements in API docs.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4010 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-21 22:12:13 +00:00
Nick Treleaven
c960a51f13
Fix checking whether to overwrite when using the Rename button in
...
the 'Save As' dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4000 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-20 16:12:23 +00:00
Enrico Tröger
8eef880bb6
Don't use the main window as parent for dialog boxes if it is not yet realised.
...
Set titles for message dialogs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3993 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-19 20:19:09 +00:00
Nick Treleaven
87e8f51e36
Add warning when printing and editor font is not monospaced.
...
Fix using GtkMessageType instead of gint param for
dialogs_show_msgbox*().
Add missing G_GNUC_PRINTF macro check to API dialog funcs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3944 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-09 13:51:37 +00:00
Nick Treleaven
9fb2ff8815
Fix Gtk NULL warning with gtk_file_chooser_set_current_folder().
...
Fix using locale encoding for default Save As dialog path.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3896 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-25 12:39:21 +00:00
Enrico Tröger
d55fa1d975
Don't explicitly change the current directory of the Save As dialog so that it uses the last used directory.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3867 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-16 21:25:04 +00:00
Nick Treleaven
f56cad490e
Remove data_ptr argument to foreach_[s]list() macros, as using
...
node->data is enough sometimes; this makes the macro a bit more
efficient too.
Add foreach_[s]list() macros to the plugin API docs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3862 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-12 15:32:35 +00:00
Enrico Tröger
c27b3a5caa
Fix broken 'Cancel' button in the Save As dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3810 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-21 19:19:12 +00:00
Enrico Tröger
c0505685f2
Don't close the Save As dialog when saving the file didn't succeed.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3797 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-17 17:16:24 +00:00
Enrico Tröger
23fc3ef0d7
Remove unnecessary call to g_intern_string() to fix build with GLib 2.8 ( closes #2790051 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3782 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-05-11 15:57:02 +00:00
Enrico Tröger
f1eb8dc22d
Ellipsize tab labels and some status messages for very long filenames ( closes #2777348 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3718 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-21 20:52:51 +00:00
Enrico Tröger
ec6542fa18
Watch the 'show-hidden' property of the file chooser widget using GObject's "notify" signal which gives accurate results and remove the hack using the "selection-changed" signal.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3714 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-19 18:14:12 +00:00
Enrico Tröger
eab512dced
Hide the extra file open dialog options in an expander to make the dialog more compact by default and to provide more space for the file view.
...
Remove the filename field as it is also provided by GTK itself with more features like auto-completion.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3713 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-19 17:54:09 +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
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
Nick Treleaven
26d27cbd2e
Rename sorted_filetypes filetypes_by_title, and add to GeanyData
...
for plugin API access.
Fix order of filetypes in Save Actions Instant Save configuration
dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3677 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-04-02 15:00:17 +00:00
Nick Treleaven
68928213df
Use g_slist_nth_data() with sorted_filetypes list instead of
...
filetypes_find() as it is neater.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3673 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-31 15:07:27 +00:00
Nick Treleaven
4753e20394
Fix sorting filetype template menu items.
...
Add foreach_slist() macro.
Make sorted_filetypes list public, and include None filetype first.
Rename filetypes_foreach_sorted() to filetypes_foreach_named() to
show it doesn't include the None filetype.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3672 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-31 14:32:03 +00:00
Nick Treleaven
0cd1683ca6
Sort open dialog filetypes in combo boxes by title.
...
Add filetypes_foreach_sorted(), filetypes_find().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3658 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-27 14:06:11 +00:00
Nick Treleaven
2cc65983d2
Fix setting Open dialog filetype on opening a file.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3641 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-20 16:33:59 +00:00
Nick Treleaven
5ddc129829
Make GEANY_FILETYPES_NONE = 0; other things are now broken, e.g.
...
setting Open dialog filetypes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/reorder-filetypes@3640 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-20 16:18:32 +00:00
Enrico Tröger
efdae222c8
Set the initial directory for the Save As dialog only once on initialisation.
...
Add a shortcut of the project's base directory to the File Open/Save As dialogs when a project is open for faster access.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3636 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-03-19 17:50:23 +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
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
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
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
ec987c83cf
Improve the API docs for dialogs_show_input() a little bit.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3499 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-21 23:19:25 +00:00
Enrico Tröger
836fa1dca0
Add dialogs_show_input_numeric() to the plugins API.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3497 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-21 22:49:47 +00:00
Enrico Tröger
de3d3b42fb
Add document_save_file_as and document_rename_file to the plugin API.
...
If GIO is available, use GFileMonitor to watch for file disk changes and indicate them immediately using an orange tab label colour.
Break plugin ABI for this and the last commits.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3484 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-18 18:19:58 +00:00
Enrico Tröger
ffebb43c8e
Remove tooltips from menu items.
...
Don't use full stops in tooltips for short sentences.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3470 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-01-15 19:15:41 +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
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
Enrico Tröger
120e758840
When allowing non-local locations in the File Open dialog, we should do this in the File Save dialog as well.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3396 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-12-17 16:28:36 +00:00
Enrico Tröger
81ffd05aa1
dd ui_widget_set_tooltip_text() as a convenience function to easily set tooltips for widgets. It uses gtk_widget_set_tooltip_text() on GTK >= 2.12 otherwise the old tooltips API.Use ui_widget_set_tooltip_text().
...
Use ui_widget_set_tooltip_text() in the plugins.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3250 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-18 20:14:42 +00:00
Enrico Tröger
af7aa43872
Allow showing remote locations in the file open dialog with GTK >= 2.14 since it works with Gvfs/FUSE mounts, too.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3187 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-11-07 14:38:13 +00:00
Enrico Tröger
c946d4ef91
Replace Goto line text entry field in the toolbar with a spin button.
...
Remove dialogs_show_goto_line(), use the more generic dialogs_show_input_numeric() instead.
Increase limit of the maximum line number from 99999 to 100000000.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3146 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-23 20:55:06 +00:00
Enrico Tröger
6bc86c4462
Replace gtk_widget_(un)ref() with g_object(un)ref(), patch by Colomban Wendling, thanks.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3143 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-22 15:36:45 +00:00
Nick Treleaven
c64f034284
Refactor dialogs_show_unsaved_file() with run_unsaved_dialog().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3078 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-10-13 16:00:53 +00:00