Mercurial > geeqie.yaz
comparison src/image.c @ 616:d9c9d05c9d4d
Move overlay histogram stuff from ImageWindow to OverlayStateData.
It simplifies things a lot and make more sense.
Note: overlay icons display is broken since a long time it seems.
author | zas_ |
---|---|
date | Fri, 09 May 2008 12:33:24 +0000 |
parents | 905688aa2317 |
children | 8268cbe682f1 |
comparison
equal
deleted
inserted
replaced
615:cddccc89d93b | 616:d9c9d05c9d4d |
---|---|
1938 image_auto_refresh(imd, -1); | 1938 image_auto_refresh(imd, -1); |
1939 | 1939 |
1940 file_data_unref(imd->image_fd); | 1940 file_data_unref(imd->image_fd); |
1941 g_free(imd->title); | 1941 g_free(imd->title); |
1942 g_free(imd->title_right); | 1942 g_free(imd->title_right); |
1943 | |
1944 if (imd->histogram) histogram_free(imd->histogram); | |
1945 | |
1946 g_free(imd); | 1943 g_free(imd); |
1947 } | 1944 } |
1948 | 1945 |
1949 static void image_destroy_cb(GtkObject *widget, gpointer data) | 1946 static void image_destroy_cb(GtkObject *widget, gpointer data) |
1950 { | 1947 { |
2062 imd->func_button = NULL; | 2059 imd->func_button = NULL; |
2063 imd->func_scroll = NULL; | 2060 imd->func_scroll = NULL; |
2064 | 2061 |
2065 imd->orientation = 1; | 2062 imd->orientation = 1; |
2066 | 2063 |
2067 imd->histogram_enabled = FALSE; /* TODO: option */ | |
2068 | |
2069 imd->pr = GTK_WIDGET(pixbuf_renderer_new()); | 2064 imd->pr = GTK_WIDGET(pixbuf_renderer_new()); |
2070 | 2065 |
2071 image_options_set(imd); | 2066 image_options_set(imd); |
2072 | 2067 |
2073 | 2068 |