diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-12-14 11:07:28 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-12-14 11:07:28 +0800 |
commit | a918af2dc304d7584ccf973580a1672e54f3e87c (patch) | |
tree | 19888bc03bfd657ca47a1142d491347832223cd9 /widgets | |
parent | e83e50a39ba1bd508fb004120071411752f7cd13 (diff) | |
download | gsoc2013-evolution-a918af2dc304d7584ccf973580a1672e54f3e87c.tar.gz gsoc2013-evolution-a918af2dc304d7584ccf973580a1672e54f3e87c.tar.zst gsoc2013-evolution-a918af2dc304d7584ccf973580a1672e54f3e87c.zip |
Added eti_visibility_notify. Didn't get it to work properly, so it's #if
2000-12-13 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c (eti_realize): Added eti_visibility_notify.
Didn't get it to work properly, so it's #if 0ed out.
svn path=/trunk/; revision=6991
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/table/e-table-item.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c index 43dbb92b00..1f5494011c 100644 --- a/widgets/table/e-table-item.c +++ b/widgets/table/e-table-item.c @@ -1058,12 +1058,28 @@ eti_init (GnomeCanvasItem *item) static const char gray50_bits[] = { 0x02, 0x01, }; +#if 0 +static gint +eti_visibility_notify(GtkWidget *widget, + GdkEventVisibility *event, + ETableItem *eti) +{ + if (eti->tooltip->window) { + gtk_widget_destroy (eti->tooltip->window); + eti->tooltip->window = NULL; + } + + return FALSE; +} +#endif + static void eti_realize (GnomeCanvasItem *item) { ETableItem *eti = E_TABLE_ITEM (item); GtkWidget *canvas_widget = GTK_WIDGET (item->canvas); GdkWindow *window; + GdkEventMask mask; if (GNOME_CANVAS_ITEM_CLASS (eti_parent_class)->realize) (*GNOME_CANVAS_ITEM_CLASS (eti_parent_class)->realize)(item); @@ -1090,6 +1106,15 @@ eti_realize (GnomeCanvasItem *item) gdk_gc_set_stipple (eti->focus_gc, eti->stipple); gdk_gc_set_fill (eti->focus_gc, GDK_OPAQUE_STIPPLED); +#if 0 + mask = gtk_widget_get_events(GTK_WIDGET(item->canvas)); + mask |= GDK_VISIBILITY_NOTIFY_MASK; + gtk_widget_set_events(GTK_WIDGET(item->canvas), mask); + + gtk_signal_connect(GTK_OBJECT(item->canvas), "visibility_notify_event", + GTK_SIGNAL_FUNC(eti_visibility_notify), eti); +#endif + if (eti->cell_views == NULL) eti_attach_cell_views (eti); |