[geany/geany] 083798: Add keybindings for "Project->New from Folder"

Jiří Techet git-noreply at geany.org
Fri May 13 00:19:38 UTC 2022


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Sat, 19 Mar 2022 16:50:22 UTC
Commit:      0837989188fa0adcfec4ccf84cd344faae736713
             https://github.com/geany/geany/commit/0837989188fa0adcfec4ccf84cd344faae736713

Log Message:
-----------
Add keybindings for "Project->New from Folder"


Modified Paths:
--------------
    src/keybindings.c
    src/keybindings.h
    src/plugindata.h

Modified: src/keybindings.c
5 lines changed, 5 insertions(+), 0 deletions(-)
===================================================================
@@ -366,6 +366,8 @@ static void init_default_kb(void)
 
 	add_kb(group, GEANY_KEYS_PROJECT_NEW, NULL,
 		0, 0, "project_new", _("New"), "project_new1");
+	add_kb(group, GEANY_KEYS_PROJECT_NEW_FROM_FOLDER, NULL,
+		0, 0, "project_new_from_folder", _("New from Folder"), "project_new_from_folder1");
 	add_kb(group, GEANY_KEYS_PROJECT_OPEN, NULL,
 		0, 0, "project_open", _("Open"), "project_open1");
 	add_kb(group, GEANY_KEYS_PROJECT_PROPERTIES, NULL,
@@ -1502,6 +1504,9 @@ static gboolean cb_func_project_action(guint key_id)
 		case GEANY_KEYS_PROJECT_NEW:
 			on_project_new1_activate(NULL, NULL);
 			break;
+		case GEANY_KEYS_PROJECT_NEW_FROM_FOLDER:
+			on_project_new_from_folder1_activate(NULL, NULL);
+			break;
 		case GEANY_KEYS_PROJECT_OPEN:
 			on_project_open1_activate(NULL, NULL);
 			break;


Modified: src/keybindings.h
2 lines changed, 2 insertions(+), 0 deletions(-)
===================================================================
@@ -277,6 +277,8 @@ enum GeanyKeyBindingID
 												 * @since 1.34 (API 238) */
 	GEANY_KEYS_FILE_RELOAD_ALL,					/**< Keybinding.
 												 * @since 1.38 (API 240) */
+	GEANY_KEYS_PROJECT_NEW_FROM_FOLDER,			/**< Keybinding.
+												 * @since 1.39 (API 243) */
 	GEANY_KEYS_COUNT	/* must not be used by plugins */
 };
 


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 243
+#define GEANY_API_VERSION 244
 
 /* hack to have a different ABI when built with different GTK major versions
  * because loading plugins linked to a different one leads to crashes.



--------------
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