Updating branch refs/heads/master to d003fb327bd8e1eb3d2e9a9c5385d299200e7e1f (commit) from e5263989fcce2caa72454e53d683fbc1ff763d60 (commit)
commit d003fb327bd8e1eb3d2e9a9c5385d299200e7e1f Author: Christian Dywan <christ...@twotoasts.de> Date: Sun Jun 6 07:44:02 2010 +0200 Display parts through the message part pane postler/postler-bureau.vala | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/postler/postler-bureau.vala b/postler/postler-bureau.vala index ab1c712..a24c6ad 100644 --- a/postler/postler-bureau.vala +++ b/postler/postler-bureau.vala @@ -362,6 +362,7 @@ public class Postler.Bureau : Gtk.Window { foreach (var child in children) child.destroy (); var parts = content.get_parts (); + uint index = 0; foreach (var part in parts) { string icon_name = icon_name_for_mime_type (part, this); var icon = new Gtk.Image.from_icon_name (icon_name, @@ -370,7 +371,11 @@ public class Postler.Bureau : Gtk.Window { button.relief = Gtk.ReliefStyle.NONE; button.add (icon); button.set_tooltip_text (part); + button.set_data ("index", index); + button.clicked.connect ((button) => { + content.display_part (button.get_data ("index")); }); message_parts.pack_start (button, false, false, 0); + index++; } scrollable.show_all (); }); _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits