comparison src/bar.c @ 1298:c37f36b97173

added histogram pane
author nadvornik
date Sun, 15 Feb 2009 19:25:55 +0000
parents 48e064b37ba6
children 55ea4962887a
comparison
equal deleted inserted replaced
1297:9b59d40030d2 1298:c37f36b97173
24 24
25 #include "ui_menu.h" 25 #include "ui_menu.h"
26 #include "bar_comment.h" 26 #include "bar_comment.h"
27 #include "bar_keywords.h" 27 #include "bar_keywords.h"
28 #include "bar_exif.h" 28 #include "bar_exif.h"
29 #include "bar_histogram.h"
29 30
30 #define BAR_SIZE_INCREMENT 48 31 #define BAR_SIZE_INCREMENT 48
31 #define BAR_ARROW_SIZE 7 32 #define BAR_ARROW_SIZE 7
32 33
33 34
332 gtk_viewport_set_shadow_type(GTK_VIEWPORT(gtk_bin_get_child(GTK_BIN(scrolled))), GTK_SHADOW_NONE); 333 gtk_viewport_set_shadow_type(GTK_VIEWPORT(gtk_bin_get_child(GTK_BIN(scrolled))), GTK_SHADOW_NONE);
333 334
334 gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolled), GTK_SHADOW_NONE); 335 gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolled), GTK_SHADOW_NONE);
335 gtk_widget_show(bd->vbox); 336 gtk_widget_show(bd->vbox);
336 337
338 widget = bar_pane_histogram_new(_("Histogram"), 80);
339 bar_add(bd->widget, widget);
337 340
338 widget = bar_pane_comment_new(_("Title"), "Xmp.dc.title", 40); 341 widget = bar_pane_comment_new(_("Title"), "Xmp.dc.title", 40);
339 bar_add(bd->widget, widget); 342 bar_add(bd->widget, widget);
340 343
341 widget = bar_pane_keywords_new(_("Keywords"), KEYWORD_KEY); 344 widget = bar_pane_keywords_new(_("Keywords"), KEYWORD_KEY);