Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Sun, 09 Nov 2014 21:14:12 UTC
Commit: 67cc8faf4be7778cda8c2901785b038319c1f01a
https://github.com/geany/geany/commit/67cc8faf4be7778cda8c2901785b038319c1f…
Log Message:
-----------
Fix closing of the "missing file" infobar
The issue was introduced in b646424ddb715382a937d233a75bc684c22e18ec as
it removed the default handler that used to destroy the infobar.
Now, the infobar is properly closed, but only if the action succeeded.
Closes #375.
Modified Paths:
--------------
src/document.c
Modified: src/document.c
15 lines changed, 13 insertions(+), 2 deletions(-)
===================================================================
@@ -3358,12 +3358,23 @@ static void on_monitor_resave_missing_file_response(GtkWidget *bar,
gint response_id,
GeanyDocument *doc)
{
+ gboolean close = TRUE;
+
unprotect_document(doc);
if (response_id == RESPONSE_DOCUMENT_SAVE)
- dialogs_show_save_as();
+ close = dialogs_show_save_as();
- doc->priv->info_bars[MSG_TYPE_RESAVE] = NULL;
+ if (close)
+ {
+ doc->priv->info_bars[MSG_TYPE_RESAVE] = NULL;
+ gtk_widget_destroy(bar);
+ }
+ else
+ {
+ /* protect back the document if save didn't occur */
+ protect_document(doc);
+ }
}
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Sun, 09 Nov 2014 16:40:03 UTC
Commit: 1dc09597b24d19683abc597d45d7c28d37c199f0
https://github.com/geany/geany/commit/1dc09597b24d19683abc597d45d7c28d37c19…
Log Message:
-----------
Fix check for fnmatch and remove strict dependency on it for Windows
Strict dependency on fnmatch was removed in 52076d19e8fe7ab41ebc92928e.
We still have an optional dependency on it from CTags, but I don't
think we use this code, and anyways the checks we had for the optional
path to be taken were incorrect, so it was never actually used.
So, drop the dependency on libibrety for Windows builds, and fix the
remaining checks for an optional fnmatch so if it is found it can
actually be used.
Modified Paths:
--------------
configure.ac
m4/geany-mingw.m4
src/Makefile.am
wscript
Modified: configure.ac
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -49,7 +49,7 @@ AC_TYPE_SIZE_T
AC_STRUCT_TM
# Checks for library functions.
-AC_CHECK_FUNCS([ftruncate fgetpos mkstemp strerror strstr])
+AC_CHECK_FUNCS([ftruncate fgetpos fnmatch mkstemp strerror strstr])
# autoscan end
Modified: m4/geany-mingw.m4
2 lines changed, 0 insertions(+), 2 deletions(-)
===================================================================
@@ -6,8 +6,6 @@ AC_DEFUN([GEANY_CHECK_MINGW],
[
case "${host}" in
*mingw*)
- AC_CHECK_LIB([iberty], [fnmatch], [],
- [AC_MSG_ERROR([fnmatch does not present in libiberty. You need to update it, read http://www.geany.org/Support/CrossCompile for details.])])
AC_DEFINE([WIN32], [1], [we are cross compiling for WIN32])
GEANY_CHECK_VTE([no])
GEANY_CHECK_SOCKET([yes])
Modified: src/Makefile.am
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -108,7 +108,7 @@ geany_LDADD = \
@GTK_LIBS@ \
@GTHREAD_LIBS@ \
$(INTLLIBS) \
- -lole32 -luuid -liberty -lwsock32 \
+ -lole32 -luuid -lwsock32 \
geany_private.res
AM_CFLAGS = -DGEANY_DATADIR=\"data\" \
Modified: wscript
3 lines changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -193,6 +193,7 @@ def configure(conf):
_add_to_env_and_define(conf, 'HAVE_REGCOMP', 1) # needed for CTags
conf.check_cc(function_name='fgetpos', header_name='stdio.h', mandatory=False)
+ conf.check_cc(function_name='fnmatch', header_name='fnmatch.h', mandatory=False)
conf.check_cc(function_name='ftruncate', header_name='unistd.h', mandatory=False)
conf.check_cc(function_name='mkstemp', header_name='stdlib.h', mandatory=False)
conf.check_cc(function_name='strstr', header_name='string.h')
@@ -259,7 +260,7 @@ but you then may not have a local copy of the HTML manual.'''
'-mwindows',
'-static-libgcc',
'-static-libstdc++'])
- conf.env.append_value('LIB_WIN32', ['wsock32', 'uuid', 'ole32', 'iberty'])
+ conf.env.append_value('LIB_WIN32', ['wsock32', 'uuid', 'ole32'])
# explicitly define Windows version for older Mingw environments
conf.define('WINVER', '0x0501', quote=False) # for SHGetFolderPathAndSubDirW
conf.define('_WIN32_IE', '0x0500', quote=False) # for SHGFP_TYPE
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Enrico Tröger <enrico.troeger(a)uvena.de>
Committer: Enrico Tröger <enrico.troeger(a)uvena.de>
Date: Sun, 09 Nov 2014 10:22:16 UTC
Commit: fea71a282fe91629335167f2c05ff2239c8e02e4
https://github.com/geany/geany/commit/fea71a282fe91629335167f2c05ff2239c8e0…
Log Message:
-----------
Allow MRU file list length to be set to 0 to disable it
Since the rest of the code is already prepared for it, setting mru_length
to 0 just disables the recent files menu.
Modified Paths:
--------------
data/geany.glade
Modified: data/geany.glade
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -70,7 +70,7 @@
<property name="page_increment">10</property>
</object>
<object class="GtkAdjustment" id="adjustment8">
- <property name="lower">1</property>
+ <property name="lower">0</property>
<property name="upper">50</property>
<property name="value">4</property>
<property name="step_increment">1</property>
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Mon, 20 Oct 2014 15:55:32 UTC
Commit: d4135c9842bb7fc0c8701fc47a1ab148bed5e992
https://github.com/geany/geany/commit/d4135c9842bb7fc0c8701fc47a1ab148bed5e…
Log Message:
-----------
Add prototypes for all plugin symbols
This allows the compilers to check that the plugin's symbols have the
proper prototype. Doing so can avoid subtle and hard-to-find bugs in
case a plugin's symbol has incorrect signature as dlsym() can't check
if the signature is actually the one we expect.
As a bonus, it helps when using -Wmissing-prototypes as it provides the
prototypes.
Modified Paths:
--------------
src/plugindata.h
Modified: src/plugindata.h
26 lines changed, 17 insertions(+), 9 deletions(-)
===================================================================
@@ -157,15 +157,6 @@ GeanyPlugin;
}
-#ifndef GEANY_PRIVATE
-
-/* Prototypes for building plugins with -Wmissing-prototypes */
-gint plugin_version_check(gint abi_ver);
-void plugin_set_info(PluginInfo *info);
-
-#endif
-
-
/** @deprecated - use plugin_set_key_group() instead.
* @see PLUGIN_KEY_GROUP() macro. */
typedef struct GeanyKeyGroupInfo
@@ -258,6 +249,23 @@ GeanyData;
#define geany geany_data /**< Simple macro for @c geany_data that reduces typing. */
+#ifndef GEANY_PRIVATE
+
+/* Prototypes for building plugins with -Wmissing-prototypes
+ * Also allows the compiler to check if the signature of the plugin's
+ * symbol properly matches what we expect. */
+gint plugin_version_check(gint abi_ver);
+void plugin_set_info(PluginInfo *info);
+
+void plugin_init(GeanyData *data);
+GtkWidget *plugin_configure(GtkDialog *dialog);
+void plugin_configure_single(GtkWidget *parent);
+void plugin_help(void);
+void plugin_cleanup(void);
+
+#endif
+
+
/** This contains pointers to functions owned by Geany for plugins to use.
* Functions from the core can be appended when needed by plugin authors, but may
* require some changes. */
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Sat, 08 Nov 2014 23:19:14 UTC
Commit: aa06427c71ef337f0a80e8d3eb001771a226fece
https://github.com/geany/geany/commit/aa06427c71ef337f0a80e8d3eb001771a226f…
Log Message:
-----------
Merge branch 'plugin-symbols-protoypes'
Modified Paths:
--------------
src/plugindata.h
Modified: src/plugindata.h
26 lines changed, 17 insertions(+), 9 deletions(-)
===================================================================
@@ -157,15 +157,6 @@ GeanyPlugin;
}
-#ifndef GEANY_PRIVATE
-
-/* Prototypes for building plugins with -Wmissing-prototypes */
-gint plugin_version_check(gint abi_ver);
-void plugin_set_info(PluginInfo *info);
-
-#endif
-
-
/** @deprecated - use plugin_set_key_group() instead.
* @see PLUGIN_KEY_GROUP() macro. */
typedef struct GeanyKeyGroupInfo
@@ -258,6 +249,23 @@ GeanyData;
#define geany geany_data /**< Simple macro for @c geany_data that reduces typing. */
+#ifndef GEANY_PRIVATE
+
+/* Prototypes for building plugins with -Wmissing-prototypes
+ * Also allows the compiler to check if the signature of the plugin's
+ * symbol properly matches what we expect. */
+gint plugin_version_check(gint abi_ver);
+void plugin_set_info(PluginInfo *info);
+
+void plugin_init(GeanyData *data);
+GtkWidget *plugin_configure(GtkDialog *dialog);
+void plugin_configure_single(GtkWidget *parent);
+void plugin_help(void);
+void plugin_cleanup(void);
+
+#endif
+
+
/** This contains pointers to functions owned by Geany for plugins to use.
* Functions from the core can be appended when needed by plugin authors, but may
* require some changes. */
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).