gdk3 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9088f4468558b5e2f4e35b39087d3209093062cf
4
- data.tar.gz: 6ff5f087104121c00f673aa51ee3be7375eb39ac
3
+ metadata.gz: 84a0f68f6c711d7004d6de4fec17891a554c46fa
4
+ data.tar.gz: 3a2dfd2e13789d47ac6e641a8c68e0471ca56c55
5
5
  SHA512:
6
- metadata.gz: b7cb40f88ffdc214609a8216cfae22af9cbe474350a760a5b3cb5dc48b11791493c493e4f3ce74224cf12f1b4b4b1463c0792630aee85a5268fb0fdd55689830
7
- data.tar.gz: 7cdf8289df42eee083020a143eb0a239d4dc4d441e0f1314cf5bda621d635d6e7f2d9d4fad8eb7ef98674afd38c9d868dda209e2dffbe76bbe4b9fce4e54f95d
6
+ metadata.gz: 935655061fa9cbbb5d407905f72100b676afece33a08dd03feda2061977b8a5ae930828ca2fb127633e8ff97340f096a6618f5446af4734873df9cf383641d36
7
+ data.tar.gz: 42bb6f1c360309b56c03b72b3b7252942dab60ecaa356b280dafa1230dc6d5f4e4203ab21edd71b26d3a3c3349de20c4e64771411a8ed958177aa46e11809477
data/Rakefile CHANGED
@@ -26,11 +26,12 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
26
26
  :name => "gtk+",
27
27
  :download_site => :gnome,
28
28
  :label => "GTK+",
29
- :version => "3.10.6",
29
+ :version => "3.10.7",
30
30
  :compression_method => "xz",
