aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-text.c
diff options
context:
space:
mode:
authorIain Holmes <iain@helixcode.com>2000-09-27 07:38:22 +0800
committerIain Holmes <iain@src.gnome.org>2000-09-27 07:38:22 +0800
commitdac353c09740029c071c0949a49de2eeae471732 (patch)
treecf34851acb60515136ab378544b0478fc67f1bac /widgets/table/e-cell-text.c
parentd71561a2ae3b1cfbc3542940c7087584045f2b2e (diff)
downloadgsoc2013-evolution-dac353c09740029c071c0949a49de2eeae471732.tar
gsoc2013-evolution-dac353c09740029c071c0949a49de2eeae471732.tar.gz
gsoc2013-evolution-dac353c09740029c071c0949a49de2eeae471732.tar.bz2
gsoc2013-evolution-dac353c09740029c071c0949a49de2eeae471732.tar.lz
gsoc2013-evolution-dac353c09740029c071c0949a49de2eeae471732.tar.xz
gsoc2013-evolution-dac353c09740029c071c0949a49de2eeae471732.tar.zst
gsoc2013-evolution-dac353c09740029c071c0949a49de2eeae471732.zip
Fudge the location of a click in the tooltip, so that it selects the
2000-09-27 Iain Holmes <iain@helixcode.com> * e-cell-text.c: Fudge the location of a click in the tooltip, so that it selects the current cell. Pass keyboard events to the e-table. * e-table-item.c: Don't show the tooltip if the cell is being editted. Also don't destroy the tooltip until the button release event (other wise the e-table-item starts a select) 2000-09-25 Iain Holmes <iain@helixcode.com> * e-table-header-item.c (draw_button): Calculate the vertical offset correctly to centre text. 2000-09-25 Iain Holmes <iain@helixcode.com> * e-table-header-item.c (ethi_popup_best_fit): Fill this out to call the "request_width" signal and set the new size. svn path=/trunk/; revision=5599
Diffstat (limited to 'widgets/table/e-cell-text.c')
-rw-r--r--widgets/table/e-cell-text.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c
index 21133b1188..a8d2fa2a92 100644
--- a/widgets/table/e-cell-text.c
+++ b/widgets/table/e-cell-text.c
@@ -1328,6 +1328,16 @@ tooltip_event (GtkWidget *window,
}
}
+ event->button.x = tooltip->cx;
+ event->button.y = tooltip->cy;
+ gtk_signal_emit_by_name (GTK_OBJECT (tooltip->eti), "event",
+ event, &ret_val);
+ break;
+ case GDK_KEY_PRESS:
+ if (tooltip->window){
+ gtk_widget_destroy (tooltip->window);
+ tooltip->window = NULL;
+ }
gtk_signal_emit_by_name (GTK_OBJECT (tooltip->eti), "event",
event, &ret_val);
break;