gdk3 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +18 -4
  3. data/lib/gdk3/atom.rb +26 -0
  4. data/lib/gdk3/cairo.rb +60 -0
  5. data/lib/gdk3/color.rb +27 -0
  6. data/lib/gdk3/deprecated.rb +14 -16
  7. data/lib/gdk3/event.rb +38 -0
  8. data/lib/gdk3/loader.rb +266 -0
  9. data/lib/gdk3/rectangle.rb +38 -0
  10. data/lib/gdk3/rgba.rb +32 -0
  11. data/lib/gdk3/window-attr.rb +28 -0
  12. data/lib/gdk3/window.rb +21 -0
  13. data/lib/gdk3.rb +61 -2
  14. data/test/run-test.rb +15 -6
  15. data/test/test-gdk-cairo.rb +41 -0
  16. data/test/test-gdk-event-type.rb +25 -0
  17. data/test/test-gdk-event.rb +47 -49
  18. data/test/test-gdk-keyval.rb +21 -0
  19. data/test/test-gdk-pixbuf.rb +49 -0
  20. data/test/test-gdk-rectangle.rb +35 -4
  21. data/test/test-gdk-rgba.rb +6 -1
  22. data/test/test-gdk-window-attr.rb +1 -1
  23. metadata +23 -51
  24. data/ext/gdk3/depend +0 -11
  25. data/ext/gdk3/extconf.rb +0 -130
  26. data/ext/gdk3/gdk3.def +0 -12
  27. data/ext/gdk3/init.c +0 -35
  28. data/ext/gdk3/rbgdk.c +0 -491
  29. data/ext/gdk3/rbgdk3.h +0 -73
  30. data/ext/gdk3/rbgdk3conversions.h +0 -121
  31. data/ext/gdk3/rbgdk3private.h +0 -85
  32. data/ext/gdk3/rbgdkatom.c +0 -122
  33. data/ext/gdk3/rbgdkcairo.c +0 -91
  34. data/ext/gdk3/rbgdkcolor.c +0 -137
  35. data/ext/gdk3/rbgdkconst.c +0 -33
  36. data/ext/gdk3/rbgdkcursor.c +0 -92
  37. data/ext/gdk3/rbgdkdevice.c +0 -253
  38. data/ext/gdk3/rbgdkdevicemanager.c +0 -39
  39. data/ext/gdk3/rbgdkdisplay.c +0 -434
  40. data/ext/gdk3/rbgdkdisplaymanager.c +0 -55
  41. data/ext/gdk3/rbgdkdragcontext.c +0 -191
  42. data/ext/gdk3/rbgdkevent.c +0 -1173
  43. data/ext/gdk3/rbgdkgeometry.c +0 -253
  44. data/ext/gdk3/rbgdkkeymap.c +0 -151
  45. data/ext/gdk3/rbgdkkeyval.c +0 -108
  46. data/ext/gdk3/rbgdkpango.c +0 -197
  47. data/ext/gdk3/rbgdkpangorenderer.c +0 -144
  48. data/ext/gdk3/rbgdkpixbuf.c +0 -176
  49. data/ext/gdk3/rbgdkproperty.c +0 -305
  50. data/ext/gdk3/rbgdkrectangle.c +0 -140
  51. data/ext/gdk3/rbgdkrgb.c +0 -199
  52. data/ext/gdk3/rbgdkrgba.c +0 -142
  53. data/ext/gdk3/rbgdkscreen.c +0 -443
  54. data/ext/gdk3/rbgdkselection.c +0 -146
  55. data/ext/gdk3/rbgdkthreads.c +0 -77
  56. data/ext/gdk3/rbgdktimecoord.c +0 -133
  57. data/ext/gdk3/rbgdkvisual.c +0 -251
  58. data/ext/gdk3/rbgdkwindow.c +0 -1069
  59. data/ext/gdk3/rbgdkwindowattr.c +0 -191
  60. data/ext/gdk3/rbgdkx11.c +0 -102
  61. data/ext/gdk3/rbgdkx11x11window.c +0 -66
  62. data/extconf.rb +0 -49
  63. data/lib/gdk3/base.rb +0 -59
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gdk3
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Ruby-GNOME2 Project Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-09 00:00:00.000000000 Z
11
+ date: 2014-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pango
@@ -16,83 +16,55 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.2.0
19
+ version: 2.2.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.2.0
26
+ version: 2.2.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gdk_pixbuf2
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.2.0
33
+ version: 2.2.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 2.2.0
40
+ version: 2.2.1
41
41
  description: Ruby/GDK3 is a Ruby binding of GDK-3.x.
42
42
  email: ruby-gnome2-devel-en@lists.sourceforge.net
43
43
  executables: []
44
- extensions:
45
- - ext/gdk3/extconf.rb
44
+ extensions: []
46
45
  extra_rdoc_files: []
47
46
  files:
48
47
  - Rakefile
49
- - extconf.rb
50
48
  - lib/gdk3.rb
51
- - lib/gdk3/base.rb
49
+ - lib/gdk3/atom.rb
50
+ - lib/gdk3/cairo.rb
51
+ - lib/gdk3/color.rb
52
52
  - lib/gdk3/deprecated.rb
53
- - ext/gdk3/depend
54
- - ext/gdk3/extconf.rb
55
- - ext/gdk3/gdk3.def
56
- - ext/gdk3/init.c
57
- - ext/gdk3/rbgdk.c
58
- - ext/gdk3/rbgdk3.h
59
- - ext/gdk3/rbgdk3conversions.h
60
- - ext/gdk3/rbgdk3private.h
61
- - ext/gdk3/rbgdkatom.c
62
- - ext/gdk3/rbgdkcairo.c
63
- - ext/gdk3/rbgdkcolor.c
64
- - ext/gdk3/rbgdkconst.c
65
- - ext/gdk3/rbgdkcursor.c
66
- - ext/gdk3/rbgdkdevice.c
67
- - ext/gdk3/rbgdkdevicemanager.c
68
- - ext/gdk3/rbgdkdisplay.c
69
- - ext/gdk3/rbgdkdisplaymanager.c
70
- - ext/gdk3/rbgdkdragcontext.c
71
- - ext/gdk3/rbgdkevent.c
72
- - ext/gdk3/rbgdkgeometry.c
73
- - ext/gdk3/rbgdkkeymap.c
74
- - ext/gdk3/rbgdkkeyval.c
75
- - ext/gdk3/rbgdkpango.c
76
- - ext/gdk3/rbgdkpangorenderer.c
77
- - ext/gdk3/rbgdkpixbuf.c
78
- - ext/gdk3/rbgdkproperty.c
79
- - ext/gdk3/rbgdkrectangle.c
80
- - ext/gdk3/rbgdkrgb.c
81
- - ext/gdk3/rbgdkrgba.c
82
- - ext/gdk3/rbgdkscreen.c
83
- - ext/gdk3/rbgdkselection.c
84
- - ext/gdk3/rbgdkthreads.c
85
- - ext/gdk3/rbgdktimecoord.c
86
- - ext/gdk3/rbgdkvisual.c
87
- - ext/gdk3/rbgdkwindow.c
88
- - ext/gdk3/rbgdkwindowattr.c
89
- - ext/gdk3/rbgdkx11.c
90
- - ext/gdk3/rbgdkx11x11window.c
53
+ - lib/gdk3/event.rb
54
+ - lib/gdk3/loader.rb
55
+ - lib/gdk3/rectangle.rb
56
+ - lib/gdk3/rgba.rb
57
+ - lib/gdk3/window-attr.rb
58
+ - lib/gdk3/window.rb
91
59
  - test/gdk-test-utils.rb
92
60
  - test/run-test.rb
61
+ - test/test-gdk-cairo.rb
93
62
  - test/test-gdk-color.rb
63
+ - test/test-gdk-event-type.rb
94
64
  - test/test-gdk-event.rb
95
65
  - test/test-gdk-geometry.rb
66
+ - test/test-gdk-keyval.rb
67
+ - test/test-gdk-pixbuf.rb
96
68
  - test/test-gdk-rectangle.rb
97
69
  - test/test-gdk-rgba.rb
98
70
  - test/test-gdk-window-attr.rb
@@ -106,17 +78,17 @@ require_paths:
106
78
  - lib
107
79
  required_ruby_version: !ruby/object:Gem::Requirement
108
80
  requirements:
109
- - - '>='
81
+ - - ">="
110
82
  - !ruby/object:Gem::Version
