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?


-- 
[email protected] mailing list

Reply via email to