-GtkWidget *
-shape_create_icon (const wxIcon &shape,
- gint x,
- gint y,
- gint px,
- gint py,
- gint window_type)
-{
- /*
- * GDK_WINDOW_TOPLEVEL works also, giving you a title border
- */
- GtkWidget *window = gtk_window_new ((GtkWindowType)window_type);
-
- GtkWidget *fixed = gtk_fixed_new ();
- gtk_widget_set_usize (fixed, 100,100);
- gtk_container_add (GTK_CONTAINER (window), fixed);
- gtk_widget_show (fixed);
-
- gtk_widget_set_events (window,
- gtk_widget_get_events (window) |
- GDK_BUTTON_MOTION_MASK |
- GDK_POINTER_MOTION_HINT_MASK |
- GDK_BUTTON_PRESS_MASK);
-
- gtk_widget_realize (window);
-
- GdkBitmap *mask = (GdkBitmap*) NULL;
- if (shape.GetMask()) mask = shape.GetMask()->GetBitmap();
-
- GtkWidget *pixmap = gtk_pixmap_new (shape.GetPixmap(), mask);
- gtk_fixed_put (GTK_FIXED (fixed), pixmap, px,py);
- gtk_widget_show (pixmap);
-
- gtk_widget_shape_combine_mask (window, mask, px,py);
-
-
- gtk_signal_connect (GTK_OBJECT (window), "button_press_event",
- GTK_SIGNAL_FUNC (shape_pressed),NULL);
- gtk_signal_connect (GTK_OBJECT (window), "button_release_event",
- GTK_SIGNAL_FUNC (shape_released),NULL);
- gtk_signal_connect (GTK_OBJECT (window), "motion_notify_event",
- GTK_SIGNAL_FUNC (shape_motion),NULL);
-
- CursorOffset*icon_pos = g_new (CursorOffset, 1);
- gtk_object_set_user_data(GTK_OBJECT(window), icon_pos);
-
- gtk_widget_set_uposition (window, x, y);
- gtk_widget_show (window);
-
- return window;
+ gtk_signal_disconnect_by_func( GTK_OBJECT(m_widget),
+ GTK_SIGNAL_FUNC(source_drag_data_get), (gpointer) this );
+ gtk_signal_disconnect_by_func( GTK_OBJECT(m_widget),
+ GTK_SIGNAL_FUNC(source_drag_data_delete), (gpointer) this );
+ gtk_signal_disconnect_by_func( GTK_OBJECT(m_widget),
+ GTK_SIGNAL_FUNC(source_drag_begin), (gpointer) this );
+ gtk_signal_disconnect_by_func( GTK_OBJECT(m_widget),
+ GTK_SIGNAL_FUNC(source_drag_end), (gpointer) this );