public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* [gentoo-user] OT -  Changing accellerator keys in gnome-terminal
@ 2006-11-05 15:13 99% Michael Sullivan
  0 siblings, 0 replies; 1+ results
From: Michael Sullivan @ 2006-11-05 15:13 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2006-11-05 15:13 99% [gentoo-user] OT - Changing accellerator keys in gnome-terminal Michael Sullivan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox