gtk2 1.1.3-x86-mingw32 → 1.1.4-x86-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/ext/gtk2/extconf.rb CHANGED
@@ -58,8 +58,13 @@ check_cairo(rcairo_options)
58
58
 
59
59
  setup_win32(module_name, base_dir)
60
60
 
61
- PKGConfig.have_package('gthread-2.0')
62
- PKGConfig.have_package(package_id) or exit 1
61
+ unless required_pkg_config_package(package_id,
62
+ :debian => "libgtk2.0-dev",
63
+ :redhat => "gtk2-devel",
64
+ :homebrew => "gtk+",
65
+ :macports => "gtk2")
66
+ exit(false)
67
+ end
63
68
 
64
69
  have_header("st.h")
65
70
  have_header("ruby/st.h")
@@ -597,6 +597,16 @@ rg_set_back_pixmap(VALUE self, VALUE pixmap, VALUE parent_relative)
597
597
  return self;
598
598
  }
599
599
 
600
+ #if GTK_CHECK_VERSION(2,10,0)
601
+ static VALUE
602
+ rg_set_cursor(VALUE self, VALUE cursor)
603
+ {
604
+ gdk_window_set_cursor(_SELF(self),
605
+ RVAL2BOXED(cursor, GDK_TYPE_CURSOR));
606
+ return self;
607
+ }
608
+ #endif
609
+
600
610
  static VALUE
601
611
  rg_user_data(VALUE self)
602
612
  {
@@ -1049,6 +1059,9 @@ Init_gtk_gdk_window(VALUE mGdk)
1049
1059
  RG_DEF_METHOD(set_title, 1);
1050
1060
  RG_DEF_METHOD(set_background, 1);
1051
1061
  RG_DEF_METHOD(set_back_pixmap, 2);
1062
+ #if GTK_CHECK_VERSION(2,10,0)
1063
+ RG_DEF_METHOD(set_cursor, 1);
1064
+ #endif
1052
1065
  RG_DEF_METHOD(user_data, 0);
1053
1066
  RG_DEF_METHOD(geometry, 0);
1054
1067
  RG_DEF_METHOD(set_geometry_hints, 2);
@@ -963,6 +963,12 @@ rg_composited_p(VALUE self)
963
963
  {
964
964
  return CBOOL2RVAL(gtk_widget_is_composited(_SELF(self)));
965
965
  }
966
+
967
+ static VALUE
968
+ rg_window(VALUE self)
969
+ {
970
+ return GOBJ2RVAL(_SELF(self)->window);
971
+ }
966
972
  #endif
967
973
 
968
974
  static VALUE
@@ -1184,6 +1190,7 @@ Init_gtk_widget(VALUE mGtk)
1184
1190
  #if GTK_CHECK_VERSION(2,10,0)
1185
1191
  RG_DEF_METHOD(action, 0);
1186
1192
  RG_DEF_METHOD_P(composited, 0);
1193
+ RG_DEF_METHOD(window, 0);
1187
1194
  #endif
1188
1195
  RG_DEF_METHOD(set_window, 1);
1189
1196
  RG_DEF_METHOD(allocation, 0);
data/lib/1.8/gtk2.so CHANGED
Binary file
data/lib/1.9/gtk2.so CHANGED
Binary file
data/test/run-test.rb CHANGED
@@ -11,7 +11,7 @@ gtk_base = File.join(ruby_gnome2_base, "gtk2")
11
11
 
12
12
  [[glib_base, "glib2"],
13
13
  [atk_base, "atk"],
14
- [pango_base, "pangp"],
14
+ [pango_base, "pango"],
15
15
  [gdk_pixbuf_base, "gdk_pixbuf2"],
16
16
  [gtk_base, "gtk2"]].each do |target, module_name|
17
17
  if system("which make > /dev/null")
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtk2
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 3
10
- version: 1.1.3
9
+ - 4
10
+ version: 1.1.4
11
11
  platform: x86-mingw32
12
12
  authors:
13
13
  - The Ruby-GNOME2 Project Team
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-04-08 00:00:00 Z
18
+ date: 2012-07-21 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: atk
@@ -25,12 +25,12 @@ dependencies:
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- hash: 21
28
+ hash: 27
29
29
  segments:
30
30
  - 1
31
31
  - 1
32
- - 3
33
- version: 1.1.3
32
+ - 4
33
+ version: 1.1.4
34
34
  type: :runtime
35
35
  version_requirements: *id001
36
36
  - !ruby/object:Gem::Dependency
@@ -41,12 +41,12 @@ dependencies:
41
41
  requirements:
42
42
  - - ">="
43
43
  - !ruby/object:Gem::Version
44
- hash: 21
44
+ hash: 27
45
45
  segments:
46
46
  - 1
47
47
  - 1
48
- - 3
49
- version: 1.1.3
48
+ - 4
49
+ version: 1.1.4
50
50
  type: :runtime
51
51
  version_requirements: *id002
52
52
  - !ruby/object:Gem::Dependency
@@ -57,12 +57,12 @@ dependencies:
57
57
  requirements:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
- hash: 21
60
+ hash: 27
61
61
  segments:
62
62
  - 1
63
63
  - 1
64
- - 3
65
- version: 1.1.3
64
+ - 4
65
+ version: 1.1.4
66
66
  type: :runtime
67
67
  version_requirements: *id003
68
68
  description: Ruby/GTK2 is a Ruby binding of GTK+-2.x.
@@ -1747,7 +1747,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1747
1747
  requirements: []
1748
1748
 
1749
1749
  rubyforge_project:
1750
- rubygems_version: 1.8.15
1750
+ rubygems_version: 1.8.24
1751
1751
  signing_key:
1752
1752
  specification_version: 3
1753
1753
  summary: Ruby/GTK2 is a Ruby binding of GTK+-2.x.