diff options
Diffstat (limited to 'src/fe-gtk/maingui.c')
-rw-r--r-- | src/fe-gtk/maingui.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c index 6db2399e..d8b88b6d 100644 --- a/src/fe-gtk/maingui.c +++ b/src/fe-gtk/maingui.c @@ -2358,7 +2358,6 @@ mg_create_textarea (session *sess, GtkWidget *box) gui->vscrollbar = gtk_vscrollbar_new (GTK_XTEXT (xtext)->adj); gtk_box_pack_start (GTK_BOX (inbox), gui->vscrollbar, FALSE, TRUE, 0); -#ifndef WIN32 /* needs more work */ gtk_drag_dest_set (gui->vscrollbar, 5, dnd_dest_targets, 2, GDK_ACTION_MOVE | GDK_ACTION_COPY | GDK_ACTION_LINK); g_signal_connect (G_OBJECT (gui->vscrollbar), "drag_begin", @@ -2374,7 +2373,6 @@ mg_create_textarea (session *sess, GtkWidget *box) GDK_ACTION_MOVE | GDK_ACTION_COPY | GDK_ACTION_LINK); g_signal_connect (G_OBJECT (gui->xtext), "drag_data_received", G_CALLBACK (mg_dialog_dnd_drop), NULL); -#endif } static GtkWidget * @@ -3785,7 +3783,6 @@ mg_is_gui_target (GdkDragContext *context) gboolean mg_drag_begin_cb (GtkWidget *widget, GdkDragContext *context, gpointer userdata) { -#ifndef WIN32 /* leaks GDI pool memory - don't use on win32 */ int width, height; GdkColormap *cmap; GdkPixbuf *pix, *pix2; @@ -3804,7 +3801,6 @@ mg_drag_begin_cb (GtkWidget *widget, GdkDragContext *context, gpointer userdata) gtk_drag_set_icon_pixbuf (context, pix2, 0, 0); g_object_set_data (G_OBJECT (widget), "ico", pix2); -#endif return TRUE; } @@ -3816,9 +3812,7 @@ mg_drag_end_cb (GtkWidget *widget, GdkDragContext *context, gpointer userdata) if (!mg_is_gui_target (context)) return; -#ifndef WIN32 g_object_unref (g_object_get_data (G_OBJECT (widget), "ico")); -#endif } /* drop complete */ |