if (!phd->histogram_width || !phd->histogram_height || !phd->fd) return;
/* histmap_get is relatively expensive, run it only when we really need it
- and with lower priority than pixbuf_renderer
+ and with lower priority than pixbuf_renderer
FIXME: this does not work for fullscreen*/
if (gtk_widget_is_drawable(phd->drawing_area))
{
if (phd->fd == NULL) return FALSE;
histmap = histmap_get(phd->fd);
- if (!histmap)
+ if (!histmap)
{
histmap_start_idle(phd->fd);
return FALSE;
static void bar_pane_histogram_notify_cb(FileData *fd, NotifyType type, gpointer data)
{
PaneHistogramData *phd = data;
- if ((type & (NOTIFY_REREAD | NOTIFY_CHANGE | NOTIFY_HISTMAP | NOTIFY_PIXBUF)) && fd == phd->fd)
+ if ((type & (NOTIFY_REREAD | NOTIFY_CHANGE | NOTIFY_HISTMAP | NOTIFY_PIXBUF)) && fd == phd->fd)
{
DEBUG_1("Notify pane_histogram: %s %04x", fd->path, type);
bar_pane_histogram_update(phd);
bar_pane_histogram_update(phd);
}
-#if 0
-static void bar_pane_histogram_close(GtkWidget *pane)
-{
- PaneHistogramData *phd;
-
- phd = g_object_get_data(G_OBJECT(pane), "pane_data");
- if (!phd) return;
-
- gtk_widget_destroy(phd->widget);
-}
-#endif
-
static void bar_pane_histogram_destroy(GtkWidget *widget, gpointer data)
{
PaneHistogramData *phd = data;
G_CALLBACK(bar_pane_histogram_size_cb), phd);
#if GTK_CHECK_VERSION(3,0,0)
- g_signal_connect(G_OBJECT(phd->drawing_area), "draw",
+ g_signal_connect(G_OBJECT(phd->drawing_area), "draw",
G_CALLBACK(bar_pane_histogram_draw_cb), phd);
#else
- g_signal_connect(G_OBJECT(phd->drawing_area), "expose_event",
+ g_signal_connect(G_OBJECT(phd->drawing_area), "expose_event",
G_CALLBACK(bar_pane_histogram_expose_event_cb), phd);
#endif