Code

delete unused function
authorbuliabyak <buliabyak@users.sourceforge.net>
Fri, 18 Aug 2006 02:18:03 +0000 (02:18 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Fri, 18 Aug 2006 02:18:03 +0000 (02:18 +0000)
src/desktop-events.cpp
src/desktop-events.h

index 5531abfefbe7c51562325ddcceb38b8be5e2491b..41a45eec263c45e7dcbcd688e742ff62d5970890 100644 (file)
 
 /* 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)
 {
index 3964b5d079c216b535f6877a6aaca8708b072100..8ddff09499835d131338ff061468e56771e39cc2 100644 (file)
@@ -23,7 +23,6 @@ class SPCanvasItem;
 /* 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 */