3
namespace Stetic.Wrapper {
5
public class AboutDialog : Window {
7
public override void Wrap (object obj, bool initialized)
9
base.Wrap (obj, initialized);
12
// FIXME; set from Project eventually
13
about.Name = "My Application";
17
Gtk.AboutDialog about {
19
return (Gtk.AboutDialog)Wrapped;
30
about.Logo = new Gdk.Pixbuf (logo);
34
// In the underlying representation, WebsiteLabel is always set
35
// if Website is; if you set Website to something, and WebsiteLabel
36
// is null, then WebsiteLabel gets set to match Website. There are
37
// two problems with this for us:
39
// 1. If you type "http..." into Website while WebsiteLabel is
40
// blank, WebsiteLabel ends up being forcibly set to just "h".
42
// 2. If the user decides s/he wants to get rid of WebsiteLabel,
43
// they have to actually copy the URL from Website over it.
45
// In Stetic's representation, WebsiteLabel is always "what to show
46
// *instead of* Website", and if it's empty, then you see the raw URL.
48
public string Website {
53
if (website_label == null)
54
about.WebsiteLabel = value;
55
about.Website = value;
60
public string WebsiteLabel {
65
if (value == "" || value == null) {
66
about.WebsiteLabel = about.Website;
69
about.WebsiteLabel = value;
70
website_label = value;