31
31
  :windows => {
32
32
  :configure_args => [
33
33
  "--enable-introspection",
34
+ "--with-included-immodules",
34
35
  ],
35
36
  :patches => [
36
37
  "gdk+-3.10.6-remove-def-use.diff",
@@ -39,20 +39,20 @@ rg_initialize(int argc, VALUE *argv, VALUE self)
39
39
  cursor = gdk_cursor_new_from_name(RVAL2GDKDISPLAYOBJECT(display),
40
40
  RVAL2CSTR(type_or_name));
41
41
  else
42
- cursor = gdk_cursor_new_for_display(RVAL2GDKDISPLAYOBJECT(display),
42
+ cursor = gdk_cursor_new_for_display(RVAL2GDKDISPLAYOBJECT(display),
43
43
  RVAL2GDKCURSORTYPE(type_or_name));
44
44
  } else if (argc == 4) {
45
45
  VALUE display, pixbuf, x, y;
46
46
  rb_scan_args(argc, argv, "40", &display, &pixbuf, &x, &y);
47
- cursor = gdk_cursor_new_from_pixbuf(RVAL2GDKDISPLAYOBJECT(display),
48
- RVAL2GDKPIXBUF(pixbuf),
47
+ cursor = gdk_cursor_new_from_pixbuf(RVAL2GDKDISPLAYOBJECT(display),
48
+ RVAL2GDKPIXBUF(pixbuf),
49
49
  NUM2INT(x), NUM2INT(y));
50
50
  /* deprecated
51
51
  } else if (argc == 6) {
52
52
  VALUE pixmap, mask, fg, bg, x, y;
53
53
  rb_scan_args(argc, argv, "60", &pixmap, &mask, &fg, &bg, &x, &y);
54
- cursor = gdk_cursor_new_from_pixmap(RVAL2GDKPIXMAP(pixmap),
55
- NIL_P(mask)?NULL:RVAL2GDKPIXMAP(mask),
54
+ cursor = gdk_cursor_new_from_pixmap(RVAL2GDKPIXMAP(pixmap),
55
+ NIL_P(mask)?NULL:RVAL2GDKPIXMAP(mask),
56
56
  RVAL2GDKCOLOR(fg),
57
57
  RVAL2GDKCOLOR(bg),
58
58
  NUM2INT(x), NUM2INT(y));
@@ -63,12 +63,6 @@ rg_initialize(int argc, VALUE *argv, VALUE self)
63
63
  return Qnil;
64
64
  }
65
65
 
66
- static VALUE
67
- rg_display(VALUE self)
68
- {
69
- return GOBJ2RVAL(gdk_cursor_get_display(RVAL2GDKCURSOR(self)));
70
- }
71
-
72
66
  /* TODO
73
67
  static VALUE
74
68
  rg_cursor_type(VALUE self)
@@ -89,7 +83,6 @@ Init_gdk_cursor(VALUE mGdk)
89
83
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GDK_TYPE_CURSOR, "Cursor", mGdk);
90
84
 
91
85
  RG_DEF_METHOD(initialize, -1);
92
- RG_DEF_METHOD(display, 0);
93
86
  /* TODO
94
87
  RG_DEF_METHOD(cursor_type, 0);
95
88
  */
@@ -1,6 +1,6 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Copyright (C) 2013 Ruby-GNOME2 Project Team
3
+ * Copyright (C) 2013-2014 Ruby-GNOME2 Project Team
4
4
  *
5
5
  * This library is free software; you can redistribute it and/or
6
6
  * modify it under the terms of the GNU Lesser General Public
@@ -33,7 +33,7 @@ rg_devices(VALUE self)
33
33
  void
34
34
  Init_gdk_device_manager(VALUE mGdk)
35
35
  {
36
- VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GDK_TYPE_DISPLAY_MANAGER, "DeviceManager", mGdk);
36
+ VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GDK_TYPE_DEVICE_MANAGER, "DeviceManager", mGdk);
37
37
 
38
38
  RG_DEF_METHOD(devices, 0);
39
39
  }
@@ -86,6 +86,12 @@ rg_default_screen(VALUE self)
86
86
  return GOBJ2RVAL(gdk_display_get_default_screen(_SELF(self)));
87
87
  }
88
88
 
89
+ static VALUE
90
+ rg_device_manager(VALUE self)
91
+ {
92
+ return GOBJ2RVAL(gdk_display_get_device_manager(_SELF(self)));
93
+ }
94
+
89
95
  static VALUE
90
96
  rg_device_is_grabbed_p(VALUE self, VALUE device)
91
97
  {
@@ -382,6 +388,7 @@ Init_gdk_display(VALUE mGdk)
382
388
  RG_DEF_METHOD(get_screen, 1);
383
389
  RG_DEF_ALIAS("[]", "get_screen");
384
390
  RG_DEF_METHOD(default_screen, 0);
391
+ RG_DEF_METHOD(device_manager, 0);
385
392
 
386
393
  RG_DEF_METHOD_P(device_is_grabbed, 1);
387
394
 
@@ -1,6 +1,6 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Copyright (C) 2002-2013 Ruby-GNOME2 Project Team
3
+ * Copyright (C) 2002-2014 Ruby-GNOME2 Project Team
4
4
  * Copyright (C) 1998-2000 Yukihiro Matsumoto,
5
5
  * Daisuke Kanda,
6
6
  * Hiroshi Igarashi
@@ -721,8 +721,6 @@ ATTR_FLOAT(button, x_root);
721
721
  ATTR_FLOAT(button, y_root);
722
722
 
723
723
  /* GdkEventTouch */
724
- ATTR_GOBJ(touch, window);
725
- ATTR_BOOL(touch, send_event);
726
724
  ATTR_UINT(touch, time);
727
725
  ATTR_FLOAT(touch, x);
728
726
  ATTR_FLOAT(touch, y);
@@ -902,10 +900,17 @@ Init_gdk_event(VALUE mGdk)
902
900
  rbg_define_method(rb_cGdkEvent, "screen", gdkevent_screen, 0);
903
901
  rbg_define_method(rb_cGdkEvent, "set_screen", gdkevent_set_screen, 1);
904
902
 
903
+ /* GdkEventAny's fields */
904
+ DEFINE_ACCESSOR(rb_cGdkEvent, any, window);
905
+ rbg_define_method(rb_cGdkEvent, "send_event?", gdkeventany_send_event, 0);
906
+ rbg_define_method(rb_cGdkEvent, "set_send_event", gdkeventany_set_send_event, 1);
907
+
905
908
  /*
906
909
  * GdkEvent's Constants
907
910
  */
908
911
  rb_define_const(rb_cGdkEvent, "CURRENT_TIME", INT2FIX(GDK_CURRENT_TIME));
912
+ rb_define_const(rb_cGdkEvent, "PROPAGATE", CBOOL2RVAL(GDK_EVENT_PROPAGATE));
913
+ rb_define_const(rb_cGdkEvent, "STOP", CBOOL2RVAL(GDK_EVENT_STOP));
909
914
  rb_define_const(rb_cGdkEvent, "PRIORITY_EVENTS", INT2FIX(GDK_PRIORITY_EVENTS));
910
915
  rb_define_const(rb_cGdkEvent, "PRIORITY_REDRAW", INT2FIX(GDK_PRIORITY_REDRAW));
911
916
 
@@ -926,9 +931,6 @@ Init_gdk_event(VALUE mGdk)
926
931
  rb_cGdkEventAny =
927
932
  G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_ANY, "EventAny",
928
933
  mGdk, rb_cGdkEvent);
929
- DEFINE_ACCESSOR(rb_cGdkEventAny, any, window);
930
- rbg_define_method(rb_cGdkEventAny, "send_event?", gdkeventany_send_event, 0);
931
- rbg_define_method(rb_cGdkEventAny, "set_send_event", gdkeventany_set_send_event, 1);
932
934
 
933
935
  /* GdkEventExpose */
934
936
  rb_cGdkEventExpose =
@@ -988,9 +990,6 @@ Init_gdk_event(VALUE mGdk)
988
990
  rb_cGdkEventTouch =
989
991
  G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_TOUCH, "EventTouch",
990
992
  mGdk, rb_cGdkEvent);
