From: Michael Sullivan <michael@espersunited.com>
To: gentoo-user <gentoo-user@lists.gentoo.org>
Subject: [gentoo-user] OT - Changing accellerator keys in gnome-terminal
Date: Sun, 05 Nov 2006 09:13:59 -0600 [thread overview]
Message-ID: <1162739639.13171.15.camel@camille.espersunited.com> (raw)
Is it possible to change the accellerator keys in gnome-terminal? I
would like to change
Copy from Cntrl+Shift+C to Cntrl+C
Paste from Cntrl+Shift+P to Cntrl+P
(like it is in just about every other gnome app). I was looking at the
source code for gnome-terminal, at a file called terminal-accels.c and I
see a function:
static KeyEntry edit_entries[] =
{
{ N_("Copy"),
KEY_COPY, ACCEL_PATH_COPY, 0, 0, NULL, FALSE },
{ N_("Paste"),
KEY_PASTE, ACCEL_PATH_PASTE, 0, 0, NULL, FALSE },
};
I think this is what I need to edit; the problem is that I'm not very
experienced with C and I'm not experienced at all with GTK. From
cross-referencing what I see above with both the rest of the current
file and the accompanying header file I see
#define KEY_COPY CONF_KEYS_PREFIX"/copy"
#define KEY_PASTE CONF_KEYS_PREFIX"/paste"
#define ACCEL_PATH_COPY ACCEL_PATH_ROOT"/copy"
#define ACCEL_PATH_PASTE ACCEL_PATH_ROOT"/paste"
I know these commands are declaring constants, and I know that CONF_KEYS_PREFIX eventually translates into CONF_PREFIX, which translates into "/apps/gnome-terminal" in terminal-profile.h, but I have no idea what /apps/gnome-terminal does in this context (isn't that what I'm trying to build here?) Am I even close?
--
gentoo-user@gentoo.org mailing list
next reply other threads:[~2006-11-05 15:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-05 15:13 Michael Sullivan [this message]
2006-11-05 15:40 ` [gentoo-user] OT - Changing accellerator keys in gnome-terminal Markus Schönhaber
2006-11-05 15:48 ` Michael Sullivan
2006-11-05 16:08 ` Markus Schönhaber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1162739639.13171.15.camel@camille.espersunited.com \
--to=michael@espersunited.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox