Mercurial > geeqie
diff src/image.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 | c7a2471e5c4e |
line wrap: on
line diff
--- a/src/image.c Tue Apr 22 08:16:02 2008 +0000 +++ b/src/image.c Tue Apr 22 08:34:30 2008 +0000 @@ -19,6 +19,7 @@ #include "collect.h" #include "color-man.h" #include "exif.h" +#include "histogram.h" #include "image-overlay.h" #include "layout.h" #include "layout_image.h" @@ -1934,6 +1935,8 @@ g_free(imd->title); g_free(imd->title_right); + if (imd->histogram) histogram_free(imd->histogram); + g_free(imd); } @@ -2055,6 +2058,8 @@ imd->orientation = 1; + imd->histogram_enabled = FALSE; /* TODO: option */ + imd->pr = GTK_WIDGET(pixbuf_renderer_new()); image_options_set(imd);