991
- DEFINE_ACCESSOR(rb_cGdkEventTouch, touch, window);
992
- rbg_define_method(rb_cGdkEventTouch, "send_event?", gdkeventtouch_send_event, 0);
993
- rbg_define_method(rb_cGdkEventTouch, "set_send_event", gdkeventtouch_set_send_event, 1);
994
993
  DEFINE_ACCESSOR(rb_cGdkEventTouch, touch, time);
995
994
  DEFINE_ACCESSOR(rb_cGdkEventTouch, touch, x);
996
995
  DEFINE_ACCESSOR(rb_cGdkEventTouch, touch, y);
@@ -55,6 +55,12 @@ rg_window_type(VALUE self)
55
55
  return GDKWINDOWTYPE2RVAL(gdk_window_get_window_type(_SELF(self)));
56
56
  }
57
57
 
58
+ static VALUE
59
+ rg_display(VALUE self)
60
+ {
61
+ return GOBJ2RVAL(gdk_window_get_display(_SELF(self)));
62
+ }
63
+
58
64
  static VALUE
59
65
  rg_show(VALUE self)
60
66
  {
@@ -930,6 +936,7 @@ Init_gdk_window(VALUE mGdk)
930
936
  RG_DEF_METHOD(initialize, 3);
931
937
  RG_DEF_METHOD(destroy, 0);
932
938
  RG_DEF_METHOD(window_type, 0);
939
+ RG_DEF_METHOD(display, 0);
933
940
  RG_DEF_SMETHOD(constrain_size, 4);
934
941
  RG_DEF_SMETHOD(process_all_updates, 0);
935
942
  RG_DEF_SMETHOD(set_debug_updates, 1);
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 2013 Ruby-GNOME2 Project Team
3
+ # Copyright (C) 2013-2014 Ruby-GNOME2 Project Team
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -17,11 +17,37 @@
17
17
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
18
 
19
19
  class TestGdkEvent < Test::Unit::TestCase
20
+ class TestConstant < self
21
+ def test_propagate
22
+ assert_false(Gdk::Event::PROPAGATE)
23
+ end
24
+
25
+ def test_stop
26
+ assert_true(Gdk::Event::STOP)
27
+ end
28
+ end
29
+
30
+ module TestAnyMethods
31
+ def test_window
32
+ assert_nil(event.window)
33
+ end
34
+
35
+ def test_send_event
36
+ assert_false(event.send_event?)
37
+ end
38
+ end
39
+
20
40
  class TestAny < self
41
+ include TestAnyMethods
42
+
21
43
  def setup
22
44
  @event = Gdk::EventAny.new(:delete)
23
45
  end
24
46
 
47
+ def event
48
+ @event
49
+ end
50
+
25
51
  def test_delete
26
52
  assert_equal("GDK_DELETE",
27
53
  Gdk::EventAny.new(:delete).event_type.name)
@@ -31,23 +57,19 @@ class TestGdkEvent < Test::Unit::TestCase
31
57
  assert_equal("GDK_DESTROY",
32
58
  Gdk::EventAny.new(:destroy).event_type.name)
33
59
  end
34
-
35
- def test_window
36
- assert_nothing_raised do
37
- @event.window
38
- end
39
- end
40
-
41
- def test_send_event
42
- assert_false(@event.send_event?)
43
- end
44
60
  end
45
61
 
46
62
  class TestKey < self
63
+ include TestAnyMethods
64
+
47
65
  def setup
48
66
  @key = Gdk::EventKey.new(:key_press)
49
67
  end
50
68
 
69
+ def event
70
+ @key
71
+ end
72
+
51
73
  def test_key_press
52
74
  assert_equal("GDK_KEY_PRESS",
53
75
  Gdk::EventKey.new(:key_press).event_type.name)
@@ -72,10 +94,16 @@ class TestGdkEvent < Test::Unit::TestCase
72
94
  end
73
95
 
74
96
  class TestButton < self
97
+ include TestAnyMethods
98
+
75
99
  def setup
76
100
  @button = Gdk::EventButton.new(:button_press)
77
101
  end
78
102
 
103
+ def event
104
+ @button
105
+ end
106
+
79
107
  def test_button_press
80
108
  assert_equal("GDK_BUTTON_PRESS",
81
109
  Gdk::EventButton.new(:button_press).event_type.name)
@@ -126,18 +154,14 @@ class TestGdkEvent < Test::Unit::TestCase
126
154
  end
127
155
 
128
156
  class TestTouch < self
157
+ include TestAnyMethods
158
+
129
159
  def setup
130
160
  @touch = Gdk::EventTouch.new(:touch_begin)
131
161
  end
132
162
 
133
- def test_window
134
- assert_nothing_raised do
135
- @touch.window
136
- end
137
- end
138
-
139
- def test_send_event
140
- assert_false(@touch.send_event?)
163
+ def event
164
+ @touch
141
165
  end
142
166
 
143
167
  def test_time
@@ -204,10 +228,16 @@ class TestGdkEvent < Test::Unit::TestCase
204
228
  end
205
229
 
206
230
  class TestScroll < self
231
+ include TestAnyMethods
232
+
207
233
  def setup
208
234
  @scroll = Gdk::EventScroll.new
209
235
  end
210
236
 
237
+ def event
238
+ @scroll
239
+ end
240
+
211
241
  def test_time
212
242
  assert_kind_of(Integer, @scroll.time)
213
243
  end
@@ -238,10 +268,16 @@ class TestGdkEvent < Test::Unit::TestCase
238
268
  end
239
269
 
240
270
  class TestMotion < self
271
+ include TestAnyMethods
272
+
241
273
  def setup
242
274
  @motion = Gdk::EventMotion.new
243
275
  end
244
276
 
277
+ def event
278
+ @motion
279
+ end
280
+
245
281
  def test_time
246
282
  assert_kind_of(Integer, @motion.time)
247
283
  end
@@ -274,20 +310,32 @@ class TestGdkEvent < Test::Unit::TestCase
274
310
  end
275
311
 
276
312
  class TestVisibility < self
313
+ include TestAnyMethods
314
+
277
315
  def setup
278
316
  @visibility = Gdk::EventVisibility.new(:visibility_notify)
279
317
  end
280
318
 
319
+ def event
320
+ @visibility
321
+ end
322
+
281
323
  def test_state
282
324
  assert_kind_of(Gdk::EventVisibility::State, @visibility.state)
283
325
  end
284
326
  end
285
327
 
286
328
  class TestCrossing < self
329
+ include TestAnyMethods
330
+
287
331
  def setup
288
332
  @crossing = Gdk::EventCrossing.new(:enter_notify)
289
333
  end
290
334
 
335
+ def event
336
+ @crossing
337
+ end
338
+
291
339
  def test_enter_notify
292
340
  assert_equal("GDK_ENTER_NOTIFY",
293
341
  Gdk::EventCrossing.new(:enter_notify).event_type.name)
@@ -334,20 +382,32 @@ class TestGdkEvent < Test::Unit::TestCase
334
382
  end
335
383
 
336
384
  class TestFocus < self
385
+ include TestAnyMethods
386
+
337
387
  def setup
338
388
  @focus = Gdk::EventFocus.new
339
389
  end
340
390
 
391
+ def event
392
+ @focus
393
+ end
394
+
341
395
  def test_in
342
396
  assert_false(@focus.in?)
343
397
  end
344
398
  end
345
399
 
346
400
  class TestConfigure < self
401
+ include TestAnyMethods
402
+
347
403
  def setup
348
404
  @configure = Gdk::EventConfigure.new
349
405
  end
350
406
 
407
+ def event
408
+ @configure
409
+ end
410
+
351
411
  def test_x
352
412
  assert_kind_of(Integer, @configure.x)
353
413
  end
@@ -366,10 +426,16 @@ class TestGdkEvent < Test::Unit::TestCase
366
426
  end
367
427
 
368
428
  class TestProperty < self
429
+ include TestAnyMethods
430
+
369
431
  def setup
370
432
  @property = Gdk::EventProperty.new
371
433
  end
372
434
 
435
+ def event
436
+ @property
437
+ end
438
+
373
439
  def test_atom
374
440
  assert_nothing_raised do
375
441
  @property.atom
@@ -381,15 +447,21 @@ class TestGdkEvent < Test::Unit::TestCase
381
447
  end
382
448
 
383
449
  def test_state
384
- assert_not_nil(Integer, @property.state)
450
+ assert_equal(Gdk::EventProperty::State::NEW_VALUE, @property.state)
385
451
  end
386
452
  end
387
453
 
388
454
  class TestSelection < self
455
+ include TestAnyMethods
456
+
389
457
  def setup
390
458
  @selection = Gdk::EventSelection.new(:selection_clear)
391
459
  end
392
460
 
461
+ def event
462
+ @selection
463
+ end
464
+
393
465
  def test_selection_clear
394
466
  assert_equal("GDK_SELECTION_CLEAR",
395
467
  Gdk::EventSelection.new(:selection_clear).event_type.name)
@@ -429,10 +501,16 @@ class TestGdkEvent < Test::Unit::TestCase
429
501
  end
430
502
 
431
503
  class TestDND < self
504
+ include TestAnyMethods
505
+
432
506
  def setup
433
507
  @dnd = Gdk::EventDND.new(:drag_enter)
434
508
  end
435
509
 
510
+ def event
511
+ @dnd
512
+ end
513
+
436
514
  def test_drag_enter
437
515
  assert_equal("GDK_DRAG_ENTER",
438
516
  Gdk::EventDND.new(:drag_enter).event_type.name)
@@ -483,10 +561,16 @@ class TestGdkEvent < Test::Unit::TestCase
483
561
  end
484
562
 
485
563
  class TestProximity < self
564
+ include TestAnyMethods
565
+
486
566
  def setup
487
567
  @proximity = Gdk::EventProximity.new(:proximity_in)
488
568
  end
489
569
 
570
+ def event
571
+ @proximity
572
+ end
573
+
490
574
  def test_proximity_in
491
575
  assert_equal("GDK_PROXIMITY_IN",
492
576
  Gdk::EventProximity.new(:proximity_in).event_type.name)
@@ -509,10 +593,16 @@ class TestGdkEvent < Test::Unit::TestCase
509
593
  end
510
594
 
511
595
  class TestWindowState < self
596
+ include TestAnyMethods
597
+
512
598
  def setup
513
599
  @window_state = Gdk::EventWindowState.new
514
600
  end
515
601
 
602
+ def event
603
+ @window_state
604
+ end
605
+
516
606
  def test_changed_mask
517
607
  assert_nothing_raised do
518
608
  @window_state.changed_mask
@@ -527,10 +617,16 @@ class TestGdkEvent < Test::Unit::TestCase
527
617
  end
528
618
 
529
619
  class TestSetting < self
620
+ include TestAnyMethods
621
+
530
622
  def setup
531
623
  @setting = Gdk::EventSetting.new
532
624
  end
533
625
 
626
+ def event
627
+ @setting
628
+ end
629
+
534
630
  def test_action
535
631
  assert_nothing_raised do
536
632
  @setting.action
@@ -549,6 +645,10 @@ class TestGdkEvent < Test::Unit::TestCase
549
645
  @owner_change = Gdk::EventOwnerChange.new
550
646
  end
551
647
 
648
+ def event
649
+ @owner_change
650
+ end
651
+
552
652
  def test_owner
553
653
  assert_nothing_raised do
554
654
  @owner_change.owner
@@ -577,10 +677,16 @@ class TestGdkEvent < Test::Unit::TestCase
577
677
  end
578
678
 
579
679
  class TestGrabBroken < self
680
+ include TestAnyMethods
681
+
580
682
  def setup
581
683
  @grab_broken = Gdk::EventGrabBroken.new
582
684
  end
583
685
 
686
+ def event
687
+ @grab_broken
688
+ end
689
+
584
690
  def test_keyboard
585
691
  assert_boolean(@grab_broken.keyboard?)
586
692
  end
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.1.0
4
+ version: 2.2.0
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: 2013-12-29 00:00:00.000000000 Z
11
+ date: 2014-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pango
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.1.0
19
+ version: 2.2.0
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.1.0
26
+ version: 2.2.0
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.1.0
33
+ version: 2.2.0
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.1.0
40
+ version: 2.2.0
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: []