aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-scrolled.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-10-26 02:59:25 +0800
committerDan Winship <danw@src.gnome.org>2000-10-26 02:59:25 +0800
commit5441932367ec2c7f07cffedf06bc0bcdbe2496fe (patch)
treea67d7c3e5ac21b33bc2951c2ac077f7dbc022311 /widgets/table/e-table-scrolled.c
parent0b2c3f424be242f217d5cd24c0655daaa4fdc6b2 (diff)
downloadgsoc2013-evolution-5441932367ec2c7f07cffedf06bc0bcdbe2496fe.tar.gz
gsoc2013-evolution-5441932367ec2c7f07cffedf06bc0bcdbe2496fe.tar.zst
gsoc2013-evolution-5441932367ec2c7f07cffedf06bc0bcdbe2496fe.zip
Add "click" to the list of etable signals we proxy.
* e-table-scrolled.c: Add "click" to the list of etable signals we proxy. svn path=/trunk/; revision=6170
Diffstat (limited to 'widgets/table/e-table-scrolled.c')
-rw-r--r--widgets/table/e-table-scrolled.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/widgets/table/e-table-scrolled.c b/widgets/table/e-table-scrolled.c
index 8946f25c25..ab490ad7b3 100644
--- a/widgets/table/e-table-scrolled.c
+++ b/widgets/table/e-table-scrolled.c
@@ -31,6 +31,7 @@ enum {
CURSOR_CHANGE,
DOUBLE_CLICK,
RIGHT_CLICK,
+ CLICK,
KEY_PRESS,
LAST_SIGNAL
};
@@ -73,6 +74,16 @@ right_click_proxy (ETable *et, int row, int col, GdkEvent *event, ETableScrolled
}
static gint
+click_proxy (ETable *et, int row, int col, GdkEvent *event, ETableScrolled *ets)
+{
+ int return_val = 0;
+ gtk_signal_emit (GTK_OBJECT (ets),
+ ets_signals [CLICK],
+ row, col, event, &return_val);
+ return return_val;
+}
+
+static gint
key_press_proxy (ETable *et, int row, int col, GdkEvent *event, ETableScrolled *ets)
{
int return_val;
@@ -114,6 +125,8 @@ e_table_scrolled_real_construct (ETableScrolled *ets)
GTK_SIGNAL_FUNC(double_click_proxy), ets);
gtk_signal_connect(GTK_OBJECT(ets->table), "right_click",
GTK_SIGNAL_FUNC(right_click_proxy), ets);
+ gtk_signal_connect(GTK_OBJECT(ets->table), "click",
+ GTK_SIGNAL_FUNC(click_proxy), ets);
gtk_signal_connect(GTK_OBJECT(ets->table), "key_press",
GTK_SIGNAL_FUNC(key_press_proxy), ets);
@@ -359,6 +372,7 @@ e_table_scrolled_class_init (GtkObjectClass *object_class)
klass->cursor_change = NULL;
klass->double_click = NULL;
klass->right_click = NULL;
+ klass->click = NULL;
klass->key_press = NULL;
ets_signals [CURSOR_CHANGE] =
@@ -385,6 +399,14 @@ e_table_scrolled_class_init (GtkObjectClass *object_class)
e_marshal_INT__INT_INT_POINTER,
GTK_TYPE_INT, 3, GTK_TYPE_INT, GTK_TYPE_INT, GTK_TYPE_POINTER);
+ ets_signals [CLICK] =
+ gtk_signal_new ("click",
+ GTK_RUN_LAST,
+ object_class->type,
+ GTK_SIGNAL_OFFSET (ETableScrolledClass, click),
+ e_marshal_INT__INT_INT_POINTER,
+ GTK_TYPE_INT, 3, GTK_TYPE_INT, GTK_TYPE_INT, GTK_TYPE_POINTER);
+
ets_signals [KEY_PRESS] =
gtk_signal_new ("key_press",
GTK_RUN_LAST,
aph'>* - move PKGMESSAGE up, bsd.port.mk has been fixed.dinoex2003-11-171-1/+1 * - new default openldap21-clientdinoex2003-11-161-1/+1 * - bsd.port.mk enforces the existence of PKGMESSAGE,dinoex2003-11-031-1/+1 * - add CONFLICTSdinoex2003-10-121-0/+7 * - new option SENDMAIL_WITHOUT_SHMEM [1], ports/57781dinoex2003-10-101-8/+20 * - add check to protect against override of base sendmaildinoex2003-09-251-0/+13 * - Security update to 8.12.10dinoex2003-09-191-1/+1 * - use hook for bsd.openssl.mkdinoex2003-08-281-4/+19 * - make option LDAP_PORT overwriteabledinoex2003-08-151-1/+1 * - New option LDAP_PORTdinoex2003-08-151-2/+3 * - Fix broken PATH on sparc64 portcluster.dinoex2003-08-031-1/+1 * - Add dependency for saslauthddinoex2003-06-211-0/+1 * - Added new option SENDMAIL_WITH_SMTPS=yesdinoex2003-04-161-0/+12 * - allow "," in CFLAGSdinoex2003-04-161-13/+8 * - use WITH_OPENSSL_BASEdinoex2003-04-131-1/+1 * - use bsd.openssl.mkdinoex2003-04-041-2/+2 * - Security Updatedinoex2003-03-301-1/+1 * - use include more consistentdinoex2003-03-231-1/+1 * - Update to 8.12.8dinoex2003-03-041-2/+1 * Point dependencies on net/openldap2 to net/openldap20edwin2003-02-241-2/+2 * - add COMMENTdinoex2003-02-211-0/+1 * - honor USE_OPENSSL_BASEdinoex2003-02-011-0/+4 * - make portlint happierdinoex2003-01-231-2/+2 * If MaxMimeHeaderLength is set and a malformed MIME header is fixed,dinoex2003-01-161-1/+1 * - Fix a configuration problem if LOCAL_RELAY or MAIL_HUB is used.dinoex2003-01-061-0/+1 * - Update to 8.12.7dinoex2003-01-021-2/+1 * - remove libsm.a libsmutil.a libsmdb.adinoex2003-01-021-4/+1 * reduce sasldb targetdinoex2002-10-201-9/+1 * update tls-install.shdinoex2002-10-201-0/+1 * Update pkg-message for local paths and uucp.dinoex2002-10-081-0/+26 * get some garbage that patch merged within.dinoex2002-09-161-2/+1 * Fix problem when inatll,ion without mailer.confdinoex2002-09-161-3/+9 * Improvement for Option SENDMAIL_WITH_SASL2dinoex2002-09-011-0/+1 * New option SENDMAIL_WITH_SASL2dinoex2002-09-011-3/+16 * Update zo 8.12.6dinoex2002-08-281-1/+7 * Update: sendmail.8.12.5dinoex2002-06-261-3/+3 * - Get rid of PERL and use SEDdinoex2002-06-161-3/+5 * Add op.txt to package, op.ps is already there.dinoex2002-06-111-1/+3 * - Update to: sendmail.8.12.4dinoex2002-06-041-2/+1 * - get rid of duplicate code in Makefiles.dinoex2002-06-011-1/+4 * Fix support for "site.config.m4.local",dinoex2002-04-291-4/+7 * - imported a set of bug fixes as suggested.dinoex2002-04-211-0/+1 * update target mailer.conf, to change the new entries too.dinoex2002-04-181-0/+2 * - Update to new release: sendmail-8.12.3dinoex2002-04-061-2/+5 * - define PICKY_HELO_CHECK as defaultdinoex2002-03-101-1/+1 * BUMP portrevisiondinoex2002-02-271-1/+1 * - Build milter with -D_THREAD_SAFEdinoex2002-02-181-1/+3 * Bump PORTREVISION for latest libmilter changesdinoex2002-02-181-0/+1 * - Change SENDMAIL_WIT_MILTER to SENDMAIL_WITHOUT_MILTERdinoex2002-02-091-10/+7 * - Add html-docs when made with SENDMAIL_WITH_MILTER=yesdinoex2002-01-30