X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=sidebyside;f=shell%2Fev-sidebar-attachments.c;h=2b7393d34787552f9b43852233e6a4609ecf7e9e;hb=ddeae94041ec4a587e0b353d97816daad182ea66;hp=aac63cf7a5158fd3f67d73ad9b2f4a1ac79cd770;hpb=29efb6155a64a2ada423861ace5637a49a2732b0;p=evince.git diff --git a/shell/ev-sidebar-attachments.c b/shell/ev-sidebar-attachments.c index aac63cf7..2b7393d3 100644 --- a/shell/ev-sidebar-attachments.c +++ b/shell/ev-sidebar-attachments.c @@ -521,12 +521,10 @@ ev_sidebar_attachments_init (EvSidebarAttachments *ev_attachbar) gtk_container_add (GTK_CONTAINER (swindow), ev_attachbar->priv->icon_view); - gtk_widget_show (ev_attachbar->priv->icon_view); gtk_container_add (GTK_CONTAINER (ev_attachbar), swindow); - gtk_widget_show (swindow); - + gtk_widget_show_all (GTK_WIDGET (ev_attachbar)); /* Icon Theme */ ev_attachbar->priv->icon_theme = gtk_icon_theme_get_default (); g_signal_connect_swapped (G_OBJECT (ev_attachbar->priv->icon_theme), @@ -541,14 +539,13 @@ ev_sidebar_attachments_init (EvSidebarAttachments *ev_attachbar) g_object_unref); /* Drag and Drop */ -#ifdef HAVE_GTK_ICON_VIEW_ENABLE_MODEL_DRAG_SOURCE gtk_icon_view_enable_model_drag_source ( GTK_ICON_VIEW (ev_attachbar->priv->icon_view), GDK_BUTTON1_MASK, drag_targets, G_N_ELEMENTS (drag_targets), GDK_ACTION_COPY); -#endif + g_signal_connect (G_OBJECT (ev_attachbar->priv->icon_view), "drag-data-get", G_CALLBACK (ev_sidebar_attachments_drag_data_get),