aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-12-09 04:29:36 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-12-09 04:29:36 +0800
commit74d651e09e4af21f3744b2c271fbc5c6332cc5b9 (patch)
treed812fd91b705d49f449d08b1f72326fda1e8595c /calendar
parent0c25330539c89b214d922d1dbc98126c6e41cefc (diff)
downloadgsoc2013-evolution-74d651e09e4af21f3744b2c271fbc5c6332cc5b9.tar
gsoc2013-evolution-74d651e09e4af21f3744b2c271fbc5c6332cc5b9.tar.gz
gsoc2013-evolution-74d651e09e4af21f3744b2c271fbc5c6332cc5b9.tar.bz2
gsoc2013-evolution-74d651e09e4af21f3744b2c271fbc5c6332cc5b9.tar.lz
gsoc2013-evolution-74d651e09e4af21f3744b2c271fbc5c6332cc5b9.tar.xz
gsoc2013-evolution-74d651e09e4af21f3744b2c271fbc5c6332cc5b9.tar.zst
gsoc2013-evolution-74d651e09e4af21f3744b2c271fbc5c6332cc5b9.zip
Attach signal handlers to the e_scrolled_table's etable rather than to the
2000-12-08 JP Rosevear <jpr@helixcode.com> * gui/e-calendar-table.c (e_calendar_table_init): Attach signal handlers to the e_scrolled_table's etable rather than to the e_scrolled_table directly (e_calendar_table_on_double_click): This signal provides more params now svn path=/trunk/; revision=6866
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog8
-rw-r--r--calendar/gui/e-calendar-table.c15
2 files changed, 19 insertions, 4 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index b970497853..95a2e21df9 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,11 @@
+2000-12-08 JP Rosevear <jpr@helixcode.com>
+
+ * gui/e-calendar-table.c (e_calendar_table_init): Attach signal
+ handlers to the e_scrolled_table's etable rather than to the
+ e_scrolled_table directly
+ (e_calendar_table_on_double_click): This signal provides more
+ params now
+
2000-12-07 Christopher James Lahey <clahey@helixcode.com>
* gui/e-calendar-table.c: Got rid of code referencing the
diff --git a/calendar/gui/e-calendar-table.c b/calendar/gui/e-calendar-table.c
index 080443e383..d5afbf6214 100644
--- a/calendar/gui/e-calendar-table.c
+++ b/calendar/gui/e-calendar-table.c
@@ -55,6 +55,8 @@ static void e_calendar_table_destroy (GtkObject *object);
static void e_calendar_table_on_double_click (ETable *table,
gint row,
+ gint col,
+ GdkEvent *event,
ECalendarTable *cal_table);
static gint e_calendar_table_on_right_click (ETable *table,
gint row,
@@ -197,6 +199,7 @@ static void
e_calendar_table_init (ECalendarTable *cal_table)
{
GtkWidget *table;
+ ETable *e_table;
ETableModel *model;
ECell *cell;
ETableExtras *extras;
@@ -264,13 +267,15 @@ e_calendar_table_init (ECalendarTable *cal_table)
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
gtk_widget_show (table);
- gtk_signal_connect (GTK_OBJECT (table), "double_click",
+
+ e_table = e_table_scrolled_get_table (E_TABLE_SCROLLED (table));
+ gtk_signal_connect (GTK_OBJECT (e_table), "double_click",
GTK_SIGNAL_FUNC (e_calendar_table_on_double_click),
cal_table);
- gtk_signal_connect (GTK_OBJECT (table), "right_click",
+ gtk_signal_connect (GTK_OBJECT (e_table), "right_click",
GTK_SIGNAL_FUNC (e_calendar_table_on_right_click),
cal_table);
- gtk_signal_connect (GTK_OBJECT (table), "key_press",
+ gtk_signal_connect (GTK_OBJECT (e_table), "key_press",
GTK_SIGNAL_FUNC (e_calendar_table_on_key_press),
cal_table);
}
@@ -318,7 +323,9 @@ e_calendar_table_set_cal_client (ECalendarTable *cal_table,
static void
e_calendar_table_on_double_click (ETable *table,
- gint row,
+ gint row,
+ gint col,
+ GdkEvent *event,
ECalendarTable *cal_table)
{
e_calendar_table_open_task (cal_table, row);