Colomban Wendling
98b82550a8
Plug a few possible small memory leaks
2013-12-05 21:39:59 +01:00
Nick Treleaven
0998f1c19c
Make code more readable by renaming poorly named macros NZV and NVL
...
Closes #159
2013-08-14 21:54:20 -07:00
Colomban Wendling
1f244e0d54
Set the primary-toolbar CSS class on the main toolbar under GTK3
...
This makes the main toolbar look like other GTK3 application ones.
2012-10-09 13:25:12 +02:00
Colomban Wendling
8b181f7c79
Don't access GtkSelectionData fields directly
2012-09-13 16:34:18 +02:00
Colomban Wendling
d80bc7ce56
Update FSF address
...
Closes #3557875 .
2012-08-24 19:25:57 +02:00
Colomban Wendling
1c2c455b1d
Update copyright information
2012-06-18 01:15:04 +02:00
Nick Treleaven
9426104f0b
Remove utils_build_path() - use g_build_filename instead
2012-02-06 16:41:18 +00:00
Nick Treleaven
b287553e4a
Use 'SETPTR' instead of 'setptr'
...
This makes it clearer we're using a macro.
2012-01-25 16:26:16 +00:00
Matthew Brush
8f489fc9fb
Use static to avoid clashing with plugins' symbols
2012-01-03 08:54:12 -08:00
Colomban Wendling
0aea05d10d
Fix various integer signedness and minor styling issues
...
Most noteworthy change is that all build commands IDs and groups are
now unsigned everywhere negative values aren't explicitly handled with
a special meaning. This should not change anything in behavior, only
makes clear the index won't underflow.
2011-12-18 00:32:22 +01:00
Enrico Tröger
ed1c5060e1
Rename Search and Goto text fields action names
...
This should avoid confusion in the toolbar customize dialog to not have
two identical named items.
2011-11-13 13:24:47 +01:00
Joshua Hoff
cbadf177f4
simplify "append toolbar to menu" packing code
2011-10-12 18:09:59 +02:00
Matthew Brush
bd5fba7eb5
Remove extra whitespace at end of lines in all source files.
...
* Processed with rstrip-whitespace.py script added to scripts/ directory.
* Script run on all .c and .h files in src/ and plugins/ directories.
* Also remove more than one newline at the end of files.
2011-10-11 21:52:58 -07:00
Colomban Wendling
d06e9f4575
Remove $Id$ and $Date$ SVN keywords
2011-10-09 22:57:35 +02:00
Nick Treleaven
8a817e694b
Make utils_build_path() return a copy for safety.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5721 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-13 12:59:20 +00:00
Nick Treleaven
c3e5bd956c
Use mimetype icon in File Properties dialog.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5669 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-01 11:56:09 +00:00
Colomban Wendling
7698bf60a7
Improve usage of G_(UN)?LIKELY()
...
G_(UN)?LIKELY() should be only used on whole conditional expressions,
and only if the branching is very highly predictable, not if it is only
more probable.
These macros should be used with care because a wrong prediction may
be a lot worst than what a good prediction can give.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5625 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-24 22:00:18 +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
Colomban Wendling
6f481c8086
Correctly expand the menubar if the toolbar is appended to it but not visible ( closes #3204955 )
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5585 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-10 16:05:29 +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
Enrico Tröger
8ed86bb881
Fix crash when the toolbar is reloaded without any open documents.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4941 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-22 19:39:03 +00:00
Enrico Tröger
cd246927ff
Explicitly disconnect menus from GeanyMenuButtonAction on quit to not trigger updating the menus on each item removal.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4917 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-15 13:14:38 +00:00
Enrico Tröger
3e78659f47
Improve adding/removing of the special separator between menubar and toolbar when the toolbar is appended to the menubar.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4916 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-15 12:56:42 +00:00
Enrico Tröger
10bdf624db
Instantly update the toolbar icon size and style when the corresponding global GTK settings are changed.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4819 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-11 21:56:34 +00:00
Enrico Tröger
fef3ee8fc5
Shorten the toolbar popup menu, only provide items for Toolbar Preferences and to Hide the toolbar.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4818 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-11 21:56:23 +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
Nick Treleaven
39a6d76e2a
Improve API docs contents page by listing all commonly-used files.
...
Fix 'Date' appearing twice on the date line.
Don't generate API docs for prefs.h, toolbar.h (unused).
Move some '@file' doc-comments to the .c file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4772 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-18 13:13:11 +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
baccf0391e
Set the correct parent window for the toolbar editor dialog ( closes #2913334 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4503 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-20 20:49:28 +00:00
Enrico Tröger
add6d45da2
Use separate tooltips for toolbar menu buttons and their attached drop-down arrows.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4436 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-22 18:25:09 +00:00
Nick Treleaven
aa18efe5be
Add missing dox for types/files in the API.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4365 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-26 12:58:52 +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
86a168fb9f
Change utils_str_remove_chars() to work in place; fix allocating on
...
the stack (the string length could exhaust the stack size).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4012 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-23 11:00:32 +00:00
Enrico Tröger
f217a608ba
Show/hide the toolbar without a restart when the setting in the preferences dialog is changed ( closes #2824785 ).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4009 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-21 22:10:42 +00:00
Enrico Tröger
c82273cd9d
Remove underscores from the toolbar items labels.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4004 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-20 23:11:23 +00:00
Enrico Tröger
eaa0592bb3
Speed up toolbar editor dialog creation.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3990 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-18 14:45:30 +00:00
Enrico Tröger
7d460fdff1
Show icons in the toolbar editor.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3989 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-18 14:45:18 +00:00
Enrico Tröger
5973135813
Apply changes in the toolbar editor instantly.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3988 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-18 14:45:05 +00:00
Enrico Tröger
6c16035450
Display item labels instead of raw names in the toolbar editor.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3987 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-18 14:44:51 +00:00
Nick Treleaven
840edd12b5
Fix typo.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3924 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-07 12:21:18 +00:00
Enrico Tröger
b1feed431e
Fix toolbar editor dialog title.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3917 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-04 09:31:02 +00:00
Enrico Tröger
cd775eaae5
Remove dead code.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3916 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-04 09:23:26 +00:00
Enrico Tröger
a87d5b9794
Fix warnings and possible crashes in the toolbar editor when the list of displayed toolbar items is empty.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3915 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-04 09:22:49 +00:00
Enrico Tröger
1ae19dfaa2
Properly close the toolbar editor on delete-events.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3914 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-07-04 09:22:24 +00:00
Enrico Tröger
9dd2ef8c8c
Add missing header include.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3901 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-28 10:42:46 +00:00
Enrico Tröger
060fc00929
Remove ui_toolbar.xml Configuration Files menu item.
...
Add a real toolbar editor dialog.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3898 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-25 17:21:45 +00:00
Enrico Tröger
e44071db10
Add 'Build' toolbar button to the default layout.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3895 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-24 18:42:28 +00:00
Enrico Tröger
8b5b6287e1
Instantly reload (i.e. rebuild) the toolbar when ui_toolbar.xml is saved within Geany.
...
Refactor some related code.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3874 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-20 16:51:32 +00:00
Nick Treleaven
e719cecd24
Set status bar text instead of showing a dialog when saving
...
ui_toolbar.xml because the user might save several times.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3840 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-06-05 15:45:44 +00:00