111
83
  version: 1.9.3
112
84
  required_rubygems_version: !ruby/object:Gem::Requirement
113
85
  requirements:
114
- - - '>='
86
+ - - ">="
115
87
  - !ruby/object:Gem::Version
116
88
  version: '0'
117
89
  requirements: []
118
90
  rubyforge_project:
119
- rubygems_version: 2.0.14
91
+ rubygems_version: 2.2.2
120
92
  signing_key:
121
93
  specification_version: 4
122
94
  summary: Ruby/GDK3 is a Ruby binding of GDK-3.x.
data/ext/gdk3/depend DELETED
@@ -1,11 +0,0 @@
1
- install-so: install-headers
2
- install-headers:
3
- $(INSTALL_DATA) $(srcdir)/rbgdk3.h $(RUBYARCHDIR)
4
- $(INSTALL_DATA) $(srcdir)/rbgdk3conversions.h $(RUBYARCHDIR)
5
-
6
- install: install-pc
7
- install-pc:
8
- if test -n "$(pkgconfigdir)"; then \
9
- $(MAKEDIRS) $(pkgconfigdir); \
10
- $(INSTALL_DATA) ruby-gdk3.pc $(pkgconfigdir); \
11
- fi
data/ext/gdk3/extconf.rb DELETED
@@ -1,130 +0,0 @@
1
- =begin
2
- extconf.rb for Ruby/GDK extention library
3
- =end
4
-
5
- require 'pathname'
6
-
7
- source_dir = Pathname(__FILE__).dirname
8
- base_dir = source_dir.parent.parent.expand_path
9
- top_dir = base_dir.parent.expand_path
10
- top_build_dir = Pathname(".").parent.parent.parent.expand_path
11
-
12
- mkmf_gnome2_dir = top_dir + "glib2" + 'lib'
13
- version_suffix = ""
14
- unless mkmf_gnome2_dir.exist?
15
- if /(-\d+\.\d+\.\d+)(?:\.\d+)?\z/ =~ base_dir.basename.to_s
16
- version_suffix = $1
17
- mkmf_gnome2_dir = top_dir + "glib2#{version_suffix}" + 'lib'
18
- end
19
- end
20
-
21
- $LOAD_PATH.unshift(mkmf_gnome2_dir.to_s)
22
-
23
- module_name = "gdk3"
24
- package_id = "gdk-3.0"
25
-
26
- begin
27
- require 'mkmf-gnome2'
28
- rescue LoadError
29
- require 'rubygems'
30
- gem 'glib2'
31
- require 'mkmf-gnome2'
32
- end
33
-
34
- have_func("rb_errinfo")
35
-
36
- ["glib2", "pango", "gdk_pixbuf2"].each do |package|
37
- directory = "#{package}#{version_suffix}"
38
- build_dir = "#{directory}/tmp/#{RUBY_PLATFORM}/#{package}/#{RUBY_VERSION}"
39
- add_depend_package(package, "#{directory}/ext/#{package}",
40
- top_dir.to_s,
41
- :top_build_dir => top_build_dir.to_s,
42
- :target_build_dir => build_dir)
43
- end
44
-
45
- rcairo_options = {}
46
- rcairo_source_dir_names = ["rcairo"]
47
- if /mingw|cygwin|mswin/ =~ RUBY_PLATFORM
48
- rcairo_source_dir_names.unshift("rcairo.win32")
49
- end
50
- rcairo_source_dir_names.each do |rcairo_source_dir_name|
51
- rcairo_source_dir = top_dir.parent.expand_path + rcairo_source_dir_name
52
- if rcairo_source_dir.exist?
53
- rcairo_options[:rcairo_source_dir] = rcairo_source_dir.to_s
54
- break
55
- end
56
- end
57
-
58
- unless check_cairo(rcairo_options)
59
- exit(false)
60
- end
61
-
62
- setup_win32(module_name, base_dir)
63
-
64
- unless required_pkg_config_package(package_id,
65
- :debian => "libgtk-3-dev",
66
- :fedora => "gtk3-devel",
67
- :homebrew => "gtk+3",
68
- :macports => "gtk3")
69
- exit(false)
70
- end
71
-
72
- have_header("st.h")
73
- have_header("ruby/st.h")
74
-
75
- STDOUT.print("checking for target... ")
76
- STDOUT.flush
77
- target = PKGConfig.variable(package_id, "target")
78
- $defs << "-DRUBY_GDK3_TARGET=\\\"#{target}\\\""
79
- STDOUT.print(target, "\n")
80
-
81
- gdk_include_path = nil
82
- include_paths = $CFLAGS.gsub(/-D\w+/, '').split(/-I/) + ['/usr/include']
83
- include_paths.each do |path|
84
- path.strip!
85
-
86
- if FileTest.exist?("#{path}/gdk/gdkkeysyms.h")
87
- gdk_include_path = Pathname("#{path}/gdk")
88
- break
89
- end
90
- end
91
- raise "can't find gdkkeysyms.h" if gdk_include_path.nil?
92
-
93
- xlib_header = "X11/Xlib.h"
94
- if target == "x11" and have_header('X11/Xlib.h') and have_library("X11")
95
- have_func("XReadBitmapFileData", xlib_header)
96
- have_func("XGetErrorText", xlib_header)
97
- end
98
-
99
- create_pkg_config_file("Ruby/GDK3", package_id, ruby_gnome2_version)
100
-
101
- rbgdkkeysyms_h_path = Pathname("rbgdkkeysyms.h")
102
- gdkkeysyms_h_paths = []
103
- gdkkeysyms_h_paths << gdk_include_path + "gdkkeysyms.h"
104
- gdkkeysyms_h_paths << gdk_include_path + "gdkkeysyms-compat.h"
105
- rbgdkkeysyms_h_path.open("w") do |rbgdkkeysyms_h|
106
- gdkkeysyms_h_paths.each do |path|
107
- next unless path.exist?
108
- path.each_line do |line|
109
- if /^#define\s+(GDK_KEY_\w+)\s+\d+/ =~ line
110
- define_line = "rb_define_const(mGdkKeyval, \"#{$1}\", INT2FIX(#{$1}));"
111
- rbgdkkeysyms_h.puts(define_line)
112
- end
113
- end
114
- end
115
- end
116
-
117
- add_distcleanfile("rbgdkkeysyms.h")
118
-
119
- ensure_objs
120
-
121
- $defs << "-DRUBY_GDK3_COMPILATION"
122
- create_makefile(module_name)
123
-
124
- pkg_config_dir = with_config("pkg-config-dir")
125
- if pkg_config_dir.is_a?(String)
126
- File.open("Makefile", "ab") do |makefile|
127
- makefile.puts
128
- makefile.puts("pkgconfigdir=#{pkg_config_dir}")
129
- end
130
- end
data/ext/gdk3/gdk3.def DELETED
@@ -1,12 +0,0 @@
1
- EXPORTS
2
- Init_gdk3
3
- rbgdk_rval2gdkpoints
4
- rbgdk_rval2gdkatoms
5
- rbgdk_rval2gdkpixbufglist
6
- gdk_atom_get_type
7
- gdk_geometry_get_type
8
- gdk_windowattr_get_type
9
- get_gdkatom
10
- rbgdk_gdkevent2rval
11
- rbgdk_rval2gdkevent
12
-
data/ext/gdk3/init.c DELETED
@@ -1,35 +0,0 @@
1
- /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
- /*
3
- * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
- * Copyright (C) 2002-2006 Ruby-GNOME2 Project Team
5
- * Copyright (C) 1998-2001 Yukihiro Matsumoto,
6
- * Daisuke Kanda,
7
- * Hiroshi Igarashi
8
- *
9
- * This library is free software; you can redistribute it and/or
10
- * modify it under the terms of the GNU Lesser General Public
11
- * License as published by the Free Software Foundation; either
12
- * version 2.1 of the License, or (at your option) any later version.
13
- *
14
- * This library is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
- * Lesser General Public License for more details.
18
- *
19
- * You should have received a copy of the GNU Lesser General Public
20
- * License along with this library; if not, write to the Free Software
21
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22
- * MA 02110-1301 USA
23
- */
24
-
25
- #include "rbgdk3private.h"
26
- #include "gmodule.h"
27
-
28
- extern void Init_gdk3(void);
29
-
30
- void
31
- Init_gdk3(void)
32
- {
33
- Init_gdk();
34
- Init_gdkx11();
35
- }