xmpedit

GTK+ editor for XMP metadata embedded in images
git clone https://code.djc.id.au/git/xmpedit/
commit cb1a482bc3d0d4ae43b2e6cef29037514904831c
parent 8cd4e0929430d239a4a9513ed86292a1bc147aa4
Author: Dan Callaghan <djc@djc.id.au>
Date:   Thu, 25 Dec 2008 17:29:33 +1000

scrollbars are good

Diffstat:
MMainWindow.cpp | 5++++-
MMainWindow.h | 2++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/MainWindow.cpp b/MainWindow.cpp
@@ -13,7 +13,10 @@ MainWindow::MainWindow(const std::string& path) :
 	tree_view.set_model(model);
 	tree_view.append_column("Predicate", model->columns.pred_column);
 	tree_view.append_column("Value", model->columns.value_column);
-	add(tree_view);
+	scrolled.add(tree_view);
+
+    scrolled.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
+    add(scrolled);
 
 	show_all_children();
 
diff --git a/MainWindow.h b/MainWindow.h
@@ -4,6 +4,7 @@
 
 #include "MetadataTreeModel.h"
 #include <gtkmm/treeview.h>
+#include <gtkmm/scrolledwindow.h>
 #include <gtkmm/window.h>
 
 class MainWindow : public Gtk::Window {
@@ -13,6 +14,7 @@ public:
 	virtual ~MainWindow();
 
 private:
+    Gtk::ScrolledWindow scrolled;
 	Glib::RefPtr<MetadataTreeModel> model;
 	Gtk::TreeView tree_view;