aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-memo-table.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-02-16 19:00:23 +0800
committerMilan Crha <mcrha@src.gnome.org>2009-02-16 19:00:23 +0800
commit5f0a7fea0d679915459fb28a98c82d61cb79b673 (patch)
tree8d882acdc94652af6a459b8acbf6ca7b4806aba5 /calendar/gui/e-memo-table.c
parent5a7c58ddeb7d9fc5749f0bdf3c4c2f50d0245a58 (diff)
downloadgsoc2013-evolution-5f0a7fea0d679915459fb28a98c82d61cb79b673.tar
gsoc2013-evolution-5f0a7fea0d679915459fb28a98c82d61cb79b673.tar.gz
gsoc2013-evolution-5f0a7fea0d679915459fb28a98c82d61cb79b673.tar.bz2
gsoc2013-evolution-5f0a7fea0d679915459fb28a98c82d61cb79b673.tar.lz
gsoc2013-evolution-5f0a7fea0d679915459fb28a98c82d61cb79b673.tar.xz
gsoc2013-evolution-5f0a7fea0d679915459fb28a98c82d61cb79b673.tar.zst
gsoc2013-evolution-5f0a7fea0d679915459fb28a98c82d61cb79b673.zip
** Fix for bug #550114
2009-02-16 Milan Crha <mcrha@redhat.com> ** Fix for bug #550114 * widgets/table/e-table-group.h: * widgets/table/e-table-group.c: * widgets/table/e-table-group-container.c: * widgets/table/e-table-group-leaf.c: Replaced 'compute_mouse_over' with 'get_mouse_over', now works with cached values 'motion_row', 'motion_col'. * widgets/table/e-table.c: (e_table_get_mouse_over_cell): Mouse position not required anymore, remove it too then. * calendar/gui/e-calendar-table.h: (ec_query_tooltip): * calendar/gui/e-calendar-table.c: (ec_query_tooltip): Offer it to others too. * calendar/gui/e-calendar-table.c: (query_tooltip_cb): Use above funtion. Show proper tooltip in table with grouping columns. * calendar/gui/e-memo-table.c: (query_tooltip_cb), (e_memo_table_init): Show tooltips in memo view too. svn path=/trunk/; revision=37275
Diffstat (limited to 'calendar/gui/e-memo-table.c')
-rw-r--r--calendar/gui/e-memo-table.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/calendar/gui/e-memo-table.c b/calendar/gui/e-memo-table.c
index 8e312c7b0b..260103ada0 100644
--- a/calendar/gui/e-memo-table.c
+++ b/calendar/gui/e-memo-table.c
@@ -57,6 +57,7 @@
#include <e-util/e-icon-factory.h>
#include <e-util/e-util-private.h>
#include "e-cal-popup.h"
+#include "e-calendar-table.h"
enum TargetType{
TARGET_TYPE_VCALENDAR
@@ -181,6 +182,18 @@ row_appended_cb (ECalModel *model, EMemoTable *memo_table)
g_signal_emit (memo_table, signals[USER_CREATED], 0);
}
+static gboolean
+query_tooltip_cb (GtkWidget *widget, gint x, gint y, gboolean keyboard_mode, GtkTooltip *tooltip, gpointer user_data)
+{
+ EMemoTable *memo_table;
+
+ g_return_val_if_fail (E_IS_MEMO_TABLE (user_data), FALSE);
+
+ memo_table = E_MEMO_TABLE (user_data);
+
+ return ec_query_tooltip (widget, x, y, keyboard_mode, tooltip, GTK_WIDGET (e_memo_table_get_table (memo_table)), memo_table->model);
+}
+
static void
e_memo_table_init (EMemoTable *memo_table)
{
@@ -272,6 +285,8 @@ e_memo_table_init (EMemoTable *memo_table)
g_signal_connect (e_table, "right_click", G_CALLBACK (e_memo_table_on_right_click), memo_table);
g_signal_connect (e_table, "key_press", G_CALLBACK (e_memo_table_on_key_press), memo_table);
g_signal_connect (e_table, "popup_menu", G_CALLBACK (e_memo_table_on_popup_menu), memo_table);
+ g_signal_connect (e_table, "query-tooltip", G_CALLBACK (query_tooltip_cb), memo_table);
+ gtk_widget_set_has_tooltip (GTK_WIDGET (e_table), TRUE);
a11y = gtk_widget_get_accessible (GTK_WIDGET(e_table));
if (a11y)