選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

49 行
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. public partial class AboutWindow : Gtk.Window
  18. {
  19. public AboutWindow() : base(Gtk.WindowType.Toplevel)
  20. {
  21. this.Build();
  22. this.AppPaintable = true;
  23. Gdk.Pixbuf image = Gdk.Pixbuf.LoadFromResource("ThePimp.images.about.png");
  24. Gdk.Pixmap pixmap, pixmap_mask;
  25. image.RenderPixmapAndMask(out pixmap, out pixmap_mask, 255);
  26. this.GdkWindow.SetBackPixmap(pixmap, false);
  27. this.SetSizeRequest(image.Width, image.Height);
  28. this.Resizable = false;
  29. // FIXME: I have no idea how to enforce this in Stetic
  30. buttonClose.HasFocus = true;
  31. }
  32. protected virtual void OnButtonCloseClicked (object sender, System.EventArgs e)
  33. {
  34. this.Destroy();
  35. }
  36. protected virtual void OnButtonLinkClicked (object sender, System.EventArgs e)
  37. {
  38. System.Diagnostics.Process.Start("http://caca.zoy.org/wiki/thepimp");
  39. }
  40. }
  41. }