summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c629d35)
raw | patch | inline | side by side (parent: c629d35)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 18 Aug 2006 02:18:03 +0000 (02:18 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 18 Aug 2006 02:18:03 +0000 (02:18 +0000) |
src/desktop-events.cpp | patch | blob | history | |
src/desktop-events.h | patch | blob | history |
diff --git a/src/desktop-events.cpp b/src/desktop-events.cpp
index 5531abfefbe7c51562325ddcceb38b8be5e2491b..41a45eec263c45e7dcbcd688e742ff62d5970890 100644 (file)
--- a/src/desktop-events.cpp
+++ b/src/desktop-events.cpp
/* Root item handler */
-
int sp_desktop_root_handler(SPCanvasItem *item, GdkEvent *event, SPDesktop *desktop)
{
return sp_event_context_root_handler(desktop->event_context, event);
}
-/*
- * fixme: this conatins a hack, to deal with deleting a view, which is
- * completely on another view, in which case active_desktop will not be updated
- *
- */
-
-int sp_desktop_item_handler(SPCanvasItem *item, GdkEvent *event, gpointer data)
-{
- gpointer ddata = gtk_object_get_data(GTK_OBJECT(item->canvas), "SPDesktop");
- g_return_val_if_fail(ddata != NULL, FALSE);
-
- SPDesktop *desktop = static_cast<SPDesktop*>(ddata);
-
- return sp_event_context_item_handler(desktop->event_context, SP_ITEM(data), event);
-}
-
static gint sp_dt_ruler_event(GtkWidget *widget, GdkEvent *event, SPDesktopWidget *dtw, bool horiz)
{
diff --git a/src/desktop-events.h b/src/desktop-events.h
index 3964b5d079c216b535f6877a6aaca8708b072100..8ddff09499835d131338ff061468e56771e39cc2 100644 (file)
--- a/src/desktop-events.h
+++ b/src/desktop-events.h
/* Item handlers */
int sp_desktop_root_handler (SPCanvasItem *item, GdkEvent *event, SPDesktop *desktop);
-int sp_desktop_item_handler (SPCanvasItem *item, GdkEvent *event, gpointer data);
/* Default handlers */