diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-01-14 11:52:37 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-01-15 00:34:28 +0800 |
commit | 95072d1bc3d7cbbef71eaeaf265d00869d375656 (patch) | |
tree | c11fe988aa644ab0d0d9cb9fdb8f78f5e53ef9bc /widgets/misc | |
parent | 999074a9c6d6844c9786dfb1b141509762c7df99 (diff) | |
download | gsoc2013-evolution-95072d1bc3d7cbbef71eaeaf265d00869d375656.tar.gz gsoc2013-evolution-95072d1bc3d7cbbef71eaeaf265d00869d375656.tar.zst gsoc2013-evolution-95072d1bc3d7cbbef71eaeaf265d00869d375656.zip |
Remove unused tooltip support from ECanvas/ETable/EText.
Diffstat (limited to 'widgets/misc')
-rw-r--r-- | widgets/misc/e-canvas.c | 49 | ||||
-rw-r--r-- | widgets/misc/e-canvas.h | 9 |
2 files changed, 0 insertions, 58 deletions
diff --git a/widgets/misc/e-canvas.c b/widgets/misc/e-canvas.c index 62ff8b89df..314837edf1 100644 --- a/widgets/misc/e-canvas.c +++ b/widgets/misc/e-canvas.c @@ -36,10 +36,6 @@ static gint e_canvas_key (GtkWidget *widget, static gint e_canvas_button (GtkWidget *widget, GdkEventButton *event); -static gint e_canvas_visibility (GtkWidget *widget, - GdkEventVisibility *event, - ECanvas *canvas); - static gint e_canvas_focus_in (GtkWidget *widget, GdkEventFocus *event); static gint e_canvas_focus_out (GtkWidget *widget, @@ -131,8 +127,6 @@ e_canvas_dispose (GObject *object) canvas->im_context = NULL; } - e_canvas_hide_tooltip(canvas); - if ((G_OBJECT_CLASS (e_canvas_parent_class))->dispose) (*(G_OBJECT_CLASS (e_canvas_parent_class))->dispose) (object); } @@ -534,18 +528,6 @@ e_canvas_button (GtkWidget *widget, GdkEventButton *event) return retval; } -/* Key event handler for the canvas */ -static gint -e_canvas_visibility (GtkWidget *widget, GdkEventVisibility *event, ECanvas *canvas) -{ - if (! canvas->visibility_first) { - e_canvas_hide_tooltip(canvas); - } - canvas->visibility_first = FALSE; - - return FALSE; -} - /** * e_canvas_item_grab_focus: * @item: A canvas item. @@ -801,37 +783,6 @@ e_canvas_item_set_reflow_callback (GnomeCanvasItem *item, ECanvasItemReflowFunc g_object_set_data(G_OBJECT(item), "ECanvasItem::reflow_callback", (gpointer) func); } -void -e_canvas_popup_tooltip (ECanvas *canvas, GtkWidget *widget, gint x, gint y) -{ - if (canvas->tooltip_window && canvas->tooltip_window != widget) { - e_canvas_hide_tooltip(canvas); - } - canvas->tooltip_window = widget; - canvas->visibility_first = TRUE; - if (canvas->toplevel == NULL) { - canvas->toplevel = gtk_widget_get_toplevel (GTK_WIDGET(canvas)); - if (canvas->toplevel) { - gtk_widget_add_events(canvas->toplevel, GDK_VISIBILITY_NOTIFY_MASK); - g_object_ref (canvas->toplevel); - canvas->visibility_notify_id = - g_signal_connect (canvas->toplevel, "visibility_notify_event", - G_CALLBACK (e_canvas_visibility), canvas); - } - } - gtk_window_move (GTK_WINDOW (widget), x, y); - gtk_widget_show (widget); -} - -void -e_canvas_hide_tooltip (ECanvas *canvas) -{ - if (canvas->tooltip_window) { - gtk_widget_destroy (canvas->tooltip_window); - canvas->tooltip_window = NULL; - } -} - static gboolean grab_cancelled_check (gpointer data) { diff --git a/widgets/misc/e-canvas.h b/widgets/misc/e-canvas.h index 7b7ac36315..ea2364c749 100644 --- a/widgets/misc/e-canvas.h +++ b/widgets/misc/e-canvas.h @@ -83,8 +83,6 @@ struct _ECanvas gint visibility_notify_id; GtkWidget *toplevel; - guint visibility_first : 1; - /* Input context for dead key support */ GtkIMContext *im_context; @@ -124,13 +122,6 @@ void e_canvas_item_ungrab (ECanvas GnomeCanvasItem *item, guint32 etime); -/* Not implemented yet. */ -void e_canvas_popup_tooltip (ECanvas *canvas, - GtkWidget *widget, - gint x, - gint y); -void e_canvas_hide_tooltip (ECanvas *canvas); - G_END_DECLS #endif /* __E_CANVAS_H__ */ |