Ruby GTK3移行後のメインリポジトリ
Revisão | 1f80298b0afa0126b198301e3c5aedd18125ea1d (tree) |
---|---|
Hora | 2018-01-07 16:10:36 |
Autor | Shyouzou Sugitani <shy@user...> |
Commiter | Shyouzou Sugitani |
Prepare for Release of 5.0.5
@@ -1,3 +1,8 @@ | ||
1 | +Sun January 7 2018 Shyouzou Sugitani <shy@users.osdn.me> | |
2 | + * バージョン5.0.5リリース. | |
3 | + * ウインドウの描画方法刷新によりWayland環境に対応. | |
4 | + * Copyrightを2018年に更新した. | |
5 | + | |
1 | 6 | Wed August 16 2017 Shyouzou Sugitani <shy@users.osdn.me> |
2 | 7 | * deprecatedになっているメソッドを使用しないようにした. |
3 | 8 | (Gtk::Menu.popup) |
@@ -93,7 +93,7 @@ lib/ninix_main.rb をRuby インタプリタで実行してください。 | ||
93 | 93 | ---------- |
94 | 94 | Copyright (C) 2001, 2002 by Tamito KAJIYAMA <kajiyama3@geocities.co.jp> |
95 | 95 | Copyright (C) 2002-2007 by MATSUMURA Namihiko <nie@counterghost.net> |
96 | -Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
96 | +Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
97 | 97 | Copyright (C) 2002, 2003 by ABE Hideaki <abe-xx@eos.dricas.com> |
98 | 98 | Copyright (C) 2003-2005 by Shun-ichi TAHARA <jado@flowernet.gr.jp> |
99 | 99 |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | 3 | # Copyright (C) 2001, 2002 by Tamito KAJIYAMA |
4 | -# Copyright (C) 2004-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | +# Copyright (C) 2004-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | 5 | # |
6 | 6 | # This program is free software; you can redistribute it and/or modify it |
7 | 7 | # under the terms of the GNU General Public License (version 2) as |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # |
3 | 3 | # Copyright (C) 2001, 2002 by Tamito KAJIYAMA |
4 | 4 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
5 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
6 | 6 | # Copyright (C) 2003 by Shun-ichi TAHARA <jado@flowernet.gr.jp> |
7 | 7 | # |
8 | 8 | # This program is free software; you can redistribute it and/or modify it |
@@ -730,9 +730,6 @@ module Balloon | ||
730 | 730 | x, y = @position |
731 | 731 | @width = @balloon_surface.width |
732 | 732 | @height = @balloon_surface.height |
733 | - w = (@width * scale / 100.0).to_i | |
734 | - h = (@height * scale / 100.0).to_i | |
735 | - @window.update_size(w, h) | |
736 | 733 | reset_arrow() |
737 | 734 | reset_sstp_marker() |
738 | 735 | reset_message_regions() |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | 3 | # communicate.rb - ghost-to-ghost communication mechanism |
4 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | 5 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
6 | 6 | # |
7 | 7 | # This program is free software; you can redistribute it and/or modify it |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | 3 | # Copyright (C) 2001, 2002 by Tamito KAJIYAMA |
4 | -# Copyright (C) 2003-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | +# Copyright (C) 2003-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | 5 | # |
6 | 6 | # This program is free software; you can redistribute it and/or modify it |
7 | 7 | # under the terms of the GNU General Public License (version 2) as |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | 3 | # dll.rb - a pseudo DLL (SHIORI/SAORI API support) module for ninix |
4 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | 5 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
6 | 6 | # |
7 | 7 | # This program is free software; you can redistribute it and/or modify it |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | 3 | # aya.rb - an aya.dll compatible Shiori module for ninix |
4 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | 5 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
6 | 6 | # |
7 | 7 | # This program is free software; you can redistribute it and/or modify it |
@@ -245,7 +245,7 @@ module Aya | ||
245 | 245 | def show_description |
246 | 246 | Logging::Logging.info( |
247 | 247 | "Shiori: AYA compatible module for ninix\n" \ |
248 | - " Copyright (C) 2002-2017 by Shyouzou Sugitani\n" \ | |
248 | + " Copyright (C) 2002-2018 by Shyouzou Sugitani\n" \ | |
249 | 249 | " Copyright (C) 2002, 2003 by MATSUMURA Namihiko") |
250 | 250 | end |
251 | 251 |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | 3 | # aya5.rb - an aya.dll(Ver.5) compatible Shiori module for ninix |
4 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | 5 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
6 | 6 | # |
7 | 7 | # This program is free software; you can redistribute it and/or modify it |
@@ -251,7 +251,7 @@ module Aya5 | ||
251 | 251 | def show_description |
252 | 252 | Logging::Logging.info( |
253 | 253 | "Shiori: AYA5 compatible module for ninix\n" \ |
254 | - " Copyright (C) 2002-2017 by Shyouzou Sugitani\n" \ | |
254 | + " Copyright (C) 2002-2018 by Shyouzou Sugitani\n" \ | |
255 | 255 | " Copyright (C) 2002, 2003 by MATSUMURA Namihiko") |
256 | 256 | end |
257 | 257 |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | 3 | # bln.rb - a easyballoon compatible Saori module for ninix |
4 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | 5 | # |
6 | 6 | # This program is free software; you can redistribute it and/or modify it |
7 | 7 | # under the terms of the GNU General Public License (version 2) as |
@@ -468,7 +468,6 @@ module Bln | ||
468 | 468 | h = @balloon_surface.height |
469 | 469 | w = [8, (w * @scale / 100).to_i].max |
470 | 470 | h = [8, (h * @scale / 100).to_i].max |
471 | - @window.update_size(w, h) | |
472 | 471 | @base_x, @base_y = get_coordinate(w, h) |
473 | 472 | end |
474 | 473 |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | 3 | # gomi.rb - a gomi.dll compatible Saori module for ninix |
4 | -# Copyright (C) 2012-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | +# Copyright (C) 2012-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | 5 | # |
6 | 6 | # This program is free software; you can redistribute it and/or modify it |
7 | 7 | # under the terms of the GNU General Public License (version 2) as |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | 3 | # hanayu.rb - a "花柚" compatible Saori module for ninix |
4 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | 5 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
6 | 6 | # |
7 | 7 | # This program is free software; you can redistribute it and/or modify it |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | 3 | # httpc.rb - a HTTPC compatible Saori module for ninix |
4 | -# Copyright (C) 2011-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | +# Copyright (C) 2011-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | 5 | # |
6 | 6 | # This program is free software; you can redistribute it and/or modify it |
7 | 7 | # under the terms of the GNU General Public License (version 2) as |
@@ -3,7 +3,7 @@ | ||
3 | 3 | # kawari.rb - a "華和梨" compatible Shiori module for ninix |
4 | 4 | # Copyright (C) 2001, 2002 by Tamito KAJIYAMA |
5 | 5 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
6 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
6 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
7 | 7 | # Copyright (C) 2003 by Shun-ichi TAHARA <jado@flowernet.gr.jp> |
8 | 8 | # |
9 | 9 | # This program is free software; you can redistribute it and/or modify it |
@@ -2038,7 +2038,7 @@ module Kawari | ||
2038 | 2038 | "Shiori: KAWARI compatible module for ninix\n" \ |
2039 | 2039 | " Copyright (C) 2001, 2002 by Tamito KAJIYAMA\n" \ |
2040 | 2040 | " Copyright (C) 2002, 2003 by MATSUMURA Namihiko\n" \ |
2041 | - " Copyright (C) 2002-2017 by Shyouzou Sugitani\n" \ | |
2041 | + " Copyright (C) 2002-2018 by Shyouzou Sugitani\n" \ | |
2042 | 2042 | " Copyright (C) 2003 by Shun-ichi TAHARA") |
2043 | 2043 | end |
2044 | 2044 |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # |
3 | 3 | # kawari8.rb - a (Real) 華和梨 loader for ninix |
4 | 4 | # Copyright (C) 2002, 2003 by ABE Hideaki <abe-xx@eos.dricas.com> |
5 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.sourceforge.jp> | |
5 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.sourceforge.jp> | |
6 | 6 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
7 | 7 | # |
8 | 8 | # This program is free software; you can redistribute it and/or modify it |
@@ -63,7 +63,7 @@ module Kawari8 | ||
63 | 63 | Logging::Logging.info( |
64 | 64 | "Shiori: Real Kawari8 loader for ninix\n" \ |
65 | 65 | " Copyright (C) 2002, 2003 by ABE Hideaki\n" \ |
66 | - " Copyright (C) 2002-2017 by Shyouzou Sugitani\n" \ | |
66 | + " Copyright (C) 2002-2018 by Shyouzou Sugitani\n" \ | |
67 | 67 | " Copyright (C) 2002, 2003 by MATSUMURA Namihiko") |
68 | 68 | end |
69 | 69 |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | 3 | # mciaudio.rb - a MCIAUDIO compatible Saori module for ninix |
4 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | 5 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
6 | 6 | # |
7 | 7 | # This program is free software; you can redistribute it and/or modify it |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | 3 | # mciaudior.rb - a MCIAUDIOR compatible Saori module for ninix |
4 | -# Copyright (C) 2003-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | +# Copyright (C) 2003-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | 5 | # Copyright (C) 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
6 | 6 | # |
7 | 7 | # This program is free software; you can redistribute it and/or modify it |
@@ -3,7 +3,7 @@ | ||
3 | 3 | # misaka.rb - a "美坂" compatible Shiori module for ninix |
4 | 4 | # Copyright (C) 2002 by Tamito KAJIYAMA |
5 | 5 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
6 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
6 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
7 | 7 | # |
8 | 8 | # This program is free software; you can redistribute it and/or modify it |
9 | 9 | # under the terms of the GNU General Public License (version 2) as |
@@ -1179,7 +1179,7 @@ module Misaka | ||
1179 | 1179 | "Shiori: MISAKA compatible module for ninix\n" \ |
1180 | 1180 | " Copyright (C) 2002 by Tamito KAJIYAMA\n" \ |
1181 | 1181 | " Copyright (C) 2002, 2003 by MATSUMURA Namihiko\n" \ |
1182 | - " Copyright (C) 2002-2017 by Shyouzou Sugitani") | |
1182 | + " Copyright (C) 2002-2018 by Shyouzou Sugitani") | |
1183 | 1183 | end |
1184 | 1184 | |
1185 | 1185 | def reset |
@@ -3,7 +3,7 @@ | ||
3 | 3 | # niseshiori.rb - a "偽栞" compatible Shiori module for ninix |
4 | 4 | # Copyright (C) 2001, 2002 by Tamito KAJIYAMA |
5 | 5 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
6 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
6 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
7 | 7 | # Copyright (C) 2003 by Shun-ichi TAHARA <jado@flowernet.gr.jp> |
8 | 8 | # |
9 | 9 | # This program is free software; you can redistribute it and/or modify it |
@@ -1225,7 +1225,7 @@ module Niseshiori | ||
1225 | 1225 | "Shiori: NiseShiori compatible module for ninix\n" \ |
1226 | 1226 | " Copyright (C) 2001, 2002 by Tamito KAJIYAMA\n" \ |
1227 | 1227 | " Copyright (C) 2002, 2003 by MATSUMURA Namihiko\n" \ |
1228 | - " Copyright (C) 2002-2017 by Shyouzou Sugitani\n" \ | |
1228 | + " Copyright (C) 2002-2018 by Shyouzou Sugitani\n" \ | |
1229 | 1229 | " Copyright (C) 2003 by Shun-ichi TAHARA") |
1230 | 1230 | end |
1231 | 1231 |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | 3 | # osuwari.rb - a Osuwari compatible Saori module for ninix |
4 | -# Copyright (C) 2006-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | +# Copyright (C) 2006-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | 5 | # |
6 | 6 | # This program is free software; you can redistribute it and/or modify it |
7 | 7 | # under the terms of the GNU General Public License (version 2) as |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | 3 | # saori_cpuid.rb - a saori_cpuid compatible Saori module for ninix |
4 | -# Copyright (C) 2003-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | +# Copyright (C) 2003-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | 5 | # |
6 | 6 | # This program is free software; you can redistribute it and/or modify it |
7 | 7 | # under the terms of the GNU General Public License (version 2) as |
@@ -3,7 +3,7 @@ | ||
3 | 3 | # satori.rb - a "里々" compatible Shiori module for ninix |
4 | 4 | # Copyright (C) 2002 by Tamito KAJIYAMA |
5 | 5 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
6 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
6 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
7 | 7 | # Copyright (C) 2003, 2004 by Shun-ichi TAHARA <jado@flowernet.gr.jp> |
8 | 8 | # |
9 | 9 | # This program is free software; you can redistribute it and/or modify it |
@@ -2715,7 +2715,7 @@ module Satori | ||
2715 | 2715 | "Shiori: SATORI compatible module for ninix\n" \ |
2716 | 2716 | " Copyright (C) 2002 by Tamito KAJIYAMA\n" \ |
2717 | 2717 | " Copyright (C) 2002, 2003 by MATSUMURA Namihiko\n" \ |
2718 | - " Copyright (C) 2002-2017 by Shyouzou Sugitani\n" \ | |
2718 | + " Copyright (C) 2002-2018 by Shyouzou Sugitani\n" \ | |
2719 | 2719 | " Copyright (C) 2003, 2004 by Shun-ichi TAHARA") |
2720 | 2720 | end |
2721 | 2721 |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | 3 | # ssu.rb - a ssu compatible Saori module for ninix |
4 | -# Copyright (C) 2003-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | +# Copyright (C) 2003-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | 5 | # |
6 | 6 | # This program is free software; you can redistribute it and/or modify it |
7 | 7 | # under the terms of the GNU General Public License (version 2) as |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | 3 | # textcopy.rb - a TEXTCOPY compatible Saori module for ninix |
4 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | 5 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
6 | 6 | # |
7 | 7 | # This program is free software; you can redistribute it and/or modify it |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | 3 | # wmove.rb - a wmove.dll compatible Saori module for ninix |
4 | -# Copyright (C) 2003-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | +# Copyright (C) 2003-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | 5 | # |
6 | 6 | # This program is free software; you can redistribute it and/or modify it |
7 | 7 | # under the terms of the GNU General Public License (version 2) as |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # |
3 | 3 | # yaya.rb - a (Real) YAYA loader for ninix |
4 | 4 | # Copyright (C) 2004 by linjian |
5 | -# Copyright (C) 2004-2017 by Shyouzou Sugitani <shy@users.sourceforge.jp> | |
5 | +# Copyright (C) 2004-2018 by Shyouzou Sugitani <shy@users.sourceforge.jp> | |
6 | 6 | # Copyright (C) 2011 by henryhu |
7 | 7 | # |
8 | 8 | # This program is free software; you can redistribute it and/or modify it |
@@ -58,7 +58,7 @@ module Yaya | ||
58 | 58 | Logging::Logging.info( |
59 | 59 | "Shiori: a (Real) YAYA loader for ninix\n" \ |
60 | 60 | " Copyright (C) 2004 by linjian\n" \ |
61 | - " Copyright (C) 2004-2017 by Shyouzou Sugitani\n" \ | |
61 | + " Copyright (C) 2004-2018 by Shyouzou Sugitani\n" \ | |
62 | 62 | " Copyright (C) 2011 by henryhu") |
63 | 63 | end |
64 | 64 |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | 3 | # Copyright (C) 2001, 2002 by Tamito KAJIYAMA |
4 | -# Copyright (C) 2004-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | +# Copyright (C) 2004-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | 5 | # |
6 | 6 | # This program is free software; you can redistribute it and/or modify it |
7 | 7 | # under the terms of the GNU General Public License (version 2) as |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # |
3 | 3 | # Copyright (C) 2001, 2002 by Tamito KAJIYAMA |
4 | 4 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
5 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
6 | 6 | # |
7 | 7 | # This program is free software; you can redistribute it and/or modify it |
8 | 8 | # under the terms of the GNU General Public License (version 2) as |
@@ -3,7 +3,7 @@ | ||
3 | 3 | # install.rb - an installer module for ninix |
4 | 4 | # Copyright (C) 2001, 2002 by Tamito KAJIYAMA |
5 | 5 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
6 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
6 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
7 | 7 | # Copyright (C) 2003 by Shun-ichi TAHARA <jado@flowernet.gr.jp> |
8 | 8 | # |
9 | 9 | # This program is free software; you can redistribute it and/or modify it |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | 3 | # Copyright (C) 2002 by Tamito KAJIYAMA |
4 | -# Copyright (C) 2003-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | +# Copyright (C) 2003-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | 5 | # |
6 | 6 | # This program is free software; you can redistribute it and/or modify it |
7 | 7 | # under the terms of the GNU General Public License (version 2) as |
@@ -1,6 +1,6 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | -# Copyright (C) 2004-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
3 | +# Copyright (C) 2004-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | 4 | # |
5 | 5 | # This program is free software; you can redistribute it and/or modify it |
6 | 6 | # under the terms of the GNU General Public License (version 2) as |
@@ -311,7 +311,6 @@ module Kinoko | ||
311 | 311 | redraw(w, cr) |
312 | 312 | next true |
313 | 313 | end |
314 | - @window.update_size(@w, @h) | |
315 | 314 | set_position() |
316 | 315 | show() |
317 | 316 | reset_z_order() |
@@ -442,8 +441,6 @@ module Kinoko | ||
442 | 441 | w = [8, (w * @__scale / 100).to_i].max |
443 | 442 | h = [8, (h * @__scale / 100).to_i].max |
444 | 443 | @w, @h = w, h # XXX |
445 | - @window.update_size(w, h) | |
446 | - @window.queue_resize() | |
447 | 444 | @seriko.start(self) |
448 | 445 | @seriko.invoke_kinoko(self) |
449 | 446 | end |
@@ -1,6 +1,6 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | -# Copyright (C) 2011-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
3 | +# Copyright (C) 2011-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | 4 | # |
5 | 5 | # This program is free software; you can redistribute it and/or modify it |
6 | 6 | # under the terms of the GNU General Public License (version 2) as |
@@ -1,6 +1,6 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | -# Copyright (C) 2015-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
3 | +# Copyright (C) 2015-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | 4 | # |
5 | 5 | # This program is free software; you can redistribute it and/or modify it |
6 | 6 | # under the terms of the GNU General Public License (version 2) as |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | 3 | # Copyright (C) 2001, 2002 by Tamito KAJIYAMA |
4 | -# Copyright (C) 2004-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | +# Copyright (C) 2004-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | 5 | # |
6 | 6 | # This program is free software; you can redistribute it and/or modify it |
7 | 7 | # under the terms of the GNU General Public License (version 2) as |
@@ -1,6 +1,6 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | -# Copyright (C) 2003-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
3 | +# Copyright (C) 2003-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | 4 | # Copyright (C) 2003 by Shun-ichi TAHARA <jado@flowernet.gr.jp> |
5 | 5 | # |
6 | 6 | # This program is free software; you can redistribute it and/or modify it |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | 3 | # metamagic.rb - unknown unknowns |
4 | -# Copyright (C) 2011-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | +# Copyright (C) 2011-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | 5 | # |
6 | 6 | # This program is free software; you can redistribute it and/or modify it |
7 | 7 | # under the terms of the GNU General Public License (version 2) as |
@@ -1,6 +1,6 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | -# Copyright (C) 2004-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
3 | +# Copyright (C) 2004-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | 4 | # |
5 | 5 | # This program is free software; you can redistribute it and/or modify it |
6 | 6 | # under the terms of the GNU General Public License (version 2) as |
@@ -395,7 +395,6 @@ module Nekodorif | ||
395 | 395 | return |
396 | 396 | end |
397 | 397 | @w, @h = w, h |
398 | - @window.update_size(@w, @h) | |
399 | 398 | @image_surface = new_surface |
400 | 399 | @darea.queue_draw() |
401 | 400 | end |
@@ -636,7 +635,6 @@ module Nekodorif | ||
636 | 635 | return |
637 | 636 | end |
638 | 637 | @w, @h = w, h |
639 | - @window.update_size(@w, @h) | |
640 | 638 | @image_surface = new_surface |
641 | 639 | @darea.queue_draw() |
642 | 640 | end |
@@ -1,7 +1,7 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | 3 | # Copyright (C) 2001-2004 by MATSUMURA Namihiko <nie@counterghost.net> |
4 | -# Copyright (C) 2004-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | +# Copyright (C) 2004-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | 5 | # |
6 | 6 | # This program is free software; you can redistribute it and/or modify it |
7 | 7 | # under the terms of the GNU General Public License (version 2) as |
@@ -1,6 +1,6 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | -# Copyright (C) 2003-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
3 | +# Copyright (C) 2003-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | 4 | # |
5 | 5 | # This program is free software; you can redistribute it and/or modify it |
6 | 6 | # under the terms of the GNU General Public License (version 2) as |
@@ -54,7 +54,7 @@ module Pix | ||
54 | 54 | def initialize(type: Gtk::WindowType::TOPLEVEL) |
55 | 55 | super(type) |
56 | 56 | set_decorated(false) |
57 | - set_resizable(false) | |
57 | + #set_resizable(false) | |
58 | 58 | signal_connect("screen-changed") do |widget, old_screen| |
59 | 59 | screen_changed(widget, :old_screen => old_screen) |
60 | 60 | next true |
@@ -71,8 +71,13 @@ module Pix | ||
71 | 71 | end |
72 | 72 | @supports_alpha = composited? |
73 | 73 | fail "assert" unless not visual.nil? |
74 | - workarea = screen.display.primary_monitor.workarea # XXX | |
75 | - @workarea = [workarea.x, workarea.y, workarea.width, workarea.height] | |
74 | + if realized? | |
75 | + workarea = screen.display.get_monitor_at_window(window).workarea # XXX | |
76 | + else | |
77 | + workarea = screen.display.get_monitor(0).workarea # XXX | |
78 | + end | |
79 | + @workarea = [0, 0, workarea.width, workarea.height] | |
80 | + maximize # not fullscreen | |
76 | 81 | end |
77 | 82 | end |
78 | 83 |
@@ -85,50 +90,27 @@ module Pix | ||
85 | 90 | super() |
86 | 91 | set_app_paintable(true) |
87 | 92 | set_focus_on_map(false) |
88 | - @__position = [0, 0] | |
89 | 93 | @__surface_position = [0, 0] |
90 | - signal_connect_after('size_allocate') do |a| | |
91 | - size_allocate(a) | |
92 | - next false | |
93 | - end | |
94 | 94 | # create drawing area |
95 | 95 | @darea = Gtk::DrawingArea.new |
96 | + @darea.set_size_request(*size) # XXX | |
96 | 97 | @darea.show() |
97 | 98 | add(@darea) |
98 | 99 | end |
99 | 100 | |
100 | - def update_size(w, h) | |
101 | - @darea.set_size_request(w, h) # XXX | |
102 | - queue_resize() | |
103 | - end | |
104 | - | |
105 | - def size_allocate(allocation) | |
106 | - new_x, new_y = @__position | |
107 | - base_move(new_x, new_y) | |
108 | - end | |
109 | - | |
110 | 101 | def move(x, y) |
111 | - left, top, scrn_w, scrn_h = @workarea | |
112 | - w, h = @darea.size_request() # XXX | |
113 | - new_x = [[left, x].max, left + scrn_w - w].min | |
114 | - new_y = [[top, y].max, top + scrn_h - h].min | |
115 | - base_move(new_x, new_y) | |
116 | - @__position = [new_x, new_y] | |
117 | 102 | @__surface_position = [x, y] |
118 | 103 | @darea.queue_draw() |
119 | 104 | end |
120 | 105 | |
121 | 106 | def get_draw_offset |
122 | - window_x, window_y = @__position | |
123 | - surface_x, surface_y = @__surface_position | |
124 | - return surface_x - window_x, surface_y - window_y | |
107 | + return @__surface_position | |
125 | 108 | end |
126 | 109 | |
127 | 110 | def winpos_to_surfacepos(x, y, scale) |
128 | - window_x, window_y = @__position | |
129 | 111 | surface_x, surface_y = @__surface_position |
130 | - new_x = ((x - (surface_x - window_x)) * 100 / scale).to_i | |
131 | - new_y = ((y - (surface_y - window_y)) * 100 / scale).to_i | |
112 | + new_x = ((x - surface_x) * 100 / scale).to_i | |
113 | + new_y = ((y - surface_y) * 100 / scale).to_i | |
132 | 114 | return new_x, new_y |
133 | 115 | end |
134 | 116 |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # |
3 | 3 | # Copyright (C) 2001, 2002 by Tamito KAJIYAMA |
4 | 4 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
5 | -# Copyright (C) 2004-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | +# Copyright (C) 2004-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
6 | 6 | # Copyright (C) 2003-2005 by Shun-ichi TAHARA <jado@flowernet.gr.jp> |
7 | 7 | # |
8 | 8 | # This program is free software; you can redistribute it and/or modify it |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # |
3 | 3 | # Copyright (C) 2001, 2002 by Tamito KAJIYAMA |
4 | 4 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
5 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
6 | 6 | # Copyright (C) 2003 by Shun-ichi TAHARA <jado@flowernet.gr.jp> |
7 | 7 | # |
8 | 8 | # This program is free software; you can redistribute it and/or modify it |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # |
3 | 3 | # script.rb - a Sakura Script parser |
4 | 4 | # Copyright (C) 2001, 2002 by Tamito KAJIYAMA |
5 | -# Copyright (C) 2004-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | +# Copyright (C) 2004-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
6 | 6 | # |
7 | 7 | # This program is free software; you can redistribute it and/or modify it |
8 | 8 | # under the terms of the GNU General Public License (version 2) as |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # |
3 | 3 | # Copyright (C) 2002 by Tamito KAJIYAMA |
4 | 4 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
5 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
6 | 6 | # |
7 | 7 | # This program is free software; you can redistribute it and/or modify it |
8 | 8 | # under the terms of the GNU General Public License (version 2) as |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # |
3 | 3 | # Copyright (C) 2001, 2002 by Tamito KAJIYAMA |
4 | 4 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
5 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
6 | 6 | # |
7 | 7 | # This program is free software; you can redistribute it and/or modify it |
8 | 8 | # under the terms of the GNU General Public License (version 2) as |
@@ -3,7 +3,7 @@ | ||
3 | 3 | # sstplib.rb - an SSTP library module in Ruby |
4 | 4 | # Copyright (C) 2001, 2002 by Tamito KAJIYAMA |
5 | 5 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
6 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
6 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
7 | 7 | # |
8 | 8 | # This program is free software; you can redistribute it and/or modify it |
9 | 9 | # under the terms of the GNU General Public License (version 2) as |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # |
3 | 3 | # Copyright (C) 2001, 2002 by Tamito KAJIYAMA |
4 | 4 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
5 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
6 | 6 | # Copyright (C) 2003 by Shun-ichi TAHARA <jado@flowernet.gr.jp> |
7 | 7 | # |
8 | 8 | # This program is free software; you can redistribute it and/or modify it |
@@ -1116,8 +1116,6 @@ module Surface | ||
1116 | 1116 | yoffset = ((dh - h) / 2) |
1117 | 1117 | end |
1118 | 1118 | @window_offset = [xoffset, yoffset] |
1119 | - # resize window | |
1120 | - @window.update_size(*get_max_size()) | |
1121 | 1119 | @seriko.start(self) |
1122 | 1120 | # relocate window |
1123 | 1121 | unless @dragged # XXX |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # |
3 | 3 | # Copyright (C) 2001, 2002 by Tamito KAJIYAMA |
4 | 4 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
5 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
6 | 6 | # |
7 | 7 | # This program is free software; you can redistribute it and/or modify it |
8 | 8 | # under the terms of the GNU General Public License (version 2) as |
@@ -1,6 +1,6 @@ | ||
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | -# Copyright (C) 2005-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
3 | +# Copyright (C) 2005-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
4 | 4 | # |
5 | 5 | # This program is free software; you can redistribute it and/or modify it |
6 | 6 | # under the terms of the GNU General Public License (version 2) as |
@@ -18,7 +18,7 @@ module Version | ||
18 | 18 | bindtextdomain("ninix-aya") |
19 | 19 | |
20 | 20 | def self.NUMBER |
21 | - '5.0.4' | |
21 | + '5.0.5' | |
22 | 22 | end |
23 | 23 | |
24 | 24 | def self.CODENAME |
@@ -38,7 +38,7 @@ module Version | ||
38 | 38 | .concat('\_q') |
39 | 39 | .concat('Copyright (c) 2001, 2002 Tamito KAJIYAMA\n') |
40 | 40 | .concat('Copyright (c) 2002-2006 MATSUMURA Namihiko\n') |
41 | - .concat('Copyright (c) 2002-2017 Shyouzou Sugitani\n') | |
41 | + .concat('Copyright (c) 2002-2018 Shyouzou Sugitani\n') | |
42 | 42 | .concat('Copyright (c) 2002, 2003 ABE Hideaki\n') |
43 | 43 | .concat('Copyright (c) 2003-2005 Shun-ichi TAHARA\e') |
44 | 44 | end |
@@ -2,7 +2,7 @@ | ||
2 | 2 | # |
3 | 3 | # Copyright (C) 2001, 2002 by Tamito KAJIYAMA |
4 | 4 | # Copyright (C) 2002, 2003 by MATSUMURA Namihiko <nie@counterghost.net> |
5 | -# Copyright (C) 2002-2017 by Shyouzou Sugitani <shy@users.osdn.me> | |
5 | +# Copyright (C) 2002-2018 by Shyouzou Sugitani <shy@users.osdn.me> | |
6 | 6 | # Copyright (C) 2003-2005 by Shun-ichi TAHARA <jado@flowernet.gr.jp> |
7 | 7 | # |
8 | 8 | # This program is free software; you can redistribute it and/or modify it |