Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

50 wiersze
1.5 KiB

  1. //
  2. // The Pimp The Pathetic Image Manipulation Program
  3. // Copyright (c) 2008 Sam Hocevar <sam@zoy.org>
  4. // All Rights Reserved
  5. //
  6. // $Id$
  7. //
  8. // This library is free software. It comes without any warranty, to
  9. // the extent permitted by applicable law. You can redistribute it
  10. // and/or modify it under the terms of the Do What The Fuck You Want
  11. // To Public License, Version 2, as published by Sam Hocevar. See
  12. // http://sam.zoy.org/wtfpl/COPYING for more details.
  13. //
  14. using System;
  15. namespace ThePimp
  16. {
  17. [Gtk.Binding(Gdk.Key.Escape, "Destroy")]
  18. public partial class AboutWindow : Gtk.Window
  19. {
  20. public AboutWindow() : base(Gtk.WindowType.Toplevel)
  21. {
  22. this.Build();
  23. this.AppPaintable = true;
  24. Gdk.Pixbuf image = Gdk.Pixbuf.LoadFromResource("ThePimp.images.about.png");
  25. Gdk.Pixmap pixmap, pixmap_mask;
  26. image.RenderPixmapAndMask(out pixmap, out pixmap_mask, 255);
  27. this.GdkWindow.SetBackPixmap(pixmap, false);
  28. this.SetSizeRequest(image.Width, image.Height);
  29. this.Resizable = false;
  30. // FIXME: I have no idea how to enforce this in Stetic
  31. buttonClose.HasFocus = true;
  32. }
  33. protected virtual void OnButtonCloseClicked (object sender, System.EventArgs e)
  34. {
  35. this.Destroy();
  36. }
  37. protected virtual void OnButtonLinkClicked (object sender, System.EventArgs e)
  38. {
  39. System.Diagnostics.Process.Start("http://caca.zoy.org/wiki/thepimp");
  40. }
  41. }
  42. }