[geany/geany] dba93f: Allow Quit keybinding to be configured
Colomban Wendling
git-noreply at xxxxx
Thu Feb 21 00:31:38 UTC 2013
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Thu, 21 Feb 2013 00:31:38 UTC
Commit: dba93f3854c9efaaf7e07d09b4d80dd33f09f954
https://github.com/geany/geany/commit/dba93f3854c9efaaf7e07d09b4d80dd33f09f954
Log Message:
-----------
Allow Quit keybinding to be configured
This removes the last unmodifiable keybinding relying on GTK's
defaults, and allows somebody to change this keybinding.
Modified Paths:
--------------
data/geany.glade
doc/geany.txt
src/keybindings.c
src/keybindings.h
Modified: data/geany.glade
1 files changed, 0 insertions(+), 1 deletions(-)
===================================================================
@@ -7551,7 +7551,6 @@
<property name="can_focus">False</property>
<property name="use_underline">True</property>
<property name="use_stock">True</property>
- <property name="accel_group">accelgroup1</property>
<signal name="activate" handler="on_quit1_activate" swapped="no"/>
</object>
</child>
Modified: doc/geany.txt
2 files changed, 2 insertions(+), 0 deletions(-)
===================================================================
@@ -3235,6 +3235,8 @@ Reload file Ctrl-R (C) Reloads the current fi
will be lost.
Print Ctrl-P (C) Prints the current file.
+
+Quit Ctrl-Q (C) Quits Geany.
=============================== ========================= ==================================================
Modified: src/keybindings.c
5 files changed, 5 insertions(+), 0 deletions(-)
===================================================================
@@ -272,6 +272,8 @@ static void init_default_kb(void)
GDK_r, GDK_CONTROL_MASK, "menu_reloadfile", _("Reload file"), "menu_reload1");
add_kb(group, GEANY_KEYS_FILE_OPENLASTTAB, NULL,
0, 0, "file_openlasttab", _("Re-open last closed tab"), NULL);
+ add_kb(group, GEANY_KEYS_FILE_QUIT, NULL,
+ GDK_q, GDK_CONTROL_MASK, "menu_quit", _("Quit"), "menu_quit1");
group = keybindings_get_core_group(GEANY_KEY_GROUP_PROJECT);
@@ -1335,6 +1337,9 @@ static gboolean cb_func_file_action(guint key_id)
case GEANY_KEYS_FILE_PRINT:
on_print1_activate(NULL, NULL);
break;
+ case GEANY_KEYS_FILE_QUIT:
+ on_quit1_activate(NULL, NULL);
+ break;
}
return TRUE;
}
Modified: src/keybindings.h
1 files changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -247,6 +247,7 @@ enum GeanyKeyBindingID
GEANY_KEYS_FORMAT_JOINLINES, /**< Keybinding. */
GEANY_KEYS_GOTO_LINESTARTVISUAL, /**< Keybinding. */
GEANY_KEYS_DOCUMENT_CLONE, /**< Keybinding. */
+ GEANY_KEYS_FILE_QUIT, /**< Keybinding. */
GEANY_KEYS_COUNT /* must not be used by plugins */
};
--------------
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