Branch: refs/heads/master
Author: Jacob H. Pratt <the.z.cuber(a)gmail.com>
Committer: elextr <elextr(a)gmail.com>
Date: Sat, 29 Apr 2017 01:20:38 UTC
Commit: 9f4407ca29ac4dd6401fbc0688fb8c244158ae3d
https://github.com/geany/geany/commit/9f4407ca29ac4dd6401fbc0688fb8c244158a…
Log Message:
-----------
Add `require_relative` in ruby syntax highlighting (#1472)
Modified Paths:
--------------
data/filedefs/filetypes.ruby
Modified: data/filedefs/filetypes.ruby
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -38,7 +38,7 @@ pod=comment_doc
[keywords]
# all items must be in one line
-primary=__FILE__ load define_method attr_accessor attr_writer attr_reader and def end in or self unless __LINE__ begin defined? ensure module redo super until BEGIN break do false next rescue then when END case else for nil include require retry true while alias class elsif if not return undef yield
+primary=__FILE__ load define_method attr_accessor attr_writer attr_reader and def end in or self unless __LINE__ begin defined? ensure module redo super until BEGIN break do false next rescue then when END case else for nil include require require_relative retry true while alias class elsif if not return undef yield
[settings]
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Vasiliy Faronov <vfaronov(a)gmail.com>
Committer: elextr <elextr(a)gmail.com>
Date: Tue, 25 Apr 2017 08:09:40 UTC
Commit: dbcf456031127ce7e371606dcc75507024eb95df
https://github.com/geany/geany/commit/dbcf456031127ce7e371606dcc75507024eb9…
Log Message:
-----------
Update HACKING (#1479)
* Update obsolete references to GLib 2.27/28 in HACKING
Fixes #1476.
* Replace obsolete gcc -W option with -Wextra in HACKING
According to gcc --help=warnings, -W is a deprecated option
and -Wextra should be used instead.
Modified Paths:
--------------
HACKING
Modified: HACKING
6 lines changed, 3 insertions(+), 3 deletions(-)
===================================================================
@@ -176,7 +176,7 @@ libs (including GLib, GDK and Pango) has the advantages
that you don't get confused by any newer API additions and you
don't have to take care about whether you can use them or not.
-You might want to pass the ``-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_28`` C
+You might want to pass the ``-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32`` C
preprocessor flag to get warnings about newer symbols from the GLib.
On the contrary, you might also want to get deprecation warnings for symbols
@@ -196,7 +196,7 @@ Coding
them down into smaller static functions where possible. This makes code
much easier to read and maintain.
* Use GLib types and functions - gint not int, g_free() not free().
-* Your code should build against GLib 2.27.3 and GTK 2.24. At least for the
+* Your code should build against GLib 2.32 and GTK 2.24. At least for the
moment, we want to keep the minimum requirement for GTK at 2.24 (of
course, you can use the GTK_CHECK_VERSION macro to protect code using
later versions).
@@ -212,7 +212,7 @@ Compiler options & warnings
Use ``CFLAGS='-Wfoo' ./configure`` or ``CFLAGS='-Wfoo' ./autogen.sh``
to set warning options (as well as anything else e.g. -g -O2).
-* Enable warnings - for gcc use '-Wall -W' (and optionally
+* Enable warnings - for gcc use '-Wall -Wextra' (and optionally
-Wno-unused-parameter to avoid unused parameter warnings in Glade
callbacks).
* You should try to write ISO C99 code for portability, so always
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: yurayko <yuray(a)komyakino.ru>
Committer: Frank Lanitz <frank(a)frank.uvena.de>
Date: Sun, 23 Apr 2017 17:07:29 UTC
Commit: c296efed642611f3dba238c5c576b712786b424e
https://github.com/geany/geany/commit/c296efed642611f3dba238c5c576b712786b4…
Log Message:
-----------
fix typo in russian translation (#1474)
Modified Paths:
--------------
po/ru.po
Modified: po/ru.po
10 lines changed, 5 insertions(+), 5 deletions(-)
===================================================================
@@ -1176,7 +1176,7 @@ msgid ""
"(usually not needed)"
msgstr ""
"Эта опция отключает автоматическое определение кодировки файла при открытии; "
-"файлы c кодировкой, отличной от Unicode, будут открыватся в указанной "
+"файлы c кодировкой, отличной от Unicode, будут открываться в указанной "
"кодировке. Обычно в этом нет необходимости."
#: ../data/geany.glade.h:242
@@ -1517,7 +1517,7 @@ msgstr "Оболочка:"
#: ../data/geany.glade.h:316
msgid "Sets the foreground color of the text in the terminal widget"
-msgstr "Устанавлиивает цвет текста для окна терминала"
+msgstr "Устанавливает цвет текста для окна терминала"
#: ../data/geany.glade.h:317
msgid "Sets the background color of the text in the terminal widget"
@@ -3364,7 +3364,7 @@ msgstr "Прокрутить вниз на одну строку"
#: ../src/keybindings.c:402
msgid "Complete snippet"
-msgstr "Завешить фрагмент кода"
+msgstr "Завершить фрагмент кода"
#: ../src/keybindings.c:404
msgid "Move cursor in snippet"
@@ -6293,7 +6293,7 @@ msgstr "По горизонтали"
#~ msgstr "Собрать:"
#~ msgid "Choose Project Run Command"
-#~ msgstr "Выберите команду запсука проекта"
+#~ msgstr "Выберите команду запуска проекта"
#~ msgid ""
#~ "Command-line to run in the project base directory. Options can be "
@@ -6386,7 +6386,7 @@ msgstr "По горизонтали"
#~ msgstr "Установить программы и опции для сборки и просмотра (La)TeX файлов."
#~ msgid "Set the commands for building and running programs."
-#~ msgstr "Установить команды для сборки и запуска програм."
+#~ msgstr "Установить команды для сборки и запуска программ."
#~ msgid "Terminal plugin"
#~ msgstr "Модуль терминала"
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Jiří Techet <techet(a)gmail.com>
Committer: elextr <elextr(a)gmail.com>
Date: Sat, 15 Apr 2017 10:48:03 UTC
Commit: 2707006286fa52400776c24ad6c393d2459324fa
https://github.com/geany/geany/commit/2707006286fa52400776c24ad6c393d245932…
Log Message:
-----------
Fix crash when plugin_set_key_group() is called several times by plugins (#1426)
When plugin calls plugin_set_key_group() several times for the same
group (when creating keybindings dynamically and needs to reset them),
it crashes with the current code the second time it gets called.
The reason is that group->plugin_keys is an array into which entries of
group->key_items point and when calling
g_ptr_array_set_size(group->key_items, 0);
it calls free_key_binding() for every item - when these items are
deallocated by g_free(group->plugin_keys) previously, calls of
free_key_binding() reference an invalid memory.
Just first resizing group->key_items (and calling free_key_binding() for
its items) and freeing group->plugin_keys afterwards fixes the problem.
Modified Paths:
--------------
src/keybindings.c
Modified: src/keybindings.c
4 lines changed, 3 insertions(+), 1 deletions(-)
===================================================================
@@ -2697,10 +2697,12 @@ GeanyKeyGroup *keybindings_set_group(GeanyKeyGroup *group, const gchar *section_
group = g_new0(GeanyKeyGroup, 1);
add_kb_group(group, section_name, label, callback, TRUE);
}
+ /* Calls free_key_binding() for individual entries for plugins - has to be
+ * called before g_free(group->plugin_keys) */
+ g_ptr_array_set_size(group->key_items, 0);
g_free(group->plugin_keys);
group->plugin_keys = g_new0(GeanyKeyBinding, count);
group->plugin_key_count = count;
- g_ptr_array_set_size(group->key_items, 0);
return group;
}
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).