[Xfce4-commits] <postler:master> Use Viewer for standalone message windows as well
Christian Dywan
noreply at xfce.org
Tue Jul 13 00:54:11 CEST 2010
Updating branch refs/heads/master
to 9c76cc4ce9b566d173e59b590de2ef7425c64c41 (commit)
from 54ef84ce313e15a46457d0f47c533cc33a2e1a3e (commit)
commit 9c76cc4ce9b566d173e59b590de2ef7425c64c41
Author: Christian Dywan <christian at twotoasts.de>
Date: Mon Jul 5 22:25:19 2010 +0200
Use Viewer for standalone message windows as well
postler/postler-reader.vala | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/postler/postler-reader.vala b/postler/postler-reader.vala
index 7672923..7c76487 100644
--- a/postler/postler-reader.vala
+++ b/postler/postler-reader.vala
@@ -127,8 +127,12 @@ public class Postler.Reader {
var shelf = new Gtk.VBox (false, 0);
window.add (shelf);
/* TODO: menubar, toolbar */
- var scrolled = new Postler.ScrolledWindow (instance);
- shelf.add (scrolled);
+ if (module == "content")
+ shelf.add (new Postler.Viewer (instance as Postler.Content));
+ else {
+ var scrolled = new Postler.ScrolledWindow (instance);
+ shelf.add (scrolled);
+ }
window.destroy.connect (Gtk.main_quit);
window.show_all ();
Gtk.main ();
More information about the Xfce4-commits
mailing list