[geany/geany] 8318ed: Add option to hide project close/save warning when opening another project
xiota
git-noreply at xxxxx
Sun Nov 7 16:45:31 UTC 2021
Branch: refs/heads/master
Author: xiota <github at mentalfossa.com>
Committer: Enrico Tröger <enrico.troeger at uvena.de>
Date: Sun, 07 Nov 2021 16:45:31 UTC
Commit: 8318ed4f5f1115eff8239b2d3a81770f86a58973
https://github.com/geany/geany/commit/8318ed4f5f1115eff8239b2d3a81770f86a58973
Log Message:
-----------
Add option to hide project close/save warning when opening another project
Modified Paths:
--------------
doc/geany.txt
src/plugindata.h
src/project.c
src/ui_utils.c
src/ui_utils.h
Modified: doc/geany.txt
2 lines changed, 2 insertions(+), 0 deletions(-)
===================================================================
@@ -2542,6 +2542,8 @@ msgwin_messages_visible Whether to show the Messages tab in the t
Messages Window
msgwin_scribble_visible Whether to show the Scribble tab in the true immediately
Messages Window
+warn_on_project_close Whether to show a warning when opening true immediately
+ a project while one is already open.
**``terminal`` group**
send_selection_unsafe By default, Geany strips any trailing false immediately
newline characters from the current
Modified: src/plugindata.h
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -58,7 +58,7 @@ G_BEGIN_DECLS
* @warning You should not test for values below 200 as previously
* @c GEANY_API_VERSION was defined as an enum value, not a macro.
*/
-#define GEANY_API_VERSION 240
+#define GEANY_API_VERSION 241
/* hack to have a different ABI when built with different GTK major versions
* because loading plugins linked to a different one leads to crashes.
Modified: src/project.c
3 lines changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -661,7 +661,8 @@ gboolean project_ask_close(void)
{
if (app->project != NULL)
{
- if (dialogs_show_question_full(NULL, GTK_STOCK_CLOSE, GTK_STOCK_CANCEL,
+ if (!interface_prefs.warn_on_project_close ||
+ dialogs_show_question_full(NULL, GTK_STOCK_CLOSE, GTK_STOCK_CANCEL,
_("Do you want to close it before proceeding?"),
_("The '%s' project is open."), app->project->name))
{
Modified: src/ui_utils.c
2 lines changed, 2 insertions(+), 0 deletions(-)
===================================================================
@@ -2352,6 +2352,8 @@ void ui_init_prefs(void)
"msgwin_messages_visible", TRUE);
stash_group_add_boolean(group, &interface_prefs.msgwin_scribble_visible,
"msgwin_scribble_visible", TRUE);
+ stash_group_add_boolean(group, &interface_prefs.warn_on_project_close,
+ "warn_on_project_close", TRUE);
}
Modified: src/ui_utils.h
2 lines changed, 2 insertions(+), 0 deletions(-)
===================================================================
@@ -69,6 +69,8 @@ typedef struct GeanyInterfacePrefs
gboolean compiler_tab_autoscroll;
gint msgwin_orientation; /**< orientation of the message window */
gint symbols_sort_mode; /**< symbol list sorting mode */
+ /** whether to show a warning when closing a project to open a new one */
+ gboolean warn_on_project_close;
}
GeanyInterfacePrefs;
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list