Nick Treleaven
4c633741c8
Use app->datadir instead of GEANY_DATADIR
...
The latter doesn't work on Windows.
2011-10-14 13:23:45 +01:00
Nick Treleaven
eb6f740aff
Fix uninitialized access error
2011-10-14 13:00:01 +01:00
Matthew Brush
6086749e51
Cleanup comments in ui_utils.c/h.
2011-10-10 15:20:55 -07:00
Matthew Brush
af093c2ddf
Remove interface.c/h files and put code into ui_utils.c/h.
2011-10-10 15:20:15 -07:00
Matthew Brush
fb4f21613b
Document that the widget param for ui_lookup_widget() is no longer.
...
Cast it to void to avoid warnings and tell other programmers.
2011-10-10 13:56:43 -07:00
Matthew Brush
cfedadae27
Remove lingering Glade 2 create_*() functions.
...
Add interface.h includes in prefs.c, project.c, stash.c and ui_utils.c.
2011-10-10 13:56:37 -07:00
Matthew Brush
7c9430884f
Cleanup code, comments and refactor a bit.
2011-10-10 13:17:55 -07:00
Matthew Brush
c39ad3e29d
Update ui_lookup_widget() and ui_hookup_widget() to use new interface.c/h code.
2011-10-10 13:15:23 -07:00
Colomban Wendling
d06e9f4575
Remove $Id$ and $Date$ SVN keywords
2011-10-09 22:57:35 +02:00
Nick Treleaven
1afb825ec8
Add configuration_add_various_pref_group().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5944 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-22 11:52:58 +00:00
Colomban Wendling
8b92d08908
Fix document sensitivity of a few menu items
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5925 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-16 21:44:11 +00:00
Colomban Wendling
64d632ba29
Fix check for enabling MIME type based icons
...
gtk_icon_theme_lookup_by_gicon() requires GTK >= 2.14, and since
GTK 2.14 requires the GIcon API, drop the GLib check.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5907 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-09-02 21:45:02 +00:00
Colomban Wendling
24583dc507
Focus the editor upon double click on the message and compiler windows
...
Also improve the code a bit by using a boolean to know whether to focus
the editor rather than always pass the key value and check it against
enter-or-return in the callee side.
Patch by Dimitar Zhekov, thanks!
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5887 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-13 20:44:39 +00:00
Colomban Wendling
ddb4ad5fa5
Fix some whitespace style errors
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5886 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-06 18:34:14 +00:00
Colomban Wendling
44e5687e0b
Allow editing of formerly hidden preferences in the preferences dialog
...
Patch by Dimitar Zhekov, thanks! (closes P#3313315)
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5871 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-07-28 17:59:22 +00:00
Colomban Wendling
9fa8cd8bf9
Fix a few GCC warnings
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5856 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-17 22:52:43 +00:00
Colomban Wendling
e9e3f6a8ab
Remove most of the checks for GIO
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5852 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-17 22:51:17 +00:00
Colomban Wendling
5d606ce351
Deprecate ui_widget_set_tooltip_text() in favor of gtk_widget_set_tooltip_text()
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5840 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-13 18:41:50 +00:00
Enrico Tröger
5141f14007
Add ui_focus_current_document() and document_grab_focus().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5828 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-02 21:15:37 +00:00
Enrico Tröger
243ddcb671
Do not allow 'Save All' even if 'allow_always_save' is set (patch by Dimitar Zhekov, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5815 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-22 10:32:31 +00:00
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