From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Ggjlh-0003eF-3I for garchives@archives.gentoo.org; Sun, 05 Nov 2006 15:18:41 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.8) with SMTP id kA5FGNFA032267; Sun, 5 Nov 2006 15:16:23 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id kA5FE9Nd032043 for ; Sun, 5 Nov 2006 15:14:10 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 1A6C46451E for ; Sun, 5 Nov 2006 15:14:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -1.969 X-Spam-Level: X-Spam-Status: No, score=-1.969 required=5.5 tests=[AWL=0.495, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QBUni-7IWMgb for ; Sun, 5 Nov 2006 15:14:02 +0000 (UTC) Received: from bullet.espersunited.com (adsl-70-234-122-249.dsl.tul2ok.sbcglobal.net [70.234.122.249]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 0D3B564763 for ; Sun, 5 Nov 2006 15:14:01 +0000 (UTC) Received: from camille.espersunited.com (camille.espersunited.com [70.234.122.250]) by bullet.espersunited.com (8.13.7/8.13.7) with ESMTP id kA5FE0gW012708 for ; Sun, 5 Nov 2006 09:14:00 -0600 Subject: [gentoo-user] OT - Changing accellerator keys in gnome-terminal From: Michael Sullivan To: gentoo-user Content-Type: text/plain Date: Sun, 05 Nov 2006 09:13:59 -0600 Message-Id: <1162739639.13171.15.camel@camille.espersunited.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 Content-Transfer-Encoding: 7bit X-Archives-Salt: e79aa289-4376-4013-a0b5-49252cfce917 X-Archives-Hash: 95b4adb9d4470af3a7b29904616e7941 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