commit 2980abd3a664b8563f2c052f6e0ddd4f49101d77
parent 9da7a14c2c6d87981a7e2ba6b00cde8df2c93439
Author: Dan Callaghan <djc@djc.id.au>
Date: Sat, 21 Aug 2010 15:11:45 +1000
layout fiddling
Diffstat:
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/MainWindow.vala b/src/MainWindow.vala
@@ -27,7 +27,7 @@ public class MainWindow : Gtk.Window {
table.attach(image_preview,
1, 2, 0, 1,
- Gtk.AttachOptions.FILL | Gtk.AttachOptions.EXPAND, Gtk.AttachOptions.FILL,
+ Gtk.AttachOptions.FILL | Gtk.AttachOptions.EXPAND, 0,
10, 10);
tree_view_scrolled.add(tree_view);
@@ -39,7 +39,8 @@ public class MainWindow : Gtk.Window {
table.attach(detail_view,
1, 2, 1, 2,
- Gtk.AttachOptions.FILL | Gtk.AttachOptions.EXPAND, Gtk.AttachOptions.FILL,
+ Gtk.AttachOptions.FILL | Gtk.AttachOptions.EXPAND,
+ Gtk.AttachOptions.FILL | Gtk.AttachOptions.EXPAND,
0, 0);
add(table);
diff --git a/src/PropertyDetailView.vala b/src/PropertyDetailView.vala
@@ -1,7 +1,7 @@
namespace Xmpedit {
-public class PropertyDetailView : Gtk.ScrolledWindow {
+public class PropertyDetailView : Gtk.Alignment {
public MetadataTreeView tree_view { get; construct; }
@@ -10,7 +10,6 @@ public class PropertyDetailView : Gtk.ScrolledWindow {
}
construct {
- set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);
tree_view.cursor_changed.connect(() => {
Gtk.TreeIter iter;
tree_view.get_selection().get_selected(null, out iter);
@@ -19,7 +18,7 @@ public class PropertyDetailView : Gtk.ScrolledWindow {
PropertyEditor pe = (PropertyEditor) value.get_object();
pe.refresh();
//remove(child);
- add_with_viewport(pe);
+ add(pe);
});
}