258 Commits

Author SHA1 Message Date
Enrico Tröger
b8f8a36815 Use document_compare_by_tab_order() as default compare function to sort the document list in the document notebook tab menu, this fixes the currently broken default ordering.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5728 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-17 13:41:54 +00:00
Nick Treleaven
0fc97a1177 Remove check for documents[i]->is_valid as foreach_document(i) already does this (oops).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5720 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-13 12:22:30 +00:00
Enrico Tröger
0ddc794ce0 fix function signature (oops)
replace sort_func by compare_func

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5716 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-12 17:43:00 +00:00
Nick Treleaven
01a04f72bf Remove unnecessary GEANY() macro usage.
Avoid using DOC_VALID() macro.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5712 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-11 16:29:01 +00:00
Enrico Tröger
66c8b7faee Add ui_menu_add_document_items_sorted() and document_sort_by_display_name() to the plugin API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5705 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-10 17:03:41 +00:00
Colomban Wendling
15937490ec Make a few variable holding strings constant
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5622 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-24 16:52:34 +00:00
Colomban Wendling
4ac3ccbd37 Make Shift-Enter in search dialog and toolbar search entries search backwards
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5621 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-24 16:51:02 +00:00
Enrico Tröger
6ac2623208 Update copyright information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5528 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-19 19:39:09 +00:00
Nick Treleaven
4d4bf2f347 Add Save As toolbar button option (patch by Matthew Brush, thanks;
#3153490).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5518 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-10 13:35:29 +00:00
Nick Treleaven
3a5317d746 Remove duplicates in 'Insert Comments' editor popup menu; rename
submenu 'More'.
Separate main menu insertion comments depending on number of times
used in a document.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5383 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-08 13:13:33 +00:00
Nick Treleaven
3b7c8cdeb0 Restore top-level editor popup item 'Find Document Usage'.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5382 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-08 12:35:50 +00:00
Enrico Tröger
227eefdc13 Use non-GIO mime-type icon lookup if GIO lookup fails.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5374 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-07 15:24:26 +00:00
Nick Treleaven
f346f985df Add filetypes_get_display_name() to get translations for filetype
None.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5366 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-04 18:06:09 +00:00
Nick Treleaven
d39ae0de1c Don't allow pasting of numbers followed by other characters in the
Go to Line dialog/field (patch by Dimitar Zhekov, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5359 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-02 17:15:22 +00:00
Nick Treleaven
3b90c93953 Fix notebook tab menu icons using theme for "text/plain" filetypes.
Make filetype mime_type "text/plain" instead of NULL.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5334 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-27 14:20:18 +00:00
Nick Treleaven
2ab1bb9387 Avoid calling gtk_icon_size_lookup() twice unnecessarily.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5333 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-26 18:11:23 +00:00
Nick Treleaven
d32a7e4619 Add notebook tab document icons (based on patch by Colomban
Wendling, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5331 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-26 17:30:16 +00:00
Nick Treleaven
e0702ea2b2 Add filetype mimetype field (patch by Colomban Wendling, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5329 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-26 16:02:30 +00:00
Nick Treleaven
2473ab6862 Revert X11 workspace socket support as it needs more work; moved
to workspace-sockets branch.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5292 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-07 14:10:32 +00:00
Nick Treleaven
95c4f6046e Link with X11 if found to fix linking with a recent GNU ld.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5264 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-30 14:14:54 +00:00
Nick Treleaven
3fe15d0ebb Add hidden pref new_document_after_close for whether to open a new
document automatically, off by default.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5257 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-23 16:24:43 +00:00
Nick Treleaven
459cf4c219 Group editor popup Insert commands in a submenu, with extra items
for the most commonly used Insert Comments commands.
Show Edit->Commands before Format in menubar Edit menu (to match
keybindings order).
Show Open Selected F_ile popup item below submenus.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5250 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-21 17:48:42 +00:00
Nick Treleaven
0e008612c4 Add Search submenu for Find Selected, Find Usage, Go to Tag items,
shared with the editor popup menu.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5243 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-20 12:06:04 +00:00
Nick Treleaven
d6cc831da5 Use string for GeanySharedMenu::menu.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5242 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-20 11:52:07 +00:00
Nick Treleaven
cc016bf258 Refactor shared submenu code with GeanySharedMenu array.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5241 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-20 11:36:50 +00:00
Nick Treleaven
4c3ab61c3f Use a separate socket per workspace on X (patch by Erik de Castro
Lopo, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5232 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-15 17:04:23 +00:00
Nick Treleaven
e664c8344f Allow per-document indent width setting (patch by Jiří Techet,
updated by Erik de Castro Lopo - thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5228 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-14 15:01:29 +00:00
Nick Treleaven
d7f7ff0678 Remove 3 popup menu items to save space:
Find Document Usage because Find Usage can be used instead.
Go to Tag Declaration because Go to Tag Definition is more common.
Go to Line because the toolbar item can be used instead.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5223 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-13 14:39:32 +00:00
Nick Treleaven
1fc8a5bc19 Add Find Usage and Go to Tag items to Search menu for easier
discovery.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5211 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-09 11:58:55 +00:00
Nick Treleaven
4da9f9dbc4 Remove return value for ui_label_set_markup() as it probably shouldn't be used for macros.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5155 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-08-12 17:21:24 +00:00
Nick Treleaven
689ad7e83e Move some interface hidden prefs to ui_utils.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5122 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-08-10 12:49:16 +00:00
Enrico Tröger
af8f5fc921 Make ui_label_new_bold() a function.
Escape the name of the current document for markup when using
document name for menu items (closes #3038844).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5116 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-08-05 21:13:47 +00:00
Nick Treleaven
ae4d82b7f1 Use Stash to save statusbar_template setting, instead of the
load/save-settings signal.
Add ui_init_prefs().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5101 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-07-09 17:15:16 +00:00
Nick Treleaven
2b771854ae Add ui_finalize(), free string (patch by Dimitar Zhekov, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5097 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-07-08 16:59:11 +00:00
Nick Treleaven
d05db879d1 Fix writing empty hidden pref "statusbar_template" key so users can
find it (patch by Dimitar Zhekov, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5096 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-07-08 11:35:32 +00:00
Nick Treleaven
8358177099 Fix only adding project base path to Find in Files history if it
isn't already there (oops).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5083 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-07-02 12:19:00 +00:00
Nick Treleaven
b20537db3d Add spaces after RO when using %r in statusbar_template setting.
Add space between encoding and BOM.
Note \t means tab for default text.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5070 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-29 15:44:41 +00:00
Nick Treleaven
e80e88646a Add statusbar_template hidden pref (based on patch by Dimitar
Zhekov, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5069 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-29 12:11:21 +00:00
Nick Treleaven
4476a79127 Use ui_hookup_widget() instead of g_object_set_data_full() for
widgets.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5063 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-23 16:57:28 +00:00
Nick Treleaven
c41b55d692 Add ui_combo_box_add_to_history() to API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5048 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-18 12:20:15 +00:00
Nick Treleaven
9362e7d3cb Remove any duplicate on adding to combo box histories.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5044 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-17 17:28:28 +00:00
Nick Treleaven
0331c0e650 Display 'new instance' on title bar (patch by Eugene Arshinov,
thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5031 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-17 12:35:17 +00:00
Enrico Tröger
58359a6d18 Add Print and Replace toolbar items to the list of document sensitive widgets.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4942 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-22 19:39:14 +00:00
Enrico Tröger
dfa5f18e8c Add missing header include
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4895 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-10 17:21:13 +00:00
Enrico Tröger
658b552f42 Add public, generic callback ui_editable_insert_text_callback() to restrict GtkEntry text inputs to +/- and numeric values only.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4892 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-09 15:48:29 +00:00
Enrico Tröger
8c963d2829 Make string arguments const where appropriate (patch by Colomban Wendling, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4862 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-25 17:43:39 +00:00
Enrico Tröger
2f63860908 Replace g_vsnprintf() by g_strdup_vprintf() to avoid truncated strings in case of reaching the buffer size limit (part of #2979697).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4855 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-25 17:42:01 +00:00
Enrico Tröger
e28ca32274 Add option 'System Default' for toolbar icon style and size to use the GTK default value.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4817 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-11 21:56:08 +00:00
Enrico Tröger
0fd6e75f4a For now revert the recent patch which set real_path of newly open non-existent configuration files as this seems hackish and causes 'file not found' warnings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4762 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-15 14:05:42 +00:00
Nick Treleaven
138cbaa02f Use 3rd person (gets not get) for API function brief descriptions.
Avoid using 'convenience function' in API brief descriptions.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4757 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-12 18:15:48 +00:00