Revision 1ecb1bbe src/gallery.c

b/src/gallery.c
486 486

  
487 487
    widgets_set_progress(data, 0, _("Creating gallery"));
488 488

  
489
    while (g_main_context_iteration(NULL, FALSE));
490

  
491 489
    /* make thumbnails */
492 490
    if (!_make_thumbnails(data)) {
493 491
        widgets_set_progress(data, 0, _("Failed!"));
......
549 547
			widgets_set_progress(data, (gfloat)file_counter/(gfloat)tot_files,
550 548
								 p_text);
551 549
			data->gal->images = g_slist_append(data->gal->images, img);
552
            
550
                        
553 551
			gtk_widget_show( img->image );
554 552
			gtk_widget_show( img->button );
555
            
556
            while (g_main_context_iteration(NULL, FALSE));
557 553
		}
558 554
		uris = uris->next;
559 555
	}
......
636 632
            img->rotate   = tmpimg->rotate;
637 633
            img->nomodify = tmpimg->nomodify;
638 634
            
639
            while (g_main_context_iteration(NULL, FALSE));
640 635
		}
641 636
        image_free(tmpimg);
642 637
		imgs = imgs->next;
......
737 732

  
738 733
    data = user_data;
739 734

  
735
    /* on doubleclick we already have set everything on first
736
     * click. Now just show the web image */
737
    if (event->type == GDK_2BUTTON_PRESS)
738
    {
739
        widgets_set_status(data, "Showing preview..");        
740
        magick_show_preview(data, data->current_img,  data->gal->image_h);
741
        widgets_set_status(data, "Idle");
742
        return FALSE;
743
    }
744

  
740 745
    /* Find out which button was pressed by going through all image
741 746
     * buttons and matching pointer address.
742 747
     * CHECKME: This should be probably implemented in some more sane way 
......
847 852
        frac = (gfloat)i/(gfloat)tot;
848 853
        g_debug("frac: %f", frac);
849 854
        widgets_set_progress(data, frac, progress);
850
        
851
        while (g_main_context_iteration(NULL, FALSE));
852 855
    }
853 856
    g_free(dir_uri);
854 857

  
......
943 946
            frac = (gfloat)i/(gfloat)tot;
944 947
            g_debug("frac: %f", frac);
945 948
            widgets_set_progress(data, frac, progress);
946

  
947
            while (g_main_context_iteration(NULL, FALSE));
948 949
        }
949 950
        g_free(dir_uri);
950 951
    }

Also available in: Unified diff