You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(20) |
Jun
(46) |
Jul
(58) |
Aug
(103) |
Sep
(153) |
Oct
(192) |
Nov
(228) |
Dec
(213) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(61) |
Feb
(114) |
Mar
(103) |
Apr
(51) |
May
(84) |
Jun
(38) |
Jul
(125) |
Aug
(324) |
Sep
(120) |
Oct
(98) |
Nov
(145) |
Dec
(108) |
2004 |
Jan
(75) |
Feb
(72) |
Mar
(203) |
Apr
(33) |
May
(59) |
Jun
(39) |
Jul
(41) |
Aug
(108) |
Sep
(39) |
Oct
(74) |
Nov
(98) |
Dec
(21) |
2005 |
Jan
(113) |
Feb
(93) |
Mar
(113) |
Apr
(8) |
May
(11) |
Jun
(98) |
Jul
(91) |
Aug
(39) |
Sep
(149) |
Oct
(199) |
Nov
(29) |
Dec
(4) |
2006 |
Jan
(20) |
Feb
(6) |
Mar
(19) |
Apr
(21) |
May
(119) |
Jun
(105) |
Jul
(63) |
Aug
(10) |
Sep
(18) |
Oct
(26) |
Nov
(44) |
Dec
(113) |
2007 |
Jan
(14) |
Feb
(14) |
Mar
(11) |
Apr
(8) |
May
(7) |
Jun
(49) |
Jul
(188) |
Aug
(32) |
Sep
(12) |
Oct
(32) |
Nov
(79) |
Dec
(27) |
2008 |
Jan
(54) |
Feb
(32) |
Mar
(104) |
Apr
(247) |
May
(51) |
Jun
(25) |
Jul
(6) |
Aug
(13) |
Sep
(60) |
Oct
(63) |
Nov
(49) |
Dec
(10) |
2009 |
Jan
(132) |
Feb
(14) |
Mar
(16) |
Apr
(3) |
May
(23) |
Jun
(10) |
Jul
(14) |
Aug
(12) |
Sep
(24) |
Oct
(6) |
Nov
|
Dec
(6) |
2010 |
Jan
(12) |
Feb
(13) |
Mar
(2) |
Apr
(13) |
May
(7) |
Jun
(3) |
Jul
(6) |
Aug
|
Sep
(156) |
Oct
(57) |
Nov
(9) |
Dec
(2) |
2011 |
Jan
(109) |
Feb
(431) |
Mar
(17) |
Apr
|
May
(8) |
Jun
(25) |
Jul
(12) |
Aug
(9) |
Sep
(80) |
Oct
(244) |
Nov
(341) |
Dec
(559) |
2012 |
Jan
(137) |
Feb
(185) |
Mar
(6) |
Apr
(30) |
May
(26) |
Jun
(3) |
Jul
(25) |
Aug
(5) |
Sep
(4) |
Oct
(2) |
Nov
(16) |
Dec
(190) |
2013 |
Jan
(204) |
Feb
(70) |
Mar
(137) |
Apr
(180) |
May
(149) |
Jun
(39) |
Jul
(22) |
Aug
(8) |
Sep
(78) |
Oct
(488) |
Nov
(134) |
Dec
(138) |
2014 |
Jan
(18) |
Feb
(148) |
Mar
(238) |
Apr
(177) |
May
(45) |
Jun
(36) |
Jul
(176) |
Aug
(33) |
Sep
(114) |
Oct
(265) |
Nov
(263) |
Dec
(184) |
2015 |
Jan
(163) |
Feb
(44) |
Mar
(196) |
Apr
(184) |
May
(308) |
Jun
(132) |
Jul
(81) |
Aug
(76) |
Sep
(440) |
Oct
(125) |
Nov
(75) |
Dec
(111) |
2016 |
Jan
(210) |
Feb
(88) |
Mar
(86) |
Apr
(137) |
May
(145) |
Jun
(257) |
Jul
(35) |
Aug
(312) |
Sep
(69) |
Oct
(43) |
Nov
(91) |
Dec
(103) |
2017 |
Jan
(72) |
Feb
(50) |
Mar
(80) |
Apr
(238) |
May
(122) |
Jun
(47) |
Jul
(197) |
Aug
(92) |
Sep
(21) |
Oct
(45) |
Nov
(52) |
Dec
(26) |
2018 |
Jan
(3) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
From: Travis CI <bu...@tr...> - 2017-10-15 15:51:09
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4604 Status: Still Failing Duration: 25 minutes and 16 seconds Commit: 251c807 (master) Author: Kouhei Sutou Message: Add 3.1.9 entry View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/262b295fbea9...251c8077fc4d View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/288222011?utm_source=email&utm_medium=notification -- You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications |
From: Travis CI <bu...@tr...> - 2017-10-15 15:32:08
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4603 Status: Still Failing Duration: 23 minutes and 43 seconds Commit: 262b295 (master) Author: Kouhei Sutou Message: windows: update bundled libraries View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/d7fe95b9474d...262b295fbea9 View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/288221847?utm_source=email&utm_medium=notification -- You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications |
From: Kouhei S. <nu...@co...> - 2017-10-15 15:08:38
|
Kouhei Sutou 2017-10-16 00:08:04 +0900 (Mon, 16 Oct 2017) New Revision: 251c8077fc4d79e458bfca1e3380fb3589438ebc https://github.com/ruby-gnome2/ruby-gnome2/commit/251c8077fc4d79e458bfca1e3380fb3589438ebc Message: Add 3.1.9 entry Modified files: NEWS Modified: NEWS (+104 -0) =================================================================== --- NEWS 2017-10-16 00:07:07 +0900 (3a82e2d38) +++ NEWS 2017-10-16 00:08:04 +0900 (055d577d9) @@ -2,6 +2,110 @@ = NEWS +== Ruby-GNOME2 3.1.9: 2017-10-16 + +This is a release that includes GObject Introspection migrated Ruby/Poppler. + +=== Changes + +==== All + + * Improvements + + * Added (({Makefile})) existence check before running (({make})). + [GitHub#1065][Patch by HIGUCHI Daisuke] + + * Fixes + + * Fixed shebang paths. + [GitHub#1066][Patch by HIGUCHI Daisuke] + +==== Ruby/GLib + + * Improvements + + * Windows: Updated required cairo gem dependency. + +==== Ruby/GObjectIntrospection + + * Improvements + + * (({GObjectIntrospection::Loader.register_object_class_converter})): + Added. + + * Added (({gboolean *})) output support. + + * Added (({[GBoxed]})) output support. + + * Added (({[gboolean]})) input support. + +==== Ruby/GDK3 + + * Improvements + + * (({Gdk::Window#origin})): Ignored garbage return value. + +==== Ruby/GTK3 + + * Improvements + + * Added more demos. + [GitHub#1096][GitHub#1098][GitHub#1099][GitHub#1103] + [Patch by cedlemo] + + * (({Gtk::Container#add_child})): Added. + [GitHub#1101][Reported by Robert A. Heiler] + + * (({Gtk::Container#remove_child})): Added. + [GitHub#1101][Reported by Robert A. Heiler] + +==== Ruby/Poppler + + * Improvements + + * Migrated to GObject Introspection bindings. + [Patch by cedlemo] + +==== Ruby/WebKit2GTK + + * Improvements + + * Reduced fragile test failure. + [GitHub#1067][Patch by HIGUCHI Daisuke] + + * Followed upstream fix for + (({webkit_web_view_new_with_related_view})). + [GitHub#1095][Reported by Jeremy Bicha] + + * Relaxed test to support the latest WebKit2GTK+. + [GitHub#1095][Reported by Jeremy Bicha] + +==== Ruby/Rsvg2 + + * Improvements + + * Added document how to install on Heroku. + [GitHub#1071][Patch by Ciocanel Razvan] + +==== Ruby/VTE3 + + * Improvements + + * (({Vte::Regex})): Added. + [GitHub#1087][Patch by cedlemo] + +=== Thanks + + * HIGUCHI Daisuke + + * cedlemo + + * Ciocanel Razvan + + * Jeremy Bicha + + * Robert A. Heiler + == Ruby-GNOME2 3.1.8: 2017-07-15 This is a bug fix release for macOS install. |
From: Kouhei S. <nu...@co...> - 2017-10-15 15:07:53
|
Kouhei Sutou 2017-10-16 00:07:07 +0900 (Mon, 16 Oct 2017) New Revision: 262b295fbea91d9d5bb5184af6477f3d6bc2d45b https://github.com/ruby-gnome2/ruby-gnome2/commit/262b295fbea91d9d5bb5184af6477f3d6bc2d45b Message: windows: update bundled libraries Modified files: atk/Rakefile clutter-gtk/Rakefile clutter/Rakefile gdk3/Rakefile gdk_pixbuf2/Rakefile glib2/Rakefile gobject-introspection/Rakefile gstreamer/Rakefile gtksourceview3/Rakefile pango/Rakefile rsvg2/Rakefile vte3/Rakefile webkit2-gtk/Rakefile Modified: atk/Rakefile (+1 -1) =================================================================== --- atk/Rakefile 2017-09-17 15:38:16 +0900 (3c5dd22bb) +++ atk/Rakefile 2017-10-16 00:07:07 +0900 (9e252c303) @@ -32,7 +32,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package| :name => "atk", :download_site => :gnome, :label => "atk", - :version => "2.24.0", + :version => "2.26.0", :compression_method => "xz", :windows => { :configure_args => [ Modified: clutter-gtk/Rakefile (+1 -1) =================================================================== --- clutter-gtk/Rakefile 2017-09-17 15:38:16 +0900 (c95084662) +++ clutter-gtk/Rakefile 2017-10-16 00:07:07 +0900 (ee7a0315e) @@ -46,7 +46,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package| :name => "clutter-gtk", :download_site => :gnome, :label => "Clutter-GTK", - :version => "1.8.2", + :version => "1.8.4", :compression_method => "xz", :windows => { :configure_args => [ Modified: clutter/Rakefile (+1 -1) =================================================================== --- clutter/Rakefile 2017-09-17 15:38:16 +0900 (6cf6233a9) +++ clutter/Rakefile 2017-10-16 00:07:07 +0900 (7c3c66c57) @@ -98,7 +98,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package| :name => "json-glib", :download_site => :gnome, :label => "JSON-GLib", - :version => "1.2.8", + :version => "1.4.2", :compression_method => "xz", :windows => { :configure_args => [ Modified: gdk3/Rakefile (+2 -2) =================================================================== --- gdk3/Rakefile 2017-09-17 15:38:16 +0900 (dacd70521) +++ gdk3/Rakefile 2017-10-16 00:07:07 +0900 (9e5be2805) @@ -59,7 +59,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package| :name => "gtk+", :download_site => :gnome, :label => "GTK+", - :version => "3.22.16", + :version => "3.22.24", :compression_method => "xz", :windows => { :configure_args => [ @@ -89,7 +89,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package| :name => "adwaita-icon-theme", :download_site => :gnome, :label => "adwaita-icon-theme", - :version => "3.24.0", + :version => "3.26.0", :compression_method => "xz", :windows => { :use_gobject_introspection => false, Modified: gdk_pixbuf2/Rakefile (+1 -1) =================================================================== --- gdk_pixbuf2/Rakefile 2017-09-17 15:38:16 +0900 (22e64b789) +++ gdk_pixbuf2/Rakefile 2017-10-16 00:07:07 +0900 (7c64b38cc) @@ -36,7 +36,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package| :name => "gdk-pixbuf", :download_site => :gnome, :label => "gdk-pixbuf", - :version => "2.36.6", + :version => "2.36.11", :compression_method => "xz", :windows => { :configure_args => [ Modified: glib2/Rakefile (+2 -2) =================================================================== --- glib2/Rakefile 2017-09-17 15:38:16 +0900 (07f12c035) +++ glib2/Rakefile 2017-10-16 00:07:07 +0900 (6565f11b4) @@ -88,7 +88,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package| :name => "glib", :download_site => :gnome, :label => "GLib", - :version => "2.52.3", + :version => "2.54.1", :compression_method => "xz", :windows => { :need_autoreconf => true, @@ -171,7 +171,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package| :name => "glib-networking", :download_site => :gnome, :label => "glib-networking", - :version => "2.50.0", + :version => "2.54.0", :compression_method => "xz", :windows => { :configure_args => [ Modified: gobject-introspection/Rakefile (+2 -2) =================================================================== --- gobject-introspection/Rakefile 2017-09-17 15:38:16 +0900 (7feec7af2) +++ gobject-introspection/Rakefile 2017-10-16 00:07:07 +0900 (295de5ffb) @@ -32,7 +32,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package| :name => "glib", :download_site => :gnome, :label => "GLib", - :version => "2.52.3", + :version => "2.54.1", :compression_method => "xz", :windows => { :build => false, @@ -47,7 +47,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package| :name => "gobject-introspection", :download_site => :gnome, :label => "gobject-introspection", - :version => "1.52.1", + :version => "1.54.1", :compression_method => "xz", :windows => { :configure_args => [ Modified: gstreamer/Rakefile (+6 -6) =================================================================== --- gstreamer/Rakefile 2017-09-17 15:38:16 +0900 (3b8a29f60) +++ gstreamer/Rakefile 2017-10-16 00:07:07 +0900 (73be74364) @@ -58,7 +58,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package| :name => "libsoup", :download_site => :gnome, :label => "libsoup", - :version => "2.58.1", + :version => "2.60.1", :compression_method => "xz", :windows => { :configure_args => [ @@ -144,7 +144,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package| :name => "gstreamer", :download_site => :freedesktop_gstreamer, :label => "GStreamer", - :version => "1.12.1", + :version => "1.12.3", :compression_method => "xz", :windows => { :cc_args => "-std=gnu99", @@ -164,7 +164,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package| :name => "gst-plugins-base", :download_site => :freedesktop_gstreamer, :label => "GStreamer plugins (base)", - :version => "1.12.1", + :version => "1.12.3", :compression_method => "xz", :windows => { :configure_args => [ @@ -185,7 +185,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package| :name => "gst-plugins-good", :download_site => :freedesktop_gstreamer, :label => "GStreamer plugins (good)", - :version => "1.12.1", + :version => "1.12.3", :compression_method => "xz", :windows => { :configure_args => [ @@ -199,7 +199,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package| :name => "gst-plugins-bad", :download_site => :freedesktop_gstreamer, :label => "GStreamer plugins (bad)", - :version => "1.12.1", + :version => "1.12.3", :compression_method => "xz", :windows => { :configure_args => ["--disable-librfb"], @@ -229,7 +229,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package| :name => "gst-libav", :download_site => :freedesktop_gstreamer, :label => "GStreamer libav", - :version => "1.12.1", + :version => "1.12.3", :compression_method => "xz", :windows => { :configure_args => [ Modified: gtksourceview3/Rakefile (+1 -1) =================================================================== --- gtksourceview3/Rakefile 2017-09-17 15:38:16 +0900 (ade96c01a) +++ gtksourceview3/Rakefile 2017-10-16 00:07:07 +0900 (ac2659435) @@ -44,7 +44,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package| :name => "gtksourceview", :download_site => :gnome, :label => "GtkSourceView", - :version => "3.24.3", + :version => "3.24.5", :compression_method => "xz", :windows => { :configure_args => [ Modified: pango/Rakefile (+2 -2) =================================================================== --- pango/Rakefile 2017-09-17 15:38:16 +0900 (5533b368b) +++ pango/Rakefile 2017-10-16 00:07:07 +0900 (770930f08) @@ -63,7 +63,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package| :name => "harfbuzz", :download_site => :freedesktop, :label => "HarfBuzz", - :version => "1.4.6", + :version => "1.6.0", :compression_method => "bz2", :windows => { :configure_args => [ @@ -91,7 +91,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package| :name => "pango", :download_site => :gnome, :label => "Pango", - :version => "1.40.6", + :version => "1.40.12", :compression_method => "xz", :windows => { :configure_args => [ Modified: rsvg2/Rakefile (+1 -1) =================================================================== --- rsvg2/Rakefile 2017-09-17 15:38:16 +0900 (943bcd56d) +++ rsvg2/Rakefile 2017-10-16 00:07:07 +0900 (55df9968f) @@ -64,7 +64,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package| :name => "librsvg", :download_site => :gnome, :label => "librsvg", - :version => "2.40.17", + :version => "2.40.19", :compression_method => "xz", :windows => { :configure_args => [ Modified: vte3/Rakefile (+1 -1) =================================================================== --- vte3/Rakefile 2017-09-17 15:38:16 +0900 (8fd9c1db0) +++ vte3/Rakefile 2017-10-16 00:07:07 +0900 (043eb9cee) @@ -46,7 +46,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package| :name => "vte", :download_site => :gnome, :label => "vte", - :version => "0.48.3", + :version => "0.50.1", :compression_method => "xz", :windows => { :configure_args => [ Modified: webkit2-gtk/Rakefile (+1 -1) =================================================================== --- webkit2-gtk/Rakefile 2017-09-17 15:38:16 +0900 (00fe498f3) +++ webkit2-gtk/Rakefile 2017-10-16 00:07:07 +0900 (d552d7bee) @@ -81,7 +81,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package| :name => "webkitgtk", :download_site => :webkitgtk, :label => "WebKitGTK+", - :version => "2.17.4", + :version => "2.18.0", :compression_method => "xz", :windows => { :build_concurrently => false, |
From: Travis CI <bu...@tr...> - 2017-09-17 08:42:14
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4602 Status: Still Failing Duration: 23 minutes and 32 seconds Commit: d7fe95b (master) Author: Kouhei Sutou Message: gi: support gboolean array View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/ea07f5061f2b...d7fe95b9474d View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/276455827?utm_source=email&utm_medium=notification -- You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications |
From: Kouhei S. <nu...@co...> - 2017-09-17 08:18:00
|
Kouhei Sutou 2017-09-17 15:38:16 +0900 (Sun, 17 Sep 2017) New Revision: d7fe95b9474dcf45a631c55d2ec888258d40fa35 https://github.com/ruby-gnome2/ruby-gnome2/commit/d7fe95b9474dcf45a631c55d2ec888258d40fa35 Message: gi: support gboolean array Modified files: gobject-introspection/ext/gobject-introspection/rb-gi-argument.c Modified: gobject-introspection/ext/gobject-introspection/rb-gi-argument.c (+26 -2) =================================================================== --- gobject-introspection/ext/gobject-introspection/rb-gi-argument.c 2017-09-17 15:35:24 +0900 (a28fe9a0e) +++ gobject-introspection/ext/gobject-introspection/rb-gi-argument.c 2017-09-17 15:38:16 +0900 (06f9a5b25) @@ -3347,6 +3347,22 @@ set_in_array_length_argument(GIArgument *argument, } static void +set_in_array_boolean_arguments_from_ruby(GIArgument *array_argument, + VALUE rb_boolean_array) +{ + gboolean *booleans; + gint i, n_args; + + n_args = RARRAY_LEN(rb_boolean_array); + booleans = ALLOC_N(gboolean, n_args); + for (i = 0; i < n_args; i++) { + booleans[i] = RVAL2CBOOL(RARRAY_PTR(rb_boolean_array)[i]); + } + + array_argument->v_pointer = booleans; +} + +static void set_in_array_int8_arguments_from_ruby(GIArgument *array_argument, VALUE rb_number_array) { @@ -3660,11 +3676,16 @@ in_array_c_argument_from_ruby(GIArgument *array_argument, element_type_tag = g_type_info_get_tag(element_type_info); switch (element_type_tag) { case GI_TYPE_TAG_VOID: - case GI_TYPE_TAG_BOOLEAN: rb_raise(rb_eNotImpError, "TODO: Ruby -> GIArgument(array)[%s]", g_type_tag_to_string(element_type_tag)); break; + case GI_TYPE_TAG_BOOLEAN: + rb_argument = rbg_to_array(rb_argument); + set_in_array_boolean_arguments_from_ruby(array_argument, rb_argument); + set_in_array_length_argument(length_argument, length_type_info, + RARRAY_LEN(rb_argument)); + break; case GI_TYPE_TAG_INT8: if (RB_TYPE_P(rb_argument, RUBY_T_STRING)) { array_argument->v_pointer = RSTRING_PTR(rb_argument); @@ -3969,11 +3990,13 @@ rb_gi_value_argument_free_array_c(VALUE rb_argument, element_type_tag = g_type_info_get_tag(element_type_info); switch (element_type_tag) { case GI_TYPE_TAG_VOID: - case GI_TYPE_TAG_BOOLEAN: rb_raise(rb_eNotImpError, "TODO: free GIArgument(array)[%s]", g_type_tag_to_string(element_type_tag)); break; + case GI_TYPE_TAG_BOOLEAN: + xfree(argument->v_pointer); + break; case GI_TYPE_TAG_INT8: case GI_TYPE_TAG_UINT8: if (RB_TYPE_P(rb_argument, RUBY_T_STRING)) { @@ -4001,6 +4024,7 @@ rb_gi_value_argument_free_array_c(VALUE rb_argument, rb_raise(rb_eNotImpError, "TODO: free GIArgument(array)[%s]", g_type_tag_to_string(element_type_tag)); + break; case GI_TYPE_TAG_INTERFACE: xfree(argument->v_pointer); break; |
From: Kouhei S. <nu...@co...> - 2017-09-17 08:17:59
|
Kouhei Sutou 2017-09-17 15:35:24 +0900 (Sun, 17 Sep 2017) New Revision: c07a52aa6010f4cef16a0521dc7ab16e14e9aa28 https://github.com/ruby-gnome2/ruby-gnome2/commit/c07a52aa6010f4cef16a0521dc7ab16e14e9aa28 Message: gi: suppress a "fall through" warning Modified files: gobject-introspection/ext/gobject-introspection/rb-gi-argument.c Modified: gobject-introspection/ext/gobject-introspection/rb-gi-argument.c (+8 -1) =================================================================== --- gobject-introspection/ext/gobject-introspection/rb-gi-argument.c 2017-09-16 23:56:46 +0900 (3a4cd7e64) +++ gobject-introspection/ext/gobject-introspection/rb-gi-argument.c 2017-09-17 15:35:24 +0900 (a28fe9a0e) @@ -1155,8 +1155,15 @@ rb_gi_argument_to_ruby_ghash(GIArgument *argument, GITypeInfo *type_info) g_base_info_unref(value_type_info); rb_argument = rb_gi_argument_to_ruby_ghash_utf8_utf8(argument->v_pointer); - break; + } else { + g_base_info_unref(key_type_info); + g_base_info_unref(value_type_info); + rb_raise(rb_eNotImpError, + "TODO: GIArgument(GHash)[%s][%s] -> Ruby", + g_type_tag_to_string(key_type_tag), + g_type_tag_to_string(value_type_tag)); } + break; case GI_TYPE_TAG_FILENAME: case GI_TYPE_TAG_ARRAY: case GI_TYPE_TAG_INTERFACE: |
From: Travis CI <bu...@tr...> - 2017-09-16 15:21:58
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4601 Status: Still Failing Duration: 23 minutes and 39 seconds Commit: ea07f50 (master) Author: Kouhei Sutou Message: gtk3: add Gtk.grab_add and grab_remove for backward compatibility View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/b7d357a38ca1...ea07f5061f2b View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/276268853?utm_source=email&utm_medium=notification -- You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications |
From: Kouhei S. <nu...@co...> - 2017-09-16 14:57:36
|
Kouhei Sutou 2017-09-16 23:56:46 +0900 (Sat, 16 Sep 2017) New Revision: ea07f5061f2b5c6b07cf04fc2b9dae4369a0776c https://github.com/ruby-gnome2/ruby-gnome2/commit/ea07f5061f2b5c6b07cf04fc2b9dae4369a0776c Message: gtk3: add Gtk.grab_add and grab_remove for backward compatibility Modified files: gtk3/lib/gtk3/deprecated.rb Modified: gtk3/lib/gtk3/deprecated.rb (+6 -0) =================================================================== --- gtk3/lib/gtk3/deprecated.rb 2017-09-16 00:09:56 +0900 (631cb2f06) +++ gtk3/lib/gtk3/deprecated.rb 2017-09-16 23:56:46 +0900 (bbdf29043) @@ -93,6 +93,12 @@ module Gtk define_deprecated_singleton_method :idle_remove, :warn => "Use 'GLib::Source.remove'." do |_self, id| GLib::Source.remove(id) end + define_deprecated_singleton_method :grab_add, :warn => "Use 'Gtk::Widget#grab_add'." do |_self, widget| + widget.grab_add + end + define_deprecated_singleton_method :grab_remove, :warn => "Use 'Gtk::Widget#grab_remove'." do |_self, widget| + widget.grab_remove + end class AboutDialog extend GLib::Deprecatable |
From: Travis CI <bu...@tr...> - 2017-09-15 15:49:40
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4600 Status: Still Failing Duration: 31 minutes and 14 seconds Commit: b7d357a (master) Author: Kouhei Sutou Message: Merge pull request #1103 from cedlemo/gtk3_sample_gtk_demo_flowbox_rb Gtk3 sample gtk demo flowbox rb Patch by cedlemo. Thanks!!! View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/c7f5eb1ee438...b7d357a38ca1 View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/275933015?utm_source=email&utm_medium=notification -- You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications |
From: cedlemo <nu...@co...> - 2017-09-15 15:10:23
|
cedlemo 2017-09-15 02:24:15 +0900 (Fri, 15 Sep 2017) New Revision: ed0203b5fd755549b4a13db72bc933c8d4d33ecf https://github.com/ruby-gnome2/ruby-gnome2/commit/ed0203b5fd755549b4a13db72bc933c8d4d33ecf Merged b7d357a: Merge pull request #1103 from cedlemo/gtk3_sample_gtk_demo_flowbox_rb Message: Fix styles issues (Rubocop) Modified files: gtk3/sample/gtk-demo/flowbox.rb Modified: gtk3/sample/gtk-demo/flowbox.rb (+90 -671) =================================================================== --- gtk3/sample/gtk-demo/flowbox.rb 2017-09-15 02:08:16 +0900 (def7fc49d) +++ gtk3/sample/gtk-demo/flowbox.rb 2017-09-15 02:24:15 +0900 (2e95368ac) @@ -1,4 +1,4 @@ -# Copyright (c) 2016 Ruby-GNOME2 Project Team +# Copyright (c) 2017 Ruby-GNOME2 Project Team # This program is licenced under the same licence as Ruby-GNOME2. # =begin @@ -15,7 +15,7 @@ class ColorSwatch < Gtk::Button area = Gtk::DrawingArea.new area.set_size_request(24, 24) - area.signal_connect "draw" do |widget, cr| + area.signal_connect "draw" do |_widget, cr| rgba = Gdk::RGBA.parse(color) if rgba @@ -23,8 +23,8 @@ class ColorSwatch < Gtk::Button cr.paint end end - self.add(area) - self.show_all + add(area) + show_all end end @@ -61,671 +61,90 @@ class FlowboxDemo @window end - COLORS = [ - "AliceBlue", - "AntiqueWhite", - "AntiqueWhite1", - "AntiqueWhite2", - "AntiqueWhite3", - "AntiqueWhite4", - "aqua", - "aquamarine", - "aquamarine1", - "aquamarine2", - "aquamarine3", - "aquamarine4", - "azure", - "azure1", - "azure2", - "azure3", - "azure4", - "beige", - "bisque", - "bisque1", - "bisque2", - "bisque3", - "bisque4", - "black", - "BlanchedAlmond", - "blue", - "blue1", - "blue2", - "blue3", - "blue4", - "BlueViolet", - "brown", - "brown1", - "brown2", - "brown3", - "brown4", - "burlywood", - "burlywood1", - "burlywood2", - "burlywood3", - "burlywood4", - "CadetBlue", - "CadetBlue1", - "CadetBlue2", - "CadetBlue3", - "CadetBlue4", - "chartreuse", - "chartreuse1", - "chartreuse2", - "chartreuse3", - "chartreuse4", - "chocolate", - "chocolate1", - "chocolate2", - "chocolate3", - "chocolate4", - "coral", - "coral1", - "coral2", - "coral3", - "coral4", - "CornflowerBlue", - "cornsilk", - "cornsilk1", - "cornsilk2", - "cornsilk3", - "cornsilk4", - "crimson", - "cyan", - "cyan1", - "cyan2", - "cyan3", - "cyan4", - "DarkBlue", - "DarkCyan", - "DarkGoldenrod", - "DarkGoldenrod1", - "DarkGoldenrod2", - "DarkGoldenrod3", - "DarkGoldenrod4", - "DarkGray", - "DarkGreen", - "DarkGrey", - "DarkKhaki", - "DarkMagenta", - "DarkOliveGreen", - "DarkOliveGreen1", - "DarkOliveGreen2", - "DarkOliveGreen3", - "DarkOliveGreen4", - "DarkOrange", - "DarkOrange1", - "DarkOrange2", - "DarkOrange3", - "DarkOrange4", - "DarkOrchid", - "DarkOrchid1", - "DarkOrchid2", - "DarkOrchid3", - "DarkOrchid4", - "DarkRed", - "DarkSalmon", - "DarkSeaGreen", - "DarkSeaGreen1", - "DarkSeaGreen2", - "DarkSeaGreen3", - "DarkSeaGreen4", - "DarkSlateBlue", - "DarkSlateGray", - "DarkSlateGray1", - "DarkSlateGray2", - "DarkSlateGray3", - "DarkSlateGray4", - "DarkSlateGrey", - "DarkTurquoise", - "DarkViolet", - "DeepPink", - "DeepPink1", - "DeepPink2", - "DeepPink3", - "DeepPink4", - "DeepSkyBlue", - "DeepSkyBlue1", - "DeepSkyBlue2", - "DeepSkyBlue3", - "DeepSkyBlue4", - "DimGray", - "DimGrey", - "DodgerBlue", - "DodgerBlue1", - "DodgerBlue2", - "DodgerBlue3", - "DodgerBlue4", - "firebrick", - "firebrick1", - "firebrick2", - "firebrick3", - "firebrick4", - "FloralWhite", - "ForestGreen", - "fuchsia", - "gainsboro", - "GhostWhite", - "gold", - "gold1", - "gold2", - "gold3", - "gold4", - "goldenrod", - "goldenrod1", - "goldenrod2", - "goldenrod3", - "goldenrod4", - "gray", - "gray0", - "gray1", - "gray10", - "gray100", - "gray11", - "gray12", - "gray13", - "gray14", - "gray15", - "gray16", - "gray17", - "gray18", - "gray19", - "gray2", - "gray20", - "gray21", - "gray22", - "gray23", - "gray24", - "gray25", - "gray26", - "gray27", - "gray28", - "gray29", - "gray3", - "gray30", - "gray31", - "gray32", - "gray33", - "gray34", - "gray35", - "gray36", - "gray37", - "gray38", - "gray39", - "gray4", - "gray40", - "gray41", - "gray42", - "gray43", - "gray44", - "gray45", - "gray46", - "gray47", - "gray48", - "gray49", - "gray5", - "gray50", - "gray51", - "gray52", - "gray53", - "gray54", - "gray55", - "gray56", - "gray57", - "gray58", - "gray59", - "gray6", - "gray60", - "gray61", - "gray62", - "gray63", - "gray64", - "gray65", - "gray66", - "gray67", - "gray68", - "gray69", - "gray7", - "gray70", - "gray71", - "gray72", - "gray73", - "gray74", - "gray75", - "gray76", - "gray77", - "gray78", - "gray79", - "gray8", - "gray80", - "gray81", - "gray82", - "gray83", - "gray84", - "gray85", - "gray86", - "gray87", - "gray88", - "gray89", - "gray9", - "gray90", - "gray91", - "gray92", - "gray93", - "gray94", - "gray95", - "gray96", - "gray97", - "gray98", - "gray99", - "green", - "green1", - "green2", - "green3", - "green4", - "GreenYellow", - "grey", - "grey0", - "grey1", - "grey10", - "grey100", - "grey11", - "grey12", - "grey13", - "grey14", - "grey15", - "grey16", - "grey17", - "grey18", - "grey19", - "grey2", - "grey20", - "grey21", - "grey22", - "grey23", - "grey24", - "grey25", - "grey26", - "grey27", - "grey28", - "grey29", - "grey3", - "grey30", - "grey31", - "grey32", - "grey33", - "grey34", - "grey35", - "grey36", - "grey37", - "grey38", - "grey39", - "grey4", - "grey40", - "grey41", - "grey42", - "grey43", - "grey44", - "grey45", - "grey46", - "grey47", - "grey48", - "grey49", - "grey5", - "grey50", - "grey51", - "grey52", - "grey53", - "grey54", - "grey55", - "grey56", - "grey57", - "grey58", - "grey59", - "grey6", - "grey60", - "grey61", - "grey62", - "grey63", - "grey64", - "grey65", - "grey66", - "grey67", - "grey68", - "grey69", - "grey7", - "grey70", - "grey71", - "grey72", - "grey73", - "grey74", - "grey75", - "grey76", - "grey77", - "grey78", - "grey79", - "grey8", - "grey80", - "grey81", - "grey82", - "grey83", - "grey84", - "grey85", - "grey86", - "grey87", - "grey88", - "grey89", - "grey9", - "grey90", - "grey91", - "grey92", - "grey93", - "grey94", - "grey95", - "grey96", - "grey97", - "grey98", - "grey99", - "honeydew", - "honeydew1", - "honeydew2", - "honeydew3", - "honeydew4", - "HotPink", - "HotPink1", - "HotPink2", - "HotPink3", - "HotPink4", - "IndianRed", - "IndianRed1", - "IndianRed2", - "IndianRed3", - "IndianRed4", - "indigo", - "ivory", - "ivory1", - "ivory2", - "ivory3", - "ivory4", - "khaki", - "khaki1", - "khaki2", - "khaki3", - "khaki4", - "lavender", - "LavenderBlush", - "LavenderBlush1", - "LavenderBlush2", - "LavenderBlush3", - "LavenderBlush4", - "LawnGreen", - "LemonChiffon", - "LemonChiffon1", - "LemonChiffon2", - "LemonChiffon3", - "LemonChiffon4", - "LightBlue", - "LightBlue1", - "LightBlue2", - "LightBlue3", - "LightBlue4", - "LightCoral", - "LightCyan", - "LightCyan1", - "LightCyan2", - "LightCyan3", - "LightCyan4", - "LightGoldenrod", - "LightGoldenrod1", - "LightGoldenrod2", - "LightGoldenrod3", - "LightGoldenrod4", - "LightGoldenrodYellow", - "LightGray", - "LightGreen", - "LightGrey", - "LightPink", - "LightPink1", - "LightPink2", - "LightPink3", - "LightPink4", - "LightSalmon", - "LightSalmon1", - "LightSalmon2", - "LightSalmon3", - "LightSalmon4", - "LightSeaGreen", - "LightSkyBlue", - "LightSkyBlue1", - "LightSkyBlue2", - "LightSkyBlue3", - "LightSkyBlue4", - "LightSlateBlue", - "LightSlateGray", - "LightSlateGrey", - "LightSteelBlue", - "LightSteelBlue1", - "LightSteelBlue2", - "LightSteelBlue3", - "LightSteelBlue4", - "LightYellow", - "LightYellow1", - "LightYellow2", - "LightYellow3", - "LightYellow4", - "lime", - "LimeGreen", - "linen", - "magenta", - "magenta1", - "magenta2", - "magenta3", - "magenta4", - "maroon", - "maroon1", - "maroon2", - "maroon3", - "maroon4", - "MediumAquamarine", - "MediumBlue", - "MediumOrchid", - "MediumOrchid1", - "MediumOrchid2", - "MediumOrchid3", - "MediumOrchid4", - "MediumPurple", - "MediumPurple1", - "MediumPurple2", - "MediumPurple3", - "MediumPurple4", - "MediumSeaGreen", - "MediumSlateBlue", - "MediumSpringGreen", - "MediumTurquoise", - "MediumVioletRed", - "MidnightBlue", - "MintCream", - "MistyRose", - "MistyRose1", - "MistyRose2", - "MistyRose3", - "MistyRose4", - "moccasin", - "NavajoWhite", - "NavajoWhite1", - "NavajoWhite2", - "NavajoWhite3", - "NavajoWhite4", - "navy", - "NavyBlue", - "OldLace", - "olive", - "OliveDrab", - "OliveDrab1", - "OliveDrab2", - "OliveDrab3", - "OliveDrab4", - "orange", - "orange1", - "orange2", - "orange3", - "orange4", - "OrangeRed", - "OrangeRed1", - "OrangeRed2", - "OrangeRed3", - "OrangeRed4", - "orchid", - "orchid1", - "orchid2", - "orchid3", - "orchid4", - "PaleGoldenrod", - "PaleGreen", - "PaleGreen1", - "PaleGreen2", - "PaleGreen3", - "PaleGreen4", - "PaleTurquoise", - "PaleTurquoise1", - "PaleTurquoise2", - "PaleTurquoise3", - "PaleTurquoise4", - "PaleVioletRed", - "PaleVioletRed1", - "PaleVioletRed2", - "PaleVioletRed3", - "PaleVioletRed4", - "PapayaWhip", - "PeachPuff", - "PeachPuff1", - "PeachPuff2", - "PeachPuff3", - "PeachPuff4", - "peru", - "pink", - "pink1", - "pink2", - "pink3", - "pink4", - "plum", - "plum1", - "plum2", - "plum3", - "plum4", - "PowderBlue", - "purple", - "purple1", - "purple2", - "purple3", - "purple4", - "red", - "red1", - "red2", - "red3", - "red4", - "RosyBrown", - "RosyBrown1", - "RosyBrown2", - "RosyBrown3", - "RosyBrown4", - "RoyalBlue", - "RoyalBlue1", - "RoyalBlue2", - "RoyalBlue3", - "RoyalBlue4", - "SaddleBrown", - "salmon", - "salmon1", - "salmon2", - "salmon3", - "salmon4", - "SandyBrown", - "SeaGreen", - "SeaGreen1", - "SeaGreen2", - "SeaGreen3", - "SeaGreen4", - "seashell", - "seashell1", - "seashell2", - "seashell3", - "seashell4", - "sienna", - "sienna1", - "sienna2", - "sienna3", - "sienna4", - "silver", - "SkyBlue", - "SkyBlue1", - "SkyBlue2", - "SkyBlue3", - "SkyBlue4", - "SlateBlue", - "SlateBlue1", - "SlateBlue2", - "SlateBlue3", - "SlateBlue4", - "SlateGray", - "SlateGray1", - "SlateGray2", - "SlateGray3", - "SlateGray4", - "SlateGrey", - "snow", - "snow1", - "snow2", - "snow3", - "snow4", - "SpringGreen", - "SpringGreen1", - "SpringGreen2", - "SpringGreen3", - "SpringGreen4", - "SteelBlue", - "SteelBlue1", - "SteelBlue2", - "SteelBlue3", - "SteelBlue4", - "tan", - "tan1", - "tan2", - "tan3", - "tan4", - "teal", - "thistle", - "thistle1", - "thistle2", - "thistle3", - "thistle4", - "tomato", - "tomato1", - "tomato2", - "tomato3", - "tomato4", - "turquoise", - "turquoise1", - "turquoise2", - "turquoise3", - "turquoise4", - "violet", - "VioletRed", - "VioletRed1", - "VioletRed2", - "VioletRed3", - "VioletRed4", - "wheat", - "wheat1", - "wheat2", - "wheat3", - "wheat4", - "white", - "WhiteSmoke", - "yellow", - "yellow1", - "yellow2", - "yellow3", - "yellow4", - "YellowGreen" - ] + COLORS =%w(AliceBlue AntiqueWhite AntiqueWhite1 AntiqueWhite2 AntiqueWhite3 + AntiqueWhite4 aqua aquamarine aquamarine1 aquamarine2 aquamarine3 + aquamarine4 azure azure1 azure2 azure3 azure4 beige bisque bisque1 bisque2 + bisque3 bisque4 black BlanchedAlmond blue blue1 blue2 blue3 blue4 BlueViolet + brown brown1 brown2 brown3 brown4 burlywood burlywood1 burlywood2 burlywood3 + burlywood4 CadetBlue CadetBlue1 CadetBlue2 CadetBlue3 CadetBlue4 chartreuse + chartreuse1 chartreuse2 chartreuse3 chartreuse4 chocolate chocolate1 + chocolate2 chocolate3 chocolate4 coral coral1 coral2 coral3 coral4 + CornflowerBlue cornsilk cornsilk1 cornsilk2 cornsilk3 cornsilk4 crimson + cyan cyan1 cyan2 cyan3 cyan4 DarkBlue DarkCyan DarkGoldenrod DarkGoldenrod1 + DarkGoldenrod2 DarkGoldenrod3 DarkGoldenrod4 DarkGray DarkGreen DarkGrey + DarkKhaki DarkMagenta DarkOliveGreen DarkOliveGreen1 DarkOliveGreen2 + DarkOliveGreen3 DarkOliveGreen4 DarkOrange DarkOrange1 DarkOrange2 + DarkOrange3 DarkOrange4 DarkOrchid DarkOrchid1 DarkOrchid2 DarkOrchid3 + DarkOrchid4 DarkRed DarkSalmon DarkSeaGreen DarkSeaGreen1 DarkSeaGreen2 + DarkSeaGreen3 DarkSeaGreen4 DarkSlateBlue DarkSlateGray DarkSlateGray1 + DarkSlateGray2 DarkSlateGray3 DarkSlateGray4 DarkSlateGrey DarkTurquoise + DarkViolet DeepPink DeepPink1 DeepPink2 DeepPink3 DeepPink4 DeepSkyBlue + DeepSkyBlue1 DeepSkyBlue2 DeepSkyBlue3 DeepSkyBlue4 DimGray DimGrey + DodgerBlue DodgerBlue1 DodgerBlue2 DodgerBlue3 DodgerBlue4 firebrick + firebrick1 firebrick2 firebrick3 firebrick4 FloralWhite ForestGreen + fuchsia gainsboro GhostWhite gold gold1 gold2 gold3 gold4 goldenrod + goldenrod1 goldenrod2 goldenrod3 goldenrod4 gray gray0 gray1 gray10 gray100 + gray11 gray12 gray13 gray14 gray15 gray16 gray17 gray18 gray19 gray2 + gray20 gray21 gray22 gray23 gray24 gray25 gray26 gray27 gray28 gray29 gray3 + gray30 gray31 gray32 gray33 gray34 gray35 gray36 gray37 gray38 gray39 gray4 + gray40 gray41 gray42 gray43 gray44 gray45 gray46 gray47 gray48 gray49 gray5 + gray50 gray51 gray52 gray53 gray54 gray55 gray56 gray57 gray58 gray59 gray6 + gray60 gray61 gray62 gray63 gray64 gray65 gray66 gray67 gray68 gray69 gray7 + gray70 gray71 gray72 gray73 gray74 gray75 gray76 gray77 gray78 gray79 gray8 + gray80 gray81 gray82 gray83 gray84 gray85 gray86 gray87 gray88 gray89 gray9 + gray90 gray91 gray92 gray93 gray94 gray95 gray96 gray97 gray98 gray99 green + green1 green2 green3 green4 GreenYellow grey grey0 grey1 grey10 grey100 + grey11 grey12 grey13 grey14 grey15 grey16 grey17 grey18 grey19 grey2 + grey20 grey21 grey22 grey23 grey24 grey25 grey26 grey27 grey28 grey29 grey3 + grey30 grey31 grey32 grey33 grey34 grey35 grey36 grey37 grey38 grey39 grey4 + grey40 grey41 grey42 grey43 grey44 grey45 grey46 grey47 grey48 grey49 grey5 + grey50 grey51 grey52 grey53 grey54 grey55 grey56 grey57 grey58 grey59 grey6 + grey60 grey61 grey62 grey63 grey64 grey65 grey66 grey67 grey68 grey69 grey7 + grey70 grey71 grey72 grey73 grey74 grey75 grey76 grey77 grey78 grey79 grey8 + grey80 grey81 grey82 grey83 grey84 grey85 grey86 grey87 grey88 grey89 grey9 + grey90 grey91 grey92 grey93 grey94 grey95 grey96 grey97 grey98 grey99 + honeydew honeydew1 honeydew2 honeydew3 honeydew4 HotPink HotPink1 HotPink2 + HotPink3 HotPink4 IndianRed IndianRed1 IndianRed2 IndianRed3 IndianRed4 + indigo ivory ivory1 ivory2 ivory3 ivory4 khaki khaki1 khaki2 khaki3 khaki4 + lavender LavenderBlush LavenderBlush1 LavenderBlush2 LavenderBlush3 + LavenderBlush4 LawnGreen LemonChiffon LemonChiffon1 LemonChiffon2 + LemonChiffon3 LemonChiffon4 LightBlue LightBlue1 LightBlue2 LightBlue3 + LightBlue4 LightCoral LightCyan LightCyan1 LightCyan2 LightCyan3 LightCyan4 + LightGoldenrod LightGoldenrod1 LightGoldenrod2 LightGoldenrod3 + LightGoldenrod4 LightGoldenrodYellow LightGray LightGreen LightGrey + LightPink LightPink1 LightPink2 LightPink3 LightPink4 LightSalmon + LightSalmon1 LightSalmon2 LightSalmon3 LightSalmon4 LightSeaGreen + LightSkyBlue LightSkyBlue1 LightSkyBlue2 LightSkyBlue3 LightSkyBlue4 + LightSlateBlue LightSlateGray LightSlateGrey LightSteelBlue LightSteelBlue1 + LightSteelBlue2 LightSteelBlue3 LightSteelBlue4 LightYellow LightYellow1 + LightYellow2 LightYellow3 LightYellow4 lime LimeGreen linen magenta + magenta1 magenta2 magenta3 magenta4 maroon maroon1 maroon2 maroon3 maroon4 + MediumAquamarine MediumBlue MediumOrchid MediumOrchid1 MediumOrchid2 + MediumOrchid3 MediumOrchid4 MediumPurple MediumPurple1 MediumPurple2 + MediumPurple3 MediumPurple4 MediumSeaGreen MediumSlateBlue MediumSpringGreen + MediumTurquoise MediumVioletRed MidnightBlue MintCream MistyRose + MistyRose1 MistyRose2 MistyRose3 MistyRose4 moccasin NavajoWhite NavajoWhite1 + NavajoWhite2 NavajoWhite3 NavajoWhite4 navy NavyBlue OldLace olive OliveDrab + OliveDrab1 OliveDrab2 OliveDrab3 OliveDrab4 orange orange1 orange2 orange3 + orange4 OrangeRed OrangeRed1 OrangeRed2 OrangeRed3 OrangeRed4 orchid orchid1 + orchid2 orchid3 orchid4 PaleGoldenrod PaleGreen PaleGreen1 PaleGreen2 + PaleGreen3 PaleGreen4 PaleTurquoise PaleTurquoise1 PaleTurquoise2 + PaleTurquoise3 PaleTurquoise4 PaleVioletRed PaleVioletRed1 PaleVioletRed2 + PaleVioletRed3 PaleVioletRed4 PapayaWhip PeachPuff PeachPuff1 PeachPuff2 + PeachPuff3 PeachPuff4 peru pink pink1 pink2 pink3 pink4 plum plum1 plum2 + plum3 plum4 PowderBlue purple purple1 purple2 purple3 purple4 red red1 red2 + red3 red4 RosyBrown RosyBrown1 RosyBrown2 RosyBrown3 RosyBrown4 RoyalBlue + RoyalBlue1 RoyalBlue2 RoyalBlue3 RoyalBlue4 SaddleBrown salmon salmon1 + salmon2 salmon3 salmon4 SandyBrown SeaGreen SeaGreen1 SeaGreen2 SeaGreen3 + SeaGreen4 seashell seashell1 seashell2 seashell3 seashell4 sienna sienna1 + sienna2 sienna3 sienna4 silver SkyBlue SkyBlue1 SkyBlue2 SkyBlue3 SkyBlue4 + SlateBlue SlateBlue1 SlateBlue2 SlateBlue3 SlateBlue4 SlateGray SlateGray1 + SlateGray2 SlateGray3 SlateGray4 SlateGrey snow snow1 snow2 snow3 snow4 + SpringGreen SpringGreen1 SpringGreen2 SpringGreen3 SpringGreen4 SteelBlue + SteelBlue1 SteelBlue2 SteelBlue3 SteelBlue4 tan tan1 tan2 tan3 tan4 teal + thistle thistle1 thistle2 thistle3 thistle4 tomato tomato1 tomato2 tomato3 + tomato4 turquoise turquoise1 turquoise2 turquoise3 turquoise4 violet + VioletRed VioletRed1 VioletRed2 VioletRed3 VioletRed4 wheat wheat1 wheat2 + wheat3 wheat4 white WhiteSmoke yellow yellow1 yellow2 yellow3 yellow4 + YellowGreen) end |
From: cedlemo <nu...@co...> - 2017-09-15 15:10:18
|
cedlemo 2017-09-15 02:08:16 +0900 (Fri, 15 Sep 2017) New Revision: 1ec71713d1801042a4854f8c7cc38e3d40483107 https://github.com/ruby-gnome2/ruby-gnome2/commit/1ec71713d1801042a4854f8c7cc38e3d40483107 Merged b7d357a: Merge pull request #1103 from cedlemo/gtk3_sample_gtk_demo_flowbox_rb Message: Add flowbox demo Added files: gtk3/sample/gtk-demo/flowbox.rb Added: gtk3/sample/gtk-demo/flowbox.rb (+731 -0) 100644 =================================================================== --- /dev/null +++ gtk3/sample/gtk-demo/flowbox.rb 2017-09-15 02:08:16 +0900 (def7fc49d) @@ -0,0 +1,731 @@ +# Copyright (c) 2016 Ruby-GNOME2 Project Team +# This program is licenced under the same licence as Ruby-GNOME2. +# +=begin += Flow Box + + GtkFlowBox allows flexible and responsive grids which reflow + as needed and support sorting and filtering. + + The children of a GtkFlowBox are regular widgets +=end +class ColorSwatch < Gtk::Button + def initialize(color) + super(:label => nil) + + area = Gtk::DrawingArea.new + area.set_size_request(24, 24) + area.signal_connect "draw" do |widget, cr| + rgba = Gdk::RGBA.parse(color) + + if rgba + cr.set_source_rgba(rgba.to_a) + cr.paint + end + end + self.add(area) + self.show_all + end +end + +class FlowboxDemo + def initialize(main_window) + @window = Gtk::Window.new(:toplevel) + @window.screen = main_window.screen + @window.title = "Flow Box" + @window.set_default_size(400, 600) + + scrolled = Gtk::ScrolledWindow.new + scrolled.set_policy(:never, :automatic) + + flowbox = Gtk::FlowBox.new + flowbox.valign = :start + flowbox.max_children_per_line = 36 + flowbox.selection_mode = :none + scrolled.add(flowbox) + @window.add(scrolled) + + COLORS.each do |color| + flowbox.add(ColorSwatch.new(color)) + end + + scrolled.show_all + end + + def run + if !@window.visible? + @window.show_all + else + @window.destroy + end + @window + end + + COLORS = [ + "AliceBlue", + "AntiqueWhite", + "AntiqueWhite1", + "AntiqueWhite2", + "AntiqueWhite3", + "AntiqueWhite4", + "aqua", + "aquamarine", + "aquamarine1", + "aquamarine2", + "aquamarine3", + "aquamarine4", + "azure", + "azure1", + "azure2", + "azure3", + "azure4", + "beige", + "bisque", + "bisque1", + "bisque2", + "bisque3", + "bisque4", + "black", + "BlanchedAlmond", + "blue", + "blue1", + "blue2", + "blue3", + "blue4", + "BlueViolet", + "brown", + "brown1", + "brown2", + "brown3", + "brown4", + "burlywood", + "burlywood1", + "burlywood2", + "burlywood3", + "burlywood4", + "CadetBlue", + "CadetBlue1", + "CadetBlue2", + "CadetBlue3", + "CadetBlue4", + "chartreuse", + "chartreuse1", + "chartreuse2", + "chartreuse3", + "chartreuse4", + "chocolate", + "chocolate1", + "chocolate2", + "chocolate3", + "chocolate4", + "coral", + "coral1", + "coral2", + "coral3", + "coral4", + "CornflowerBlue", + "cornsilk", + "cornsilk1", + "cornsilk2", + "cornsilk3", + "cornsilk4", + "crimson", + "cyan", + "cyan1", + "cyan2", + "cyan3", + "cyan4", + "DarkBlue", + "DarkCyan", + "DarkGoldenrod", + "DarkGoldenrod1", + "DarkGoldenrod2", + "DarkGoldenrod3", + "DarkGoldenrod4", + "DarkGray", + "DarkGreen", + "DarkGrey", + "DarkKhaki", + "DarkMagenta", + "DarkOliveGreen", + "DarkOliveGreen1", + "DarkOliveGreen2", + "DarkOliveGreen3", + "DarkOliveGreen4", + "DarkOrange", + "DarkOrange1", + "DarkOrange2", + "DarkOrange3", + "DarkOrange4", + "DarkOrchid", + "DarkOrchid1", + "DarkOrchid2", + "DarkOrchid3", + "DarkOrchid4", + "DarkRed", + "DarkSalmon", + "DarkSeaGreen", + "DarkSeaGreen1", + "DarkSeaGreen2", + "DarkSeaGreen3", + "DarkSeaGreen4", + "DarkSlateBlue", + "DarkSlateGray", + "DarkSlateGray1", + "DarkSlateGray2", + "DarkSlateGray3", + "DarkSlateGray4", + "DarkSlateGrey", + "DarkTurquoise", + "DarkViolet", + "DeepPink", + "DeepPink1", + "DeepPink2", + "DeepPink3", + "DeepPink4", + "DeepSkyBlue", + "DeepSkyBlue1", + "DeepSkyBlue2", + "DeepSkyBlue3", + "DeepSkyBlue4", + "DimGray", + "DimGrey", + "DodgerBlue", + "DodgerBlue1", + "DodgerBlue2", + "DodgerBlue3", + "DodgerBlue4", + "firebrick", + "firebrick1", + "firebrick2", + "firebrick3", + "firebrick4", + "FloralWhite", + "ForestGreen", + "fuchsia", + "gainsboro", + "GhostWhite", + "gold", + "gold1", + "gold2", + "gold3", + "gold4", + "goldenrod", + "goldenrod1", + "goldenrod2", + "goldenrod3", + "goldenrod4", + "gray", + "gray0", + "gray1", + "gray10", + "gray100", + "gray11", + "gray12", + "gray13", + "gray14", + "gray15", + "gray16", + "gray17", + "gray18", + "gray19", + "gray2", + "gray20", + "gray21", + "gray22", + "gray23", + "gray24", + "gray25", + "gray26", + "gray27", + "gray28", + "gray29", + "gray3", + "gray30", + "gray31", + "gray32", + "gray33", + "gray34", + "gray35", + "gray36", + "gray37", + "gray38", + "gray39", + "gray4", + "gray40", + "gray41", + "gray42", + "gray43", + "gray44", + "gray45", + "gray46", + "gray47", + "gray48", + "gray49", + "gray5", + "gray50", + "gray51", + "gray52", + "gray53", + "gray54", + "gray55", + "gray56", + "gray57", + "gray58", + "gray59", + "gray6", + "gray60", + "gray61", + "gray62", + "gray63", + "gray64", + "gray65", + "gray66", + "gray67", + "gray68", + "gray69", + "gray7", + "gray70", + "gray71", + "gray72", + "gray73", + "gray74", + "gray75", + "gray76", + "gray77", + "gray78", + "gray79", + "gray8", + "gray80", + "gray81", + "gray82", + "gray83", + "gray84", + "gray85", + "gray86", + "gray87", + "gray88", + "gray89", + "gray9", + "gray90", + "gray91", + "gray92", + "gray93", + "gray94", + "gray95", + "gray96", + "gray97", + "gray98", + "gray99", + "green", + "green1", + "green2", + "green3", + "green4", + "GreenYellow", + "grey", + "grey0", + "grey1", + "grey10", + "grey100", + "grey11", + "grey12", + "grey13", + "grey14", + "grey15", + "grey16", + "grey17", + "grey18", + "grey19", + "grey2", + "grey20", + "grey21", + "grey22", + "grey23", + "grey24", + "grey25", + "grey26", + "grey27", + "grey28", + "grey29", + "grey3", + "grey30", + "grey31", + "grey32", + "grey33", + "grey34", + "grey35", + "grey36", + "grey37", + "grey38", + "grey39", + "grey4", + "grey40", + "grey41", + "grey42", + "grey43", + "grey44", + "grey45", + "grey46", + "grey47", + "grey48", + "grey49", + "grey5", + "grey50", + "grey51", + "grey52", + "grey53", + "grey54", + "grey55", + "grey56", + "grey57", + "grey58", + "grey59", + "grey6", + "grey60", + "grey61", + "grey62", + "grey63", + "grey64", + "grey65", + "grey66", + "grey67", + "grey68", + "grey69", + "grey7", + "grey70", + "grey71", + "grey72", + "grey73", + "grey74", + "grey75", + "grey76", + "grey77", + "grey78", + "grey79", + "grey8", + "grey80", + "grey81", + "grey82", + "grey83", + "grey84", + "grey85", + "grey86", + "grey87", + "grey88", + "grey89", + "grey9", + "grey90", + "grey91", + "grey92", + "grey93", + "grey94", + "grey95", + "grey96", + "grey97", + "grey98", + "grey99", + "honeydew", + "honeydew1", + "honeydew2", + "honeydew3", + "honeydew4", + "HotPink", + "HotPink1", + "HotPink2", + "HotPink3", + "HotPink4", + "IndianRed", + "IndianRed1", + "IndianRed2", + "IndianRed3", + "IndianRed4", + "indigo", + "ivory", + "ivory1", + "ivory2", + "ivory3", + "ivory4", + "khaki", + "khaki1", + "khaki2", + "khaki3", + "khaki4", + "lavender", + "LavenderBlush", + "LavenderBlush1", + "LavenderBlush2", + "LavenderBlush3", + "LavenderBlush4", + "LawnGreen", + "LemonChiffon", + "LemonChiffon1", + "LemonChiffon2", + "LemonChiffon3", + "LemonChiffon4", + "LightBlue", + "LightBlue1", + "LightBlue2", + "LightBlue3", + "LightBlue4", + "LightCoral", + "LightCyan", + "LightCyan1", + "LightCyan2", + "LightCyan3", + "LightCyan4", + "LightGoldenrod", + "LightGoldenrod1", + "LightGoldenrod2", + "LightGoldenrod3", + "LightGoldenrod4", + "LightGoldenrodYellow", + "LightGray", + "LightGreen", + "LightGrey", + "LightPink", + "LightPink1", + "LightPink2", + "LightPink3", + "LightPink4", + "LightSalmon", + "LightSalmon1", + "LightSalmon2", + "LightSalmon3", + "LightSalmon4", + "LightSeaGreen", + "LightSkyBlue", + "LightSkyBlue1", + "LightSkyBlue2", + "LightSkyBlue3", + "LightSkyBlue4", + "LightSlateBlue", + "LightSlateGray", + "LightSlateGrey", + "LightSteelBlue", + "LightSteelBlue1", + "LightSteelBlue2", + "LightSteelBlue3", + "LightSteelBlue4", + "LightYellow", + "LightYellow1", + "LightYellow2", + "LightYellow3", + "LightYellow4", + "lime", + "LimeGreen", + "linen", + "magenta", + "magenta1", + "magenta2", + "magenta3", + "magenta4", + "maroon", + "maroon1", + "maroon2", + "maroon3", + "maroon4", + "MediumAquamarine", + "MediumBlue", + "MediumOrchid", + "MediumOrchid1", + "MediumOrchid2", + "MediumOrchid3", + "MediumOrchid4", + "MediumPurple", + "MediumPurple1", + "MediumPurple2", + "MediumPurple3", + "MediumPurple4", + "MediumSeaGreen", + "MediumSlateBlue", + "MediumSpringGreen", + "MediumTurquoise", + "MediumVioletRed", + "MidnightBlue", + "MintCream", + "MistyRose", + "MistyRose1", + "MistyRose2", + "MistyRose3", + "MistyRose4", + "moccasin", + "NavajoWhite", + "NavajoWhite1", + "NavajoWhite2", + "NavajoWhite3", + "NavajoWhite4", + "navy", + "NavyBlue", + "OldLace", + "olive", + "OliveDrab", + "OliveDrab1", + "OliveDrab2", + "OliveDrab3", + "OliveDrab4", + "orange", + "orange1", + "orange2", + "orange3", + "orange4", + "OrangeRed", + "OrangeRed1", + "OrangeRed2", + "OrangeRed3", + "OrangeRed4", + "orchid", + "orchid1", + "orchid2", + "orchid3", + "orchid4", + "PaleGoldenrod", + "PaleGreen", + "PaleGreen1", + "PaleGreen2", + "PaleGreen3", + "PaleGreen4", + "PaleTurquoise", + "PaleTurquoise1", + "PaleTurquoise2", + "PaleTurquoise3", + "PaleTurquoise4", + "PaleVioletRed", + "PaleVioletRed1", + "PaleVioletRed2", + "PaleVioletRed3", + "PaleVioletRed4", + "PapayaWhip", + "PeachPuff", + "PeachPuff1", + "PeachPuff2", + "PeachPuff3", + "PeachPuff4", + "peru", + "pink", + "pink1", + "pink2", + "pink3", + "pink4", + "plum", + "plum1", + "plum2", + "plum3", + "plum4", + "PowderBlue", + "purple", + "purple1", + "purple2", + "purple3", + "purple4", + "red", + "red1", + "red2", + "red3", + "red4", + "RosyBrown", + "RosyBrown1", + "RosyBrown2", + "RosyBrown3", + "RosyBrown4", + "RoyalBlue", + "RoyalBlue1", + "RoyalBlue2", + "RoyalBlue3", + "RoyalBlue4", + "SaddleBrown", + "salmon", + "salmon1", + "salmon2", + "salmon3", + "salmon4", + "SandyBrown", + "SeaGreen", + "SeaGreen1", + "SeaGreen2", + "SeaGreen3", + "SeaGreen4", + "seashell", + "seashell1", + "seashell2", + "seashell3", + "seashell4", + "sienna", + "sienna1", + "sienna2", + "sienna3", + "sienna4", + "silver", + "SkyBlue", + "SkyBlue1", + "SkyBlue2", + "SkyBlue3", + "SkyBlue4", + "SlateBlue", + "SlateBlue1", + "SlateBlue2", + "SlateBlue3", + "SlateBlue4", + "SlateGray", + "SlateGray1", + "SlateGray2", + "SlateGray3", + "SlateGray4", + "SlateGrey", + "snow", + "snow1", + "snow2", + "snow3", + "snow4", + "SpringGreen", + "SpringGreen1", + "SpringGreen2", + "SpringGreen3", + "SpringGreen4", + "SteelBlue", + "SteelBlue1", + "SteelBlue2", + "SteelBlue3", + "SteelBlue4", + "tan", + "tan1", + "tan2", + "tan3", + "tan4", + "teal", + "thistle", + "thistle1", + "thistle2", + "thistle3", + "thistle4", + "tomato", + "tomato1", + "tomato2", + "tomato3", + "tomato4", + "turquoise", + "turquoise1", + "turquoise2", + "turquoise3", + "turquoise4", + "violet", + "VioletRed", + "VioletRed1", + "VioletRed2", + "VioletRed3", + "VioletRed4", + "wheat", + "wheat1", + "wheat2", + "wheat3", + "wheat4", + "white", + "WhiteSmoke", + "yellow", + "yellow1", + "yellow2", + "yellow3", + "yellow4", + "YellowGreen" + ] +end |
From: cedlemo <nu...@co...> - 2017-09-15 15:10:14
|
cedlemo 2017-09-15 02:24:44 +0900 (Fri, 15 Sep 2017) New Revision: 16e0e76e4ff37d25fe3441b7443e61f6346bcc9e https://github.com/ruby-gnome2/ruby-gnome2/commit/16e0e76e4ff37d25fe3441b7443e61f6346bcc9e Merged b7d357a: Merge pull request #1103 from cedlemo/gtk3_sample_gtk_demo_flowbox_rb Message: Update TODO Modified files: gtk3/sample/gtk-demo/TODO Modified: gtk3/sample/gtk-demo/TODO (+1 -1) =================================================================== --- gtk3/sample/gtk-demo/TODO 2017-09-15 02:24:15 +0900 (fd8f114ed) +++ gtk3/sample/gtk-demo/TODO 2017-09-15 02:24:44 +0900 (d5498f8b9) @@ -58,12 +58,12 @@ event_axes.c ok ok combobox.c ok ok css_blendmodes.c ok ok fishbowl.c ok ok +flowbox.c ok ok Remains : application.c no no changedisplay.c ok no -flowbox.c no no foreigndrawing no no gestures.c no no shortcuts.c no no |
From: Kouhei S. <nu...@co...> - 2017-09-15 15:10:14
|
Kouhei Sutou 2017-09-16 00:09:56 +0900 (Sat, 16 Sep 2017) New Revision: b7d357a38ca16cf5abd4dcaf9e55d8a00c30b9d1 https://github.com/ruby-gnome2/ruby-gnome2/commit/b7d357a38ca16cf5abd4dcaf9e55d8a00c30b9d1 Message: Merge pull request #1103 from cedlemo/gtk3_sample_gtk_demo_flowbox_rb Gtk3 sample gtk demo flowbox rb Patch by cedlemo. Thanks!!! |
From: Travis CI <bu...@tr...> - 2017-09-14 02:16:39
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4598 Status: Still Failing Duration: 24 minutes and 13 seconds Commit: c7f5eb1 (master) Author: Kouhei Sutou Message: gtk3: don't override Gtk::Buildable#add_child View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/e00652d2e4bf...c7f5eb1ee438 View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/275286410?utm_source=email&utm_medium=notification -- You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications |
From: Kouhei S. <nu...@co...> - 2017-09-14 01:51:36
|
Kouhei Sutou 2017-09-14 10:51:02 +0900 (Thu, 14 Sep 2017) New Revision: c7f5eb1ee4381e8476b233cd4f7fcdcd8b249973 https://github.com/ruby-gnome2/ruby-gnome2/commit/c7f5eb1ee4381e8476b233cd4f7fcdcd8b249973 Message: gtk3: don't override Gtk::Buildable#add_child Modified files: gtk3/lib/gtk3/container.rb Modified: gtk3/lib/gtk3/container.rb (+8 -1) =================================================================== --- gtk3/lib/gtk3/container.rb 2017-09-14 10:15:50 +0900 (81321556c) +++ gtk3/lib/gtk3/container.rb 2017-09-14 10:51:02 +0900 (e8c933a6f) @@ -31,7 +31,14 @@ module Gtk end alias_method :<<, :add - alias_method :add_child, :add + def add_child(*args, &block) + if defined?(super) + super + else + add(*args, &block) + end + end + alias_method :remove_child, :remove alias_method :focus_chain_raw, :focus_chain |
From: Travis CI <bu...@tr...> - 2017-09-14 01:42:55
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4597 Status: Broken Duration: 24 minutes and 18 seconds Commit: e00652d (master) Author: Kouhei Sutou Message: gtk3: add Container#add_child and #remove_child as alias GitHub: fix #1101 Some subclasses such as Gtk::ComboBoxText has the same name methods (#remove for Gtk::ComboBoxText case). These aliases will help you to call Container#add and #remove easily. Reported by Robert A. Heiler. Thanks!!! View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/572167c9a60b...e00652d2e4bf View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/275280752?utm_source=email&utm_medium=notification -- You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications |
From: Kouhei S. <nu...@co...> - 2017-09-14 01:17:53
|
Kouhei Sutou 2017-09-14 10:15:50 +0900 (Thu, 14 Sep 2017) New Revision: e00652d2e4bfdb6cd4168e36f10011682d9f2bd1 https://github.com/ruby-gnome2/ruby-gnome2/commit/e00652d2e4bfdb6cd4168e36f10011682d9f2bd1 Message: gtk3: add Container#add_child and #remove_child as alias GitHub: fix #1101 Some subclasses such as Gtk::ComboBoxText has the same name methods (#remove for Gtk::ComboBoxText case). These aliases will help you to call Container#add and #remove easily. Reported by Robert A. Heiler. Thanks!!! Modified files: gtk3/lib/gtk3/container.rb gtk3/sample/gtk-demo/combobox.rb Modified: gtk3/lib/gtk3/container.rb (+3 -0) =================================================================== --- gtk3/lib/gtk3/container.rb 2017-09-08 23:31:51 +0900 (3b9cbbb12) +++ gtk3/lib/gtk3/container.rb 2017-09-14 10:15:50 +0900 (81321556c) @@ -31,6 +31,9 @@ module Gtk end alias_method :<<, :add + alias_method :add_child, :add + alias_method :remove_child, :remove + alias_method :focus_chain_raw, :focus_chain def focus_chain set_explicitly, widgets = focus_chain_raw Modified: gtk3/sample/gtk-demo/combobox.rb (+2 -2) =================================================================== --- gtk3/sample/gtk-demo/combobox.rb 2017-09-08 23:31:51 +0900 (4ce3e2eac) +++ gtk3/sample/gtk-demo/combobox.rb 2017-09-14 10:15:50 +0900 (bc30aaefe) @@ -99,8 +99,8 @@ class ComboboxDemo entry = MaskEntry.new entry.mask = "^([0-9]*|One|Two|2\302\275|Three)$" - combo.remove(combo.child.gtype) - combo.add(entry) + combo.remove_child(combo.child) + combo.add_child(entry) # A combobox with string IDs frame = Gtk::Frame.new("String IDs") |
From: Kouhei S. <nu...@co...> - 2017-09-08 14:32:33
|
Kouhei Sutou 2017-09-08 23:31:51 +0900 (Fri, 08 Sep 2017) New Revision: 572167c9a60bec00e131a75b48a17eb0710a57c2 https://github.com/ruby-gnome2/ruby-gnome2/commit/572167c9a60bec00e131a75b48a17eb0710a57c2 Message: gdk3: Gdk::Window#origin Ignore garbage return value. Modified files: gdk3/lib/gdk3/window.rb Modified: gdk3/lib/gdk3/window.rb (+6 -0) =================================================================== --- gdk3/lib/gdk3/window.rb 2017-09-04 09:55:08 +0900 (7caeaf926) +++ gdk3/lib/gdk3/window.rb 2017-09-08 23:31:51 +0900 (67bec5a5c) @@ -22,5 +22,11 @@ module Gdk def user_data Loader.instantiate_gobject_pointer(user_data_raw) end + + alias_method :origin_raw, :origin + def origin + _, x, y = origin_raw + [x, y] + end end end |
From: Travis CI <bu...@tr...> - 2017-09-04 01:41:33
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4594 Status: Broken Duration: 27 minutes and 33 seconds Commit: 323a106 (master) Author: Kouhei Sutou Message: gtk3 demo: don't show invisible button View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/40d5cf56b77d...323a10605718 View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/271521765?utm_source=email&utm_medium=notification -- You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications |
From: Kouhei S. <nu...@co...> - 2017-09-04 00:55:40
|
Kouhei Sutou 2017-09-04 09:55:08 +0900 (Mon, 04 Sep 2017) New Revision: f8e33541ca3d31dc8af8d607f3c16df8c81cf132 https://github.com/ruby-gnome2/ruby-gnome2/commit/f8e33541ca3d31dc8af8d607f3c16df8c81cf132 Message: gtk3 demo: make toggle button workable Modified files: gtk3/sample/gtk-demo/fishbowl.rb Modified: gtk3/sample/gtk-demo/fishbowl.rb (+6 -10) =================================================================== --- gtk3/sample/gtk-demo/fishbowl.rb 2017-09-04 09:45:33 +0900 (006dd44f4) +++ gtk3/sample/gtk-demo/fishbowl.rb 2017-09-04 09:55:08 +0900 (4f8a8d9d2) @@ -77,9 +77,7 @@ class FishbowlDemo private def move_fish - elapsed = 0 - suggested_change = 0 - elapsed, suggested_change = do_stats(!@changes_allow.active?) + elapsed, suggested_change = do_stats @bowl.each do |widget| move_one_fish(widget, elapsed) end @@ -87,14 +85,13 @@ class FishbowlDemo if suggested_change > 0 add_fish(suggested_change) elsif suggested_change < 0 - remove_fish(- suggested_change) + remove_fish(-suggested_change) end GLib::Source::CONTINUE end - def do_stats(suggested_change) - suggested_change = 0 + def do_stats @stats ||= Stats.new(@bowl) frame_time = @bowl.frame_clock.frame_time elapsed = frame_time - @stats.last_frame @@ -131,12 +128,11 @@ class FishbowlDemo @stats.item_counter[@stats.stats_index] = @stats.item_counter[(@stats.stats_index + N_STATS - 1) % N_STATS] @stats.last_stats = frame_time - if suggested_change - suggested_change = @stats.last_suggestion - else + if @changes_allow.active? @stats.last_suggestion = 0 end - elsif suggested_change + suggested_change = @stats.last_suggestion + else suggested_change = 0 end |
From: Kouhei S. <nu...@co...> - 2017-09-04 00:46:11
|
Kouhei Sutou 2017-09-04 09:45:33 +0900 (Mon, 04 Sep 2017) New Revision: 323a10605718a13bac0355585193d64c89fb0c34 https://github.com/ruby-gnome2/ruby-gnome2/commit/323a10605718a13bac0355585193d64c89fb0c34 Message: gtk3 demo: don't show invisible button Modified files: gtk3/sample/gtk-demo/fishbowl.rb Modified: gtk3/sample/gtk-demo/fishbowl.rb (+1 -1) =================================================================== --- gtk3/sample/gtk-demo/fishbowl.rb 2017-09-04 09:45:24 +0900 (2f3f0d394) +++ gtk3/sample/gtk-demo/fishbowl.rb 2017-09-04 09:45:33 +0900 (006dd44f4) @@ -67,7 +67,7 @@ class FishbowlDemo def run if !@window.visible? - @window.show_all + @window.show else @window.destroy end |
From: Kouhei S. <nu...@co...> - 2017-09-04 00:45:55
|
Kouhei Sutou 2017-09-04 09:45:24 +0900 (Mon, 04 Sep 2017) New Revision: 40d5cf56b77d8a337f39d86f8a397b3db6b43d7a https://github.com/ruby-gnome2/ruby-gnome2/commit/40d5cf56b77d8a337f39d86f8a397b3db6b43d7a Message: gtk3 demo: suppress a warning Modified files: gtk3/sample/gtk-demo/fishbowl.rb Modified: gtk3/sample/gtk-demo/fishbowl.rb (+1 -1) =================================================================== --- gtk3/sample/gtk-demo/fishbowl.rb 2017-09-04 09:36:50 +0900 (8f6bfa4b8) +++ gtk3/sample/gtk-demo/fishbowl.rb 2017-09-04 09:45:24 +0900 (2f3f0d394) @@ -95,7 +95,7 @@ class FishbowlDemo def do_stats(suggested_change) suggested_change = 0 - @stats = Stats.new(@bowl) unless @stats + @stats ||= Stats.new(@bowl) frame_time = @bowl.frame_clock.frame_time elapsed = frame_time - @stats.last_frame n_frames = 0 |
From: cedlemo <nu...@co...> - 2017-09-04 00:37:09
|
cedlemo 2017-09-04 02:09:32 +0900 (Mon, 04 Sep 2017) New Revision: af6e5fda6fb6b3f9a298e23b3fa90d7bc04fbced https://github.com/ruby-gnome2/ruby-gnome2/commit/af6e5fda6fb6b3f9a298e23b3fa90d7bc04fbced Merged 23de9e3: Merge pull request #1099 from cedlemo/gtk3_sample_gtk_demo_fishbowl_rb Message: Add fishbowl demo Added files: gtk3/sample/gtk-demo/fishbowl.rb Added: gtk3/sample/gtk-demo/fishbowl.rb (+194 -0) 100644 =================================================================== --- /dev/null +++ gtk3/sample/gtk-demo/fishbowl.rb 2017-09-04 02:09:32 +0900 (4efe22bda) @@ -0,0 +1,194 @@ +# Copyright (c) 2017 Ruby-GNOME2 Project Team +# This program is licenced under the same licence as Ruby-GNOME2. +# +=begin += Benchmark/Fishbowl + + This demo models the fishbowl demos seen on the web in a GTK way. + It's also a neat little tool to see how fast your computer (or + your GTK version) is. +=end + +STATS_UPDATE_TIME = 1_000_000 # G_USEC_PER_SEC +N_STATS = 5 + +class Stats + attr_accessor :last_stats, :last_frame, :last_suggestion, :frame_counter_max, + :stats_index, :frame_counter, :item_counter + + def initialize(widget) + @widget = widget + @stats_index = 0 + @frame_counter_max = 0 + @last_frame = @widget.frame_clock.frame_time + @last_stats = @last_frame + @frame_counter = Array.new(N_STATS, 0) + @item_counter = Array.new(N_STATS, 0) + @last_suggestion = 0 + end +end + +class Fish < Gtk::Image + attr_accessor :x, :y, :x_speed, :y_speed + def initialize + super(:icon_name => get_random_icon_name, :size => :dialog) + @x = 10 + @y = 10 + @x_speed = rand(1..200) + @y_speed = rand(1..200) + end + + private + + def get_random_icon_name + theme = Gtk::IconTheme.default + icon_list = theme.icons + icons = icon_list.select do |e| ! e.include?("symbolic") end + icons[rand (icons.size)] + end +end + +class FishbowlDemo + def initialize(main_window) + builder = Gtk::Builder.new(:resource => "/fishbowl/fishbowl.ui") + @window = builder["window"] + @bowl = builder["bowl"] + @info_label = builder["info_label"] + @changes_prevent = builder["changes_prevent"] + @changes_prevent.image = Gtk::Image.new(:icon_name => "changes-prevent") + @changes_allow = builder["changes_allow"] + @changes_allow.image = Gtk::Image.new(:icon_name => "changes-allow") + @window.screen = main_window.screen + @window.realize + @bowl.add_tick_callback do |widget, frame_clock| + move_fish(widget, frame_clock) + end + end + + def run + if !@window.visible? + @window.show_all + else + @window.destroy + end + @window + end + + private + + def move_fish(widget, frame_clock) + elapsed = 0 + suggested_change = 0 + elapsed, suggested_change = do_stats(!@changes_allow.active?) + @bowl.each do |widget| + move_one_fish(widget, elapsed) + end + + if suggested_change > 0 + add_fish(suggested_change) + elsif suggested_change < 0 + remove_fish(- suggested_change) + end + + GLib::Source::CONTINUE + end + + def do_stats(suggested_change) + suggested_change = 0 + @stats = Stats.new(@bowl) unless @stats + frame_time = @bowl.frame_clock.frame_time + elapsed = frame_time - @stats.last_frame + n_frames = 0 + + if @stats.last_stats + STATS_UPDATE_TIME < frame_time + @stats.frame_counter.each do |f| + n_frames += f + end + + index = @stats.stats_index + new_label = sprintf("%u icons - %.1f fps", @stats.item_counter[index], + STATS_UPDATE_TIME * n_frames / (N_STATS * STATS_UPDATE_TIME)) + @info_label.label = new_label + + if @stats.frame_counter[index] >= 19 * @stats.frame_counter_max / 20 + if @stats.last_suggestion > 0 + @stats.last_suggestion *= 2 + else + @stats.last_suggestion = 1 + end + else + if @stats.last_suggestion < 0 + @stats.last_suggestion -= 1 + else + @stats.last_suggestion = -1 + end + @stats.last_suggestion = [@stats.last_suggestion, + 1 - @stats.item_counter[index]].max + end + + @stats.stats_index = (@stats.stats_index + 1) % N_STATS + @stats.frame_counter[@stats.stats_index] = 0 + @stats.item_counter[@stats.stats_index] = @stats.item_counter[(@stats.stats_index + N_STATS - 1) % N_STATS] + @stats.last_stats = frame_time + + if suggested_change + suggested_change = @stats.last_suggestion + else + @stats.last_suggestion = 0 + end + else + suggested_change = 0 if suggested_change + end + + @stats.last_frame = frame_time + @stats.frame_counter[@stats.stats_index] += 1 + @stats.frame_counter_max = [@stats.frame_counter_max, + @stats.frame_counter[@stats.stats_index]].max + [elapsed, suggested_change] + end + + def add_fish(n_fish) + (1..n_fish).each do + new_fish = Fish.new + new_fish.show + @bowl.put(new_fish, 10, 10) + stats_update(n_fish) + end + + end + + def stats_update(n_items) + index = @stats.stats_index + @stats.item_counter[index] += n_items + end + + def remove_fish(n_fish) + (0..(n_fish - 1)).each do + @bowl.children.shift + end + stats_update(- n_fish) + end + + def move_one_fish(fish, elapsed) + fish.x += (fish.x_speed * elapsed / STATS_UPDATE_TIME) + fish.y += (fish.y_speed * elapsed / STATS_UPDATE_TIME) + + if fish.x <= 0 + fish.x = 0 + fish.x_speed = - rand(1..200) * (fish.x_speed > 0 ? 1 : - 1) + elsif fish.x > fish.parent.allocated_width - fish.allocated_width + fish.x = fish.parent.allocated_width - fish.allocated_width + fish.x_speed = - rand(1..200) * (fish.x_speed > 0 ? 1 : - 1) + end + + if fish.y <= 0 + fish.y = 0 + fish.y_speed = - rand(1..200) * (fish.y_speed > 0 ? 1 : - 1) + elsif fish.y > fish.parent.allocated_height - fish.allocated_height + fish.y = fish.parent.allocated_height - fish.allocated_height + fish.y_speed = - rand(1..200) * (fish.y_speed > 0 ? 1 : - 1) + end + + fish.parent.move(fish, fish.x, fish.y) + end +end |
From: cedlemo <nu...@co...> - 2017-09-04 00:37:08
|
cedlemo 2017-09-04 02:10:10 +0900 (Mon, 04 Sep 2017) New Revision: 37b34ecc4e02be34f26b322139f969d549ef9dc1 https://github.com/ruby-gnome2/ruby-gnome2/commit/37b34ecc4e02be34f26b322139f969d549ef9dc1 Merged 23de9e3: Merge pull request #1099 from cedlemo/gtk3_sample_gtk_demo_fishbowl_rb Message: Remove ToggleButton property that make the ui loader crash Modified files: gtk3/sample/gtk-demo/fishbowl.ui Modified: gtk3/sample/gtk-demo/fishbowl.ui (+0 -2) =================================================================== --- gtk3/sample/gtk-demo/fishbowl.ui 2017-09-04 02:09:32 +0900 (410a24115) +++ gtk3/sample/gtk-demo/fishbowl.ui 2017-09-04 02:10:10 +0900 (8e1017e3e) @@ -20,7 +20,6 @@ <object class="GtkToggleButton" id="changes_allow"> <property name="active">False</property> <property name="visible" bind-source="changes_allow" bind-property="active" bind-flags="invert-boolean">True</property> - <property name="icon-name">changes-allow</property> <property name="relief">none</property> </object> <packing> @@ -31,7 +30,6 @@ <object class="GtkToggleButton" id="changes_prevent"> <property name="active" bind-source="changes_allow" bind-property="active" bind-flags="bidirectional|invert-boolean">True</property> <property name="visible" bind-source="changes_prevent" bind-property="active" bind-flags="invert-boolean">False</property> - <property name="icon-name">changes-prevent</property> <property name="relief">none</property> </object> <packing> |