summaryrefslogtreecommitdiffstats
path: root/src/display/sp-canvas.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2009-02-22 19:01:44 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2009-02-22 19:01:44 +0000
commit84debc76569d3fa0d5de6e8e66c5704548e09215 (patch)
tree74e328354f49baefabb5813f80eaa6a16e60188e /src/display/sp-canvas.cpp
parentRemoved broken-and-unused function (diff)
downloadinkscape-84debc76569d3fa0d5de6e8e66c5704548e09215.tar.gz
inkscape-84debc76569d3fa0d5de6e8e66c5704548e09215.zip
Use on-cavas text instead of a tooltip for the snapindicator (fixes some tooltip annoyances and fixes bug #330252)
(bzr r7346)
Diffstat (limited to 'src/display/sp-canvas.cpp')
-rw-r--r--src/display/sp-canvas.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/display/sp-canvas.cpp b/src/display/sp-canvas.cpp
index 141e10611..38b0ae995 100644
--- a/src/display/sp-canvas.cpp
+++ b/src/display/sp-canvas.cpp
@@ -938,7 +938,6 @@ static gint sp_canvas_key (GtkWidget *widget, GdkEventKey *event);
static gint sp_canvas_crossing (GtkWidget *widget, GdkEventCrossing *event);
static gint sp_canvas_focus_in (GtkWidget *widget, GdkEventFocus *event);
static gint sp_canvas_focus_out (GtkWidget *widget, GdkEventFocus *event);
-static gboolean sp_canvas_query_tooltip (GtkWidget *widget, gint x, gint y, gboolean keyboard_mode, GtkTooltip *tooltip);
static GtkWidgetClass *canvas_parent_class;
@@ -1051,8 +1050,6 @@ sp_canvas_init (SPCanvas *canvas)
canvas->watchdog_id = 0;
canvas->watchdog_event = NULL;
canvas->context_snap_delay_active = false;
-
- g_signal_connect(&(canvas->widget), "query-tooltip", G_CALLBACK (sp_canvas_query_tooltip), NULL);
}
/**
@@ -2165,26 +2162,6 @@ sp_canvas_focus_out (GtkWidget *widget, GdkEventFocus *event)
return FALSE;
}
-
-static gboolean sp_canvas_query_tooltip (GtkWidget *widget,
- gint x,
- gint y,
- gboolean keyboard_mode,
- GtkTooltip *tooltip)
-{
- // We're not really doing anything special here, so we might just as well remove sp_canvas_query_tooltip
- // all together (and stop listening to the query_tooltip signal. We might make a custom tooltip however
- // someday, for example to display icons instead of just plain text. In that case we will need this call
- // so that's why I'm leaving it here for the time being.
-
- if (canvas_parent_class->query_tooltip) {
- return canvas_parent_class->query_tooltip (widget, x, y, keyboard_mode, tooltip);
- }
-
- return false;
-}
-
-
/**
* Helper that repaints the areas in the canvas that need it.
*