comparison src/layout.c @ 480:805c3258d228

Make histogram depends on image window not layout window. It simplifies the code, and make more sense.
author zas_
date Tue, 22 Apr 2008 08:34:30 +0000
parents 48c8e49b571c
children 75b7154e6435
comparison
equal deleted inserted replaced
479:5212d4fed37f 480:805c3258d228
1857 1857
1858 layout_bars_close(lw); 1858 layout_bars_close(lw);
1859 1859
1860 gtk_widget_destroy(lw->window); 1860 gtk_widget_destroy(lw->window);
1861 1861
1862 histogram_free(lw->histogram);
1863
1864 g_free(lw->path); 1862 g_free(lw->path);
1865 1863
1866 g_free(lw); 1864 g_free(lw);
1867 } 1865 }
1868 1866
1904 lw->bar_exif = NULL; 1902 lw->bar_exif = NULL;
1905 lw->bar_exif_enabled = FALSE; 1903 lw->bar_exif_enabled = FALSE;
1906 lw->bar_exif_size = -1; 1904 lw->bar_exif_size = -1;
1907 lw->bar_exif_advanced = FALSE; 1905 lw->bar_exif_advanced = FALSE;
1908 1906
1909 lw->histogram_enabled = FALSE;
1910
1911 /* default layout */ 1907 /* default layout */
1912 1908
1913 layout_config_parse(options->layout.style, options->layout.order, 1909 layout_config_parse(options->layout.style, options->layout.order,
1914 &lw->dir_location, &lw->file_location, &lw->image_location); 1910 &lw->dir_location, &lw->file_location, &lw->image_location);
1915 lw->dir_view_type = options->layout.dir_view_type; 1911 lw->dir_view_type = options->layout.dir_view_type;