73 Commits

Author SHA1 Message Date
Paul Menzel
b10b2a7167 Use HTTPS URL for domain www.geany.org
Replace all occurrences with the command below.

    git grep -l 'http://www.geany.org' | xargs sed -i 's,http://www.geany.org,https://www.geany.org,g'
2018-04-23 17:11:37 +02:00
Colomban Wendling
65988f51f0 style: Reduce scope of several variables
No behavioral changes.
2016-06-25 16:15:08 +02:00
Jiří Techet
1a36eeaf4d Use consistent shadows across Geany
In principle, any scrolled window should have GTK_SHADOW_IN so the scrollbars
are not above the surface and there is a frame around the scrolled area.

The only exception are the elements of the main window where adding
GTK_SHADOW_IN causes there are too many shadows (or lines in 2D themes)
around the windows and the result isn't nice. So use GTK_SHADOW_NONE
for all main editor scrolled windows. (One additional exception is the
Help->Credits page which is gray and the extra frame doesn't look good.)

Replace frame around VTE with GtkViewport to avoid the extra line around.

Raise the second editor from the splitwindow plugin so it's at the same
level as the main editor.
2015-03-22 15:32:54 +01:00
Colomban Wendling
a398b087da Remove redundant toolbar-specific callbacks 2014-06-24 18:04:11 +02:00
Matthew Brush
4efcbab332 Include what you use
This is a mega-commit - because most of it had to be done in one go
otherwise some commits would fail to compile - that attempts to fix a
few problems with Geany's includes as well as various other related
cleanups. After this change it's easier to use includes and there's
little worry about which order things are included in or who includes
what.

Overview of changes:

* Include config.h at the start of each source file if HAVE_CONFIG_H
  is defined (and never in headers).
* Go through each source file and make the includes section generally
  like this:
  - Always config.h first as above
  - Then if the file has a header with the same name, include that
  - Then include in alphabetical order each other internal/geany header.
  - Then include standard headers
  - Then include non-standard system headers
  - Then include GLib/GTK+ related stuff
* Doing as above makes it easier to find implicit header include
  dependencies and it exposed quite a few weird problems with includes
  or forward declarations, fix those.
* Make geany.h contain not much besides some defines.
  - Add a little header file "app.h" for GeanyApp and move it there
  - Move "app" global to new "app.h" file
  - Move "ignore_callback" global to "callbacks.h"
  - Move "geany_object" global to "geanyobject.h"
* Add an include in "geany.h" for "app.h" since GeanyApp used to be
  defined there and some plugins included this header to access
  GeanyApp.
* Include "gtkcompat.h" everywhere instead of gtk/gtk.h so that
  everywhere sees the same definitions (not a problem in practice AFAIK
  so this could be changed back if better that way.
* Remove forward declarations from previous commits as some people
  apparently consider this bad style, despite that it reduces inter-
  header dependencies.

TODO:
* As always, to test on win32
* As always, to test with not Autotools
* Test plugins better, both builtin and geany-plugins, likely API/ABI bump
* Test with various defines/flags that may change what is included
* win32.[ch] not really touched since I couldn't test
2014-05-21 15:37:19 -07:00
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