572 Commits

Author SHA1 Message Date
Frank Lanitz
8f9f73e0ef Adding comment (postgres) as a SQL-keyword. 2013-05-22 09:15:40 +02:00
Colomban Wendling
4bac3717ea Update for new Scintilla styles 2013-05-22 03:38:21 +02:00
Colomban Wendling
72c809f633 Use Glade to create the File Properties dialog 2013-05-20 04:12:44 +02:00
Colomban Wendling
9652a34ef0 Add ellipsis to menu items requiring further user input
This is a very common paradigm used by GNOME, KDE, MacOSX, Windows,
etc., and following it makes our UI more consistent with these and
easier to use by their users.

https://developer.gnome.org/hig-book/stable/menus-design.html.en#menu-item-type-command

Closes #3613494.
2013-05-19 23:15:38 +02:00
Frank Lanitz
9ebc082cfc Adding owner and serial to list of keywords for SQL 2013-05-17 10:25:13 +02:00
Colomban Wendling
cd390c0d48 Fix some widgets packing issues under GTK3 in the preference dialog 2013-05-15 18:25:08 +02:00
Frank Lanitz
a025b7c63f SQL: Adding elsif and raise to list of keywords 2013-05-07 16:29:41 +02:00
Frank Lanitz
854eccf16d Merge pull request #127 from duncannz/master
Added some missing SQL keywords
2013-05-02 05:20:24 -07:00
Colomban Wendling
bb58d7cba4 Python: remove duplicate keywords
Remove False, None and True from "identifiers" since they already are
in "primary".
2013-04-27 18:57:42 +02:00
Colomban Wendling
564ef98f9c Update for new Scintilla styles 2013-04-27 18:30:17 +02:00
Matthew Brush
1ee35c68cd Flatten-out the View menu
Rationale:
----------
* Existing View menu already contained Editor-related options
  like "Change Font" and Zoom controls, so it makes sense to
  group all of the View-related items together.
* Anecdotally, some users have been unable to easily discover
  the Color Schemes changer dialog because it was nested under
  a submenu.
* Distinction between "Editor" (Scintilla) and "Editor" (All
  of Geany) is likely non-obvious to most users, especially
  new users exploring the menus.
* There's not very many items to cause scrolling on low-res
  monitors, and the View menu still has less items than the
  Document menu.
2013-04-26 16:13:46 -07:00
Enrico Tröger
0d6101f0ca Merge pull request #133 from gentoo90/waf
Update waf to version 1.7.10 and fix wscript to fit new API
2013-04-24 12:45:19 -07:00
Frank Lanitz
377f75f291 Adding *.aux and *.bib as default (La)TeX file types 2013-04-16 13:06:08 +02:00
Igor Shaula
666f471c78 Update waf to version 1.7.10 and fix wscript to fit new API 2013-04-14 15:02:36 +03:00
Duncan de Wet
223b2507f2 Added some more SQL keywords 2013-03-29 18:38:33 +13:00
Colomban Wendling
0191659663 Fix swapped tooltips between "run in VTE"/"skip run script" 2013-03-24 15:38:30 +01:00
Igor Shaula
68f3a9fe5a Filetypes: Add some Ruby file extensions 2013-03-19 15:07:43 +01:00
Christian Dywan
1db4cd90df Drop obsolete 'has_separator' property from the interface definitions 2013-03-17 17:17:09 +01:00
Colomban Wendling
232290aad4 Fix our custom styles under KDE and for people using gtk-chtheme
We have a custom RC file defining various styles we need, and we want
the user to be able to override them (e.g. if they want -- or need --
other colors).  Fair enough, one would simply call gtk_rc_parse() with
the appropriate filename.  However, the styling rules applies in the
order they are loaded, then if we load our styles after GTK has loaded
the user's ones we'd override them.

There are 2 solutions to fix this:
1) set our styles' priority to something with lower than "user"
   (actually "theme" priority because rules precedence are first
   calculated depending on the priority no matter of how precise the
   rules is, so we need to override the theme).
2) prepend our custom style to GTK's list while keeping priority to
   user (which is the default), so it gets loaded before real user's
   ones and so gets overridden by them.

One would normally go for 1 because it's ways simpler and requires less
code: you just have to add the priorities to your styles, which is a
matter of adding a few ":theme" in the RC file.  However, KDE being a
bitch it doesn't set the gtk-theme-name but rather directly includes
the style to use in a user gtkrc file, which makes the theme have
"user" priority, hence overriding our styles.  So, we cannot set
priorities in the RC file if we want to support running under KDE,
which pretty much leave us with no choice but to go with solution 2,
which unfortunately requires writing ugly code since GTK don't have a
gtk_rc_prepend_default_file() function.  Thank you very much KDE.

Though, as a side benefit it also makes the code work with people using
gtk-chtheme, which also found it funny to include the theme in the user
RC file.
2013-03-16 16:19:20 +01:00
Nick Treleaven
0cf495a6db Add Rust filetype
(See also: rust-lang.org)
2013-03-16 14:14:41 +00:00
Colomban Wendling
35cc441b74 Merge branch 'gtk3-support'
Conflicts:
	src/ui_utils.c
2013-03-10 17:20:25 +01:00
tomboy64
51c541faa2 Add support for the Go programming language
- syntax highlighting
- support for the go compiler (as opposed to gccgo)
2013-03-10 06:10:26 -07:00
Colomban Wendling
771934ae29 Don't translate program name directive in Pascal file template
Pascal code only accepts an identifier in the program name directive,
but {untitled} wildcard gets replaced with a translated string that may
not be a valid Pascal identifier.  Moreover, the directive being part
of the source of the program it's good practice for it to be in English
anyway.

Closes #3602314.
2013-03-08 18:32:47 +01:00
Max Musatov
9d88bd2463 Update the main.d template to use a more standard prototype for main() 2013-02-22 15:07:50 +01:00
Lex
7d6ad6d50f Merge branch 'master' of https://github.com/geany/geany 2013-02-21 13:05:54 +11:00
Lex
5df79bc135 Adjust Terminal tooltip in preferences
Adjust to say it is a full command and that %c is substituted by
the geany_run_script path.
2013-02-21 12:42:30 +11:00
Colomban Wendling
dba93f3854 Allow Quit keybinding to be configured
This removes the last unmodifiable keybinding relying on GTK's
defaults, and allows somebody to change this keybinding.
2013-02-21 01:31:38 +01:00
Colomban Wendling
a0dc8af9c4 Fix GTK default keybindings being still active after being unbound
If we provide an AccelGroup when creating a menu item using a sock ID,
it installs the GTK default accelerator, accelerator we can't remove
since we don't know about it.  So, don't give an AccelGroup so GTK
don't install it's own accelerator.

This fix also required to properly update the accelerator on some item
we used to ignore since the update didn't work anyway (since the GTK
accelerator was displayed instead).

Note that this doesn't fix the fact the editor popup menu accelerators
are never updated after startup so they don't get updated before
restart after changing a keybinding in the preferences.  This is a
separate (and less problematic) issue due to a simple lack of update.

Closes #1912683 and #3599251.
2013-02-21 01:31:38 +01:00
Baptiste Pierrat
2203d8f085 Abaqus: remove styles not actually used by the lexer 2013-02-12 14:57:12 +01:00
Baptiste Pierrat
d4e61bf093 Add support for Abaqus files
Support for Abaqus (.inp) files, including scintilla lexer and tag
parser.

Signed-off-by: Baptiste Pierrat <baptiste.pierrat@gmail.com>
2013-02-12 14:56:38 +01:00
Colomban Wendling
e0104a4bc2 Port new configurable document status colors to GTK3 2013-02-11 04:47:21 +01:00
Colomban Wendling
a77ac1407a Merge branch 'master' into gtk3-support 2013-02-11 04:47:02 +01:00
Colomban Wendling
36581d6638 Move document status color definition to the gtkrc file
This allows for users to change the colors if needed (may be useful
with some themes or color blind persons).

On the sidebar, only the color is applied for now.  This is because
it is not possible to style cell renderers through RC files, all having
to be done in the code;  so currently only the color is applied.
2013-02-11 04:46:40 +01:00
Colomban Wendling
23ef01ede8 Allow user gtkrc to override our gtkrc styles
This allows the user to override the custom styles we apply to some
widgets, like e.g. the unmatched search entry colors.

We use the :theme priority rather than the :application one because
it seems that the :application one cannot override theme settings, even
if it matches against a name the theme don't have rules for but have
rules for the class of that widget.  This prevents a theme from
overriding our styles, but it's unlikely a theme actually provide some
specific stuff for us anyway.
2013-02-11 04:46:40 +01:00
Colomban Wendling
dbd6d12160 Fix not using monospace font for unmatched search entries
This bug was introduced by RC file switch.
2013-02-11 04:46:40 +01:00
Felix Totir
cfed3c3f23 Add missing D keywords
Closes #3595187.
2013-02-01 16:06:32 +01:00
Stephen Coleman
911e5dca17 Detect SCons configuration files as Python
SCons configuration files are plain Python, just without the .py
extension.
2013-02-01 15:35:56 +01:00
Colomban Wendling
8ece89096d Merge branch 'master' into gtk3-support 2013-01-29 15:29:10 +01:00
Lex
dcac3e164c Fix indent setting
Asciidoc requires single line comments to be at the start of the line
so do not want indent.
2013-01-17 15:43:24 +11:00
Lex
8294ea2c2e Add Asciidoc filetype
Add a filetype for Asciidoc with symbol parser, but not styling.
2013-01-17 15:43:24 +11:00
Lex
76aec0852a Revert incomplete Asciidoc filetype commit.
This reverts commit da78a44a1cfeb753e0d06d7175e882f508ad9788.
2013-01-17 15:27:39 +11:00
Matthew Brush
adfc0985db Merge branch 'krofna/master' 2013-01-06 19:11:17 -08:00
Colomban Wendling
dabae1f94f Replace images embedded in the sources with proper themable icons
Additionally, provide SVG versions of the icons as well as them
rendered at the various icons sizes.
2013-01-01 19:10:48 +01:00
Colomban Wendling
bd02c009a1 Use the Geany icon from the theme everywhere 2013-01-01 19:10:04 +01:00
Matthew Brush
40cef34326 Fix "default" named style mapping for filetypes.conf
"default" was mapped to "value" which is normally a string-like
style rather than a "default" type of style which make some themes
that set different background colour for strings to look weird for
config files highlighting.
2012-12-18 15:47:06 -08:00
Mislav Blažević
15fddad323 Implement terminal background image 2012-12-18 12:19:53 +01:00
Nick Treleaven
0b63957e59 Add 'Move Line(s)' menu items in Edit->Commands (and popup menu)
Although using menu items for these is not very practical, it helps
discoverability, and they're more useful and intuitive than 'Transpose
Current Line'.
2012-11-23 16:30:18 +00:00
Nick Treleaven
85006b6d0b Add 'Document->Clone' menu command
This copies the current document text and properties into a new
document, similar to the old Save As 'Open file in a new tab'
option, but easier to understand and decoupled from saving.

One notable difference is that the new document does not copy the
filename - the old behaviour was confusing and error-prone for the
user (e.g. editing two documents with the same filename).
2012-11-23 15:37:00 +00:00
Frank Lanitz
3f7eec5910 Fix a typo insode geany.glade 2012-11-19 22:38:45 +01:00
Lex
da78a44a1c Add Asciidoc filetype with symbol parser
Add an Asciidoc filetype and a basic symbol parser based on ReST.
See the FIXMEs for ReST to Asciidoc changes still to be done.
2012-11-17 19:19:27 +11:00