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: Kouhei S. <nu...@co...> - 2017-07-07 13:35:09
|
Kouhei Sutou 2017-07-07 22:34:30 +0900 (Fri, 07 Jul 2017) New Revision: d35c5b9619e1abd12ef609e38f2fd349fbfd52a0 https://github.com/ruby-gnome2/ruby-gnome2/commit/d35c5b9619e1abd12ef609e38f2fd349fbfd52a0 Message: gtk3: CssProvider#load_from_data accepts GLib::Bytes Modified files: gtk3/lib/gtk3/css-provider.rb Modified: gtk3/lib/gtk3/css-provider.rb (+9 -0) =================================================================== --- gtk3/lib/gtk3/css-provider.rb 2017-07-07 22:30:33 +0900 (f1bdf81) +++ gtk3/lib/gtk3/css-provider.rb 2017-07-07 22:34:30 +0900 (c5bf8e5) @@ -34,5 +34,14 @@ module Gtk raise ArgumentError, "#{message}: #{options.inspect}" end end + + alias_method :load_from_data_raw, :load_from_data + def load_from_data(data) + if data.is_a?(GLib::Bytes) + load_from_data_raw(data.to_s) + else + load_from_data_raw(data) + end + end end end |
From: Kouhei S. <nu...@co...> - 2017-07-07 13:31:57
|
Kouhei Sutou 2017-07-07 22:30:09 +0900 (Fri, 07 Jul 2017) New Revision: a291ed7db4f73f752011a7cc32cb659102fd32dd https://github.com/ruby-gnome2/ruby-gnome2/commit/a291ed7db4f73f752011a7cc32cb659102fd32dd Message: gtk3: support GLib::Bytes as text buffer input Modified files: gtk3/lib/gtk3/text-buffer.rb Modified: gtk3/lib/gtk3/text-buffer.rb (+18 -3) =================================================================== --- gtk3/lib/gtk3/text-buffer.rb 2017-07-07 22:24:20 +0900 (e6594bc) +++ gtk3/lib/gtk3/text-buffer.rb 2017-07-07 22:30:09 +0900 (6893764) @@ -179,7 +179,12 @@ module Gtk alias_method :set_text_raw, :set_text def set_text(text) - set_text_raw(text, text.bytesize) + if text.is_a?(GLib::Bytes) + text, text_size = text.to_s, text.size + else + text_size = text.bytesize + end + set_text_raw(text, text_size) end remove_method :text= alias_method :text=, :set_text @@ -211,12 +216,22 @@ module Gtk private alias_method :insert_interactive_raw, :insert_interactive def insert_interactive(iter, text, default_ediatable) - insert_interactive_raw(iter, text, text.bytesize, default_ediatable) + if text.is_a?(GLib::Bytes) + text, text_size = text.to_s, text.size + else + text_size = text.bytesize + end + insert_interactive_raw(iter, text, text_size, default_ediatable) end alias_method :insert_interactive_at_cursor_raw, :insert_interactive_at_cursor def insert_interactive_at_cursor(text, default_ediatable) - insert_interactive_at_cursor_raw(text, text.bytesize, default_ediatable) + if text.is_a?(GLib::Bytes) + text, text_size = text.to_s, text.size + else + text_size = text.bytesize + end + insert_interactive_at_cursor_raw(text, text_size, default_ediatable) end end end |
From: Kouhei S. <nu...@co...> - 2017-07-07 13:31:56
|
Kouhei Sutou 2017-07-07 22:24:20 +0900 (Fri, 07 Jul 2017) New Revision: 2686e1159f715a8e695388e8cfefc8babb04d227 https://github.com/ruby-gnome2/ruby-gnome2/commit/2686e1159f715a8e695388e8cfefc8babb04d227 Message: pango: add missing backward compatibility constants Modified files: pango/lib/pango/deprecated.rb Modified: pango/lib/pango/deprecated.rb (+14 -0) =================================================================== --- pango/lib/pango/deprecated.rb 2017-07-07 22:12:19 +0900 (fbd4908) +++ pango/lib/pango/deprecated.rb 2017-07-07 22:24:20 +0900 (36ba967) @@ -18,20 +18,34 @@ module Pango extend GLib::Deprecatable define_deprecated_enums :Alignment, "ALIGN" + define_deprecated_enums :Alignment define_deprecated_enums :CoverageLevel, "COVERAGE" + define_deprecated_enums :CoverageLevel define_deprecated_enums :Direction, "DIRECTION" + define_deprecated_enums :Direction define_deprecated_enums :WrapMode, "WRAP" + define_deprecated_enums :WrapMode define_deprecated_enums :FontMask, "FONT_MASK" + define_deprecated_enums :FontMask define_deprecated_enums :Stretch, "STRETCH" + define_deprecated_enums :Stretch define_deprecated_enums :Style, "STYLE" + define_deprecated_enums :Style define_deprecated_enums :Variant, "VARIANT" + define_deprecated_enums :Variant define_deprecated_enums :Weight, "WEIGHT" + define_deprecated_enums :Weight define_deprecated_enums :TabAlign, "TAB" + define_deprecated_enums :TabAlign define_deprecated_enums :Underline, "UNDERLINE" + define_deprecated_enums :Underline define_deprecated_const :UNDERLINE, "Pango::Underline" define_deprecated_enums :Script, "SCRIPT" + define_deprecated_enums :Script define_deprecated_enums :EllipsizeMode, "ELLIPSIZE" + define_deprecated_enums :EllipsizeMode define_deprecated_enums :RenderPart, "PART" + define_deprecated_enums :RenderPart class AttrScale extend GLib::Deprecatable |
From: Kouhei S. <nu...@co...> - 2017-07-07 13:31:56
|
Kouhei Sutou 2017-07-07 22:30:33 +0900 (Fri, 07 Jul 2017) New Revision: 198a547de3ddba5d4fb36403024cb31451e29a00 https://github.com/ruby-gnome2/ruby-gnome2/commit/198a547de3ddba5d4fb36403024cb31451e29a00 Message: gtk3 gtk-demo: ensure String Modified files: gtk3/sample/gtk-demo/css_pixbufs.rb Modified: gtk3/sample/gtk-demo/css_pixbufs.rb (+1 -1) =================================================================== --- gtk3/sample/gtk-demo/css_pixbufs.rb 2017-07-07 22:30:09 +0900 (5025c53) +++ gtk3/sample/gtk-demo/css_pixbufs.rb 2017-07-07 22:30:33 +0900 (3fc72aa) @@ -14,7 +14,7 @@ class CssPixbufsDemo @window.transient_for = main_window @window.set_default_size(400, 300) - @default_css = Gio::Resources.lookup_data("/css_pixbufs/gtk.css", 0) + @default_css = Gio::Resources.lookup_data("/css_pixbufs/gtk.css", 0).to_s initialize_text_buffer initialize_provider |
From: cedlemo <nu...@co...> - 2017-07-07 13:12:49
|
cedlemo 2017-07-07 01:41:14 +0900 (Fri, 07 Jul 2017) New Revision: a3b7b6a80bca4457f1a401637e2eab29c777e8b1 https://github.com/ruby-gnome2/ruby-gnome2/commit/a3b7b6a80bca4457f1a401637e2eab29c777e8b1 Merged 6f745d9: Merge pull request #1050 from cedlemo/gtk3_sample_gtk_demo_css_pixbufs_rb_update_pango_api Message: Update to new api of Pango Modified files: gtk3/sample/gtk-demo/css_pixbufs.rb Modified: gtk3/sample/gtk-demo/css_pixbufs.rb (+2 -2) =================================================================== --- gtk3/sample/gtk-demo/css_pixbufs.rb 2017-07-03 23:50:55 +0900 (4e7a680) +++ gtk3/sample/gtk-demo/css_pixbufs.rb 2017-07-07 01:41:14 +0900 (5025c53) @@ -56,8 +56,8 @@ class CssPixbufsDemo def initialize_text_buffer @text = Gtk::TextBuffer.new - @text.create_tag("warning", "underline" => Pango::UNDERLINE_SINGLE) - @text.create_tag("error", "underline" => Pango::UNDERLINE_ERROR) + @text.create_tag("warning", "underline" => :single) + @text.create_tag("error", "underline" => :error) @text.text = @default_css text_buffer_signal_connect_changed end |
From: Kouhei S. <nu...@co...> - 2017-07-07 13:12:49
|
Kouhei Sutou 2017-07-07 22:12:19 +0900 (Fri, 07 Jul 2017) New Revision: 6f745d90a3c2f5a1251b95658a45144dbef1c1bb https://github.com/ruby-gnome2/ruby-gnome2/commit/6f745d90a3c2f5a1251b95658a45144dbef1c1bb Message: Merge pull request #1050 from cedlemo/gtk3_sample_gtk_demo_css_pixbufs_rb_update_pango_api Update to new api of Pango Patch by cedlemo. Thanks!!! |
From: Kouhei S. <nu...@co...> - 2017-07-07 08:06:56
|
Kouhei Sutou 2017-07-07 17:05:39 +0900 (Fri, 07 Jul 2017) New Revision: ad0fe9a8a85bab789db6236d4bb80a5820a79095 https://github.com/ruby-gnome2/ruby-gnome2/commit/ad0fe9a8a85bab789db6236d4bb80a5820a79095 Message: webkit2-gtk: add a sample that saves screenshot Added files: webkit2-gtk/sample/screenshot.rb Added: webkit2-gtk/sample/screenshot.rb (+65 -0) 100644 =================================================================== --- /dev/null +++ webkit2-gtk/sample/screenshot.rb 2017-07-07 17:05:39 +0900 (5d8efae) @@ -0,0 +1,65 @@ +# Copyright (C) 2017 Ruby-GNOME2 Project Team +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +require "cgi/util" +require "webkit2-gtk" + +if ARGV.empty? + puts("Usage: #{$0} URL...") + puts(" e.g.: #{$0} https://webkitgtk.org/ https://www.gtk.org/") + exit(false) +end + +main_context = GLib::MainContext.default + +view = WebKit2Gtk::WebView.new +ARGV.each do |uri| + view.load_uri(uri) + finished = false + view.signal_connect("load-changed") do |_, load_event| + case load_event + when WebKit2Gtk::LoadEvent::FINISHED + view.get_snapshot(:full_document, :none) do |_, result| + finished = true + snapshot_surface = view.get_snapshot_finish(result) + base_path = CGI.escape(uri) + snapshot_surface.write_to_png("#{base_path}.png") + + width = 200 + height = 200 + thumbnail_surface = Cairo::ImageSurface.new(:argb32, width, height) + context = Cairo::Context.new(thumbnail_surface) + context.set_source_color(:white) + context.paint + ratio = width.to_f / snapshot_surface.width + context.scale(ratio, ratio) + context.set_source(snapshot_surface) + context.paint + thumbnail_surface.write_to_png("#{base_path}.thumbnail.png") + end + end + end + view.signal_connect("load-failed") do |_, _, failed_uri, error| + finished = true + message = "failed to load URI: #{failed_uri}: " + message << "#{error.class}(#{error.code}): #{error.message}" + puts(message) + true + end + until finished + main_context.iteration(true) + end +end |
From: Kouhei S. <nu...@co...> - 2017-07-03 14:51:43
|
Kouhei Sutou 2017-07-03 23:50:55 +0900 (Mon, 03 Jul 2017) New Revision: 3689190490dac8b9f5538824d1b76ffe60555e24 https://github.com/ruby-gnome2/ruby-gnome2/commit/3689190490dac8b9f5538824d1b76ffe60555e24 Message: gi: define "inspect" automatically Modified files: gobject-introspection/lib/gobject-introspection/loader.rb Modified: gobject-introspection/lib/gobject-introspection/loader.rb (+9 -0) =================================================================== --- gobject-introspection/lib/gobject-introspection/loader.rb 2017-07-03 09:10:31 +0900 (3948621) +++ gobject-introspection/lib/gobject-introspection/loader.rb 2017-07-03 23:50:55 +0900 (5ff8b5b) @@ -546,6 +546,7 @@ module GObjectIntrospection def load_method_info(info, klass, method_name) define_method(info, klass, method_name) define_equal_style_setter(info, klass, method_name) + define_inspect(info, klass, method_name) end def remove_existing_method(klass, method_name) @@ -591,6 +592,14 @@ module GObjectIntrospection end end + def define_inspect(info, klass, method_name) + if method_name == "to_s" and info.n_args.zero? + klass.__send__(:define_method, "inspect") do || + super().gsub(/\>\z/) {" #{to_s}>"} + end + end + end + def load_function_infos(infos, klass) infos.each do |info| name = rubyish_method_name(info) |
From: Travis CI <bu...@tr...> - 2017-07-03 00:35:10
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4450 Status: Fixed Duration: 22 minutes and 56 seconds Commit: 937632b (master) Author: Kouhei Sutou Message: gtk3: support GTK+ < 3.16 again View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/3588e8ab3053...937632b297c9 View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/249458908?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-07-03 00:11:07
|
Kouhei Sutou 2017-07-03 09:10:31 +0900 (Mon, 03 Jul 2017) New Revision: 937632b297c9731b5bf64b247660543f815124ad https://github.com/ruby-gnome2/ruby-gnome2/commit/937632b297c9731b5bf64b247660543f815124ad Message: gtk3: support GTK+ < 3.16 again Modified files: gtk3/lib/gtk3/text-buffer.rb gtk3/test/test-gtk-text-buffer.rb Modified: gtk3/lib/gtk3/text-buffer.rb (+10 -8) =================================================================== --- gtk3/lib/gtk3/text-buffer.rb 2017-07-02 22:39:49 +0900 (e61156e) +++ gtk3/lib/gtk3/text-buffer.rb 2017-07-03 09:10:31 +0900 (e6594bc) @@ -151,15 +151,17 @@ module Gtk self end - alias_method :insert_markup_raw, :insert_markup - def insert_markup(iter, markup, n_bytes=nil) - case markup - when GLib::Bytes - n_bytes ||= markup.size - else - n_bytes ||= markup.bytesize + if method_defined?(:insert_markup) + alias_method :insert_markup_raw, :insert_markup + def insert_markup(iter, markup, n_bytes=nil) + case markup + when GLib::Bytes + n_bytes ||= markup.size + else + n_bytes ||= markup.bytesize + end + insert_markup_raw(iter, markup, n_bytes) end - insert_markup_raw(iter, markup, n_bytes) end alias_method :insert_at_cursor_raw, :insert_at_cursor Modified: gtk3/test/test-gtk-text-buffer.rb (+4 -0) =================================================================== --- gtk3/test/test-gtk-text-buffer.rb 2017-07-02 22:39:49 +0900 (0a00c12) +++ gtk3/test/test-gtk-text-buffer.rb 2017-07-03 09:10:31 +0900 (db5727c) @@ -60,6 +60,10 @@ class TestGtkTextBuffer < Test::Unit::TestCase end sub_test_case "#insert_markup" do + setup do + only_gtk_version(3, 16) + end + test "String" do iter = @text_buffer.get_iter_at(:offset => "Hello ".bytesize) @text_buffer.insert_markup(iter, "<b>Ruby</b> ") |
From: Travis CI <bu...@tr...> - 2017-07-02 17:43:35
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4449 Status: Still Failing Duration: 30 minutes and 15 seconds Commit: 3588e8a (master) Author: Kouhei Sutou Message: gtk3 test: add tests for TextTag writers View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/4db70172627a...3588e8ab3053 View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/249328834?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-07-02 17:20:46
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4448 Status: Still Failing Duration: 27 minutes and 45 seconds Commit: 4db7017 (master) Author: Kouhei Sutou Message: gtk3: Gtk::TextTag#scale= accepts scale name such as :x_small View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/bb00e76b753e...4db70172627a View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/249328370?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-07-02 17:01:31
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4447 Status: Still Failing Duration: 27 minutes and 43 seconds Commit: bb00e76 (master) Author: Kouhei Sutou Message: pango: add missing backward compatibility constant Support Pango::UNDERLINE again with deprecation message. View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/b2f8392d6720...bb00e76b753e View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/249327701?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-07-02 16:44:32
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4446 Status: Still Failing Duration: 30 minutes and 15 seconds Commit: b2f8392 (master) Author: Kouhei Sutou Message: Merge pull request #1049 from cedlemo/gtk3_sample_gtk_demo_textview_update_pango_api Update to new api of Pango Patch by cedlemo. Thanks!!! View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/10dcab103e05...b2f8392d6720 View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/249327191?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-07-02 16:26:37
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4445 Status: Still Failing Duration: 31 minutes and 46 seconds Commit: 10dcab1 (master) Author: Kouhei Sutou Message: pango: add Pango::Scale::* again GitHub: fix #1048 Constants: * Pango::Scale::XX_SMALL * Pango::Scale::X_SMALL * Pango::Scale::SMALL * Pango::Scale::MEDIUM * Pango::Scale::LARGE * Pango::Scale::X_LARGE * Pango::Scale::XX_LARGE Deprecated constants: * Pango::AttrScale::XX_SMALL * Pango::AttrScale::X_SMALL * Pango::AttrScale::SMALL * Pango::AttrScale::MEDIUM * Pango::AttrScale::LARGE * Pango::AttrScale::X_LARGE * Pango::AttrScale::XX_LARGE Reported by cedlemo. Thanks!!! View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/27b28d4b8fa7...10dcab103e05 View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/249326817?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-07-02 16:03:39
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4444 Status: Broken Duration: 26 minutes and 59 seconds Commit: 27b28d4 (master) Author: Kouhei Sutou Message: gtk3 test: add tests for TextBuffer#insert and #insert_markup View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/5be6b76d565d...27b28d4b8fa7 View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/249324942?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-07-02 15:45:34
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4443 Status: Broken Duration: 28 minutes and 49 seconds Commit: 5be6b76 (master) Author: Kouhei Sutou Message: gtk3: Gtk::TextBuffer#insert_markup doesn't require length View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/a29b61028752...5be6b76d565d View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/249324516?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-07-02 14:08:40
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4438 Status: Broken Duration: 25 minutes and 40 seconds Commit: b117a1f (master) Author: Kouhei Sutou Message: pango: add missing backward compatibility constants Pango::AttrUnderline::SINGLE and so on. View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/524a36e331df...b117a1fbf1e8 View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/249320691?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-07-02 13:40:23
|
Kouhei Sutou 2017-07-02 22:39:49 +0900 (Sun, 02 Jul 2017) New Revision: 3588e8ab30534a5de780f9ab7cf59a0367aee812 https://github.com/ruby-gnome2/ruby-gnome2/commit/3588e8ab30534a5de780f9ab7cf59a0367aee812 Message: gtk3 test: add tests for TextTag writers Added files: gtk3/test/test-gtk-text-tag.rb Added: gtk3/test/test-gtk-text-tag.rb (+49 -0) 100644 =================================================================== --- /dev/null +++ gtk3/test/test-gtk-text-tag.rb 2017-07-02 22:39:49 +0900 (330aa33) @@ -0,0 +1,49 @@ +# Copyright (C) 2017 Ruby-GNOME2 Project Team +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +class TestGtkTextTag < Test::Unit::TestCase + include GtkTestUtils + + sub_test_case "instance methods" do + def setup + @tag = Gtk::TextTag.new + end + + sub_test_case "#weight" do + test "Symbol" do + @tag.weight = :bold + assert_equal(Pango::Weight::BOLD, @tag.weight) + end + + test "String" do + @tag.weight = "bold" + assert_equal(Pango::Weight::BOLD, @tag.weight) + end + end + + sub_test_case "#scale" do + test "Symbol" do + @tag.scale = :x_small + assert_equal(Pango::Scale::X_SMALL, @tag.scale) + end + + test "String" do + @tag.scale = "x_small" + assert_equal(Pango::Scale::X_SMALL, @tag.scale) + end + end + end +end |
From: Kouhei S. <nu...@co...> - 2017-07-02 13:38:29
|
Kouhei Sutou 2017-07-02 22:37:41 +0900 (Sun, 02 Jul 2017) New Revision: 4db70172627a00ea7dea85a594ceed28be4900ce https://github.com/ruby-gnome2/ruby-gnome2/commit/4db70172627a00ea7dea85a594ceed28be4900ce Message: gtk3: Gtk::TextTag#scale= accepts scale name such as :x_small Modified files: gtk3/lib/gtk3/text-tag.rb gtk3/sample/gtk-demo/textview.rb Modified: gtk3/lib/gtk3/text-tag.rb (+11 -0) =================================================================== --- gtk3/lib/gtk3/text-tag.rb 2017-07-02 22:34:50 +0900 (d395af1) +++ gtk3/lib/gtk3/text-tag.rb 2017-07-02 22:37:41 +0900 (84a57f8) @@ -26,5 +26,16 @@ module Gtk end undef_method :weight= alias_method :weight=, :set_weight + + alias_method :set_scale_raw, :set_scale + def set_scale(scale) + case scale + when Symbol, String + scale = Pango::Scale.const_get(scale.to_s.upcase) + end + set_scale_raw(scale) + end + undef_method :scale= + alias_method :scale=, :set_scale end end Modified: gtk3/sample/gtk-demo/textview.rb (+8 -8) =================================================================== --- gtk3/sample/gtk-demo/textview.rb 2017-07-02 22:34:50 +0900 (b2e9b84) +++ gtk3/sample/gtk-demo/textview.rb 2017-07-02 22:37:41 +0900 (f3e626f) @@ -78,24 +78,24 @@ class TextviewDemo # Gtk::TextTag.priority=. buffer.create_tag("heading", - "weight" => Pango::Weight::BOLD, + "weight" => :bold, "size" => 15 * Pango::SCALE) buffer.create_tag("italic", - "style" => Pango::Style::ITALIC) + "style" => :italic) buffer.create_tag("bold", - "weight" => Pango::Weight::BOLD) + "weight" => :bold) buffer.create_tag("big", # points times the PANGO_SCALE factor "size" => 20 * Pango::SCALE) buffer.create_tag("xx-small", - "scale" => Pango::AttrScale::XX_SMALL) + "scale" => :xx_small) buffer.create_tag("x-large", - "scale" => Pango::AttrScale::X_LARGE) + "scale" => :x_large) buffer.create_tag("monospace", "family" => "monospace") @@ -138,10 +138,10 @@ class TextviewDemo "strikethrough" => true) buffer.create_tag("underline", - "underline" => Pango::UNDERLINE::SINGLE) + "underline" => :single) buffer.create_tag("double_underline", - "underline" => Pango::UNDERLINE::DOUBLE) + "underline" => :double) buffer.create_tag("superscript", "rise" => 10 * Pango::SCALE, # 10 pixels @@ -153,7 +153,7 @@ class TextviewDemo buffer.create_tag("rtl_quote", "wrap_mode" => :word, - "direction" => Gtk::TextDirection::RTL, + "direction" => :rtl, "indent" => 30, "left_margin" => 20, "right_margin" => 20) |
From: Kouhei S. <nu...@co...> - 2017-07-02 13:35:42
|
Kouhei Sutou 2017-07-02 22:34:50 +0900 (Sun, 02 Jul 2017) New Revision: bb00e76b753e543180e39536a3742b7475f7d8d6 https://github.com/ruby-gnome2/ruby-gnome2/commit/bb00e76b753e543180e39536a3742b7475f7d8d6 Message: pango: add missing backward compatibility constant Support Pango::UNDERLINE again with deprecation message. Modified files: pango/lib/pango/deprecated.rb Modified: pango/lib/pango/deprecated.rb (+1 -0) =================================================================== --- pango/lib/pango/deprecated.rb 2017-07-02 22:32:15 +0900 (e53b5a5) +++ pango/lib/pango/deprecated.rb 2017-07-02 22:34:50 +0900 (fbd4908) @@ -28,6 +28,7 @@ module Pango define_deprecated_enums :Weight, "WEIGHT" define_deprecated_enums :TabAlign, "TAB" define_deprecated_enums :Underline, "UNDERLINE" + define_deprecated_const :UNDERLINE, "Pango::Underline" define_deprecated_enums :Script, "SCRIPT" define_deprecated_enums :EllipsizeMode, "ELLIPSIZE" define_deprecated_enums :RenderPart, "PART" |
From: cedlemo <nu...@co...> - 2017-07-02 13:32:30
|
cedlemo 2017-07-02 02:43:04 +0900 (Sun, 02 Jul 2017) New Revision: 45dfca7b32cb314b6a814a4568e1d21832fd4ed0 https://github.com/ruby-gnome2/ruby-gnome2/commit/45dfca7b32cb314b6a814a4568e1d21832fd4ed0 Merged b2f8392: Merge pull request #1049 from cedlemo/gtk3_sample_gtk_demo_textview_update_pango_api Message: Update to new api of Pango Modified files: gtk3/sample/gtk-demo/textview.rb Modified: gtk3/sample/gtk-demo/textview.rb (+5 -5) =================================================================== --- gtk3/sample/gtk-demo/textview.rb 2017-06-25 22:29:28 +0900 (599db0e) +++ gtk3/sample/gtk-demo/textview.rb 2017-07-02 02:43:04 +0900 (b2e9b84) @@ -78,14 +78,14 @@ class TextviewDemo # Gtk::TextTag.priority=. buffer.create_tag("heading", - "weight" => Pango::WEIGHT_BOLD, + "weight" => Pango::Weight::BOLD, "size" => 15 * Pango::SCALE) buffer.create_tag("italic", - "style" => Pango::STYLE_ITALIC) + "style" => Pango::Style::ITALIC) buffer.create_tag("bold", - "weight" => Pango::WEIGHT_BOLD) + "weight" => Pango::Weight::BOLD) buffer.create_tag("big", # points times the PANGO_SCALE factor @@ -138,10 +138,10 @@ class TextviewDemo "strikethrough" => true) buffer.create_tag("underline", - "underline" => Pango::UNDERLINE_SINGLE) + "underline" => Pango::UNDERLINE::SINGLE) buffer.create_tag("double_underline", - "underline" => Pango::UNDERLINE_DOUBLE) + "underline" => Pango::UNDERLINE::DOUBLE) buffer.create_tag("superscript", "rise" => 10 * Pango::SCALE, # 10 pixels |
From: Kouhei S. <nu...@co...> - 2017-07-02 13:32:30
|
Kouhei Sutou 2017-07-02 22:32:15 +0900 (Sun, 02 Jul 2017) New Revision: b2f8392d672037a18880c3452a89935b6caff0ec https://github.com/ruby-gnome2/ruby-gnome2/commit/b2f8392d672037a18880c3452a89935b6caff0ec Message: Merge pull request #1049 from cedlemo/gtk3_sample_gtk_demo_textview_update_pango_api Update to new api of Pango Patch by cedlemo. Thanks!!! |
From: Kouhei S. <nu...@co...> - 2017-07-02 13:30:39
|
Kouhei Sutou 2017-07-02 22:29:02 +0900 (Sun, 02 Jul 2017) New Revision: 10dcab103e05667d7e8f4a4d063ccadee005fa47 https://github.com/ruby-gnome2/ruby-gnome2/commit/10dcab103e05667d7e8f4a4d063ccadee005fa47 Message: pango: add Pango::Scale::* again GitHub: fix #1048 Constants: * Pango::Scale::XX_SMALL * Pango::Scale::X_SMALL * Pango::Scale::SMALL * Pango::Scale::MEDIUM * Pango::Scale::LARGE * Pango::Scale::X_LARGE * Pango::Scale::XX_LARGE Deprecated constants: * Pango::AttrScale::XX_SMALL * Pango::AttrScale::X_SMALL * Pango::AttrScale::SMALL * Pango::AttrScale::MEDIUM * Pango::AttrScale::LARGE * Pango::AttrScale::X_LARGE * Pango::AttrScale::XX_LARGE Reported by cedlemo. Thanks!!! Added files: pango/ext/pango/rb-pango-scale.c Modified files: pango/ext/pango/rb-pango-private.h pango/ext/pango/rb-pango.c pango/lib/pango/deprecated.rb Modified: pango/ext/pango/rb-pango-private.h (+1 -0) =================================================================== --- pango/ext/pango/rb-pango-private.h 2017-07-02 22:20:29 +0900 (286ca94) +++ pango/ext/pango/rb-pango-private.h 2017-07-02 22:29:02 +0900 (903270c) @@ -26,3 +26,4 @@ G_GNUC_INTERNAL void rbpango_attribute_init(VALUE mPango); G_GNUC_INTERNAL void rbpango_attr_iterator_init(VALUE mPango); G_GNUC_INTERNAL void rbpango_attr_list_init(VALUE mPango); G_GNUC_INTERNAL void rbpango_context_init(VALUE mPango); +G_GNUC_INTERNAL void rbpango_scale_init(VALUE mPango); Added: pango/ext/pango/rb-pango-scale.c (+53 -0) 100644 =================================================================== --- /dev/null +++ pango/ext/pango/rb-pango-scale.c 2017-07-02 22:29:02 +0900 (6846e0e) @@ -0,0 +1,53 @@ +/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */ +/* + * Copyright (C) 2017 Ruby-GNOME2 Project Team + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301 USA + */ + +#include "rb-pango-private.h" + +#define RG_TARGET_NAMESPACE mScale + +void +rbpango_scale_init(VALUE mPango) +{ + VALUE RG_TARGET_NAMESPACE; + + RG_TARGET_NAMESPACE = rb_define_module_under(mPango, "Scale"); + + rb_define_const(RG_TARGET_NAMESPACE, + "XX_SMALL", + rb_float_new(PANGO_SCALE_XX_SMALL)); + rb_define_const(RG_TARGET_NAMESPACE, + "X_SMALL", + rb_float_new(PANGO_SCALE_X_SMALL)); + rb_define_const(RG_TARGET_NAMESPACE, + "SMALL", + rb_float_new(PANGO_SCALE_SMALL)); + rb_define_const(RG_TARGET_NAMESPACE, + "MEDIUM", + rb_float_new(PANGO_SCALE_MEDIUM)); + rb_define_const(RG_TARGET_NAMESPACE, + "LARGE", + rb_float_new(PANGO_SCALE_LARGE)); + rb_define_const(RG_TARGET_NAMESPACE, + "X_LARGE", + rb_float_new(PANGO_SCALE_X_LARGE)); + rb_define_const(RG_TARGET_NAMESPACE, + "XX_LARGE", + rb_float_new(PANGO_SCALE_XX_LARGE)); +} Modified: pango/ext/pango/rb-pango.c (+1 -0) =================================================================== --- pango/ext/pango/rb-pango.c 2017-07-02 22:20:29 +0900 (a62617b) +++ pango/ext/pango/rb-pango.c 2017-07-02 22:29:02 +0900 (9b2bf24) @@ -41,4 +41,5 @@ Init_pango(void) rbpango_attr_iterator_init(RG_TARGET_NAMESPACE); rbpango_attr_list_init(RG_TARGET_NAMESPACE); rbpango_context_init(RG_TARGET_NAMESPACE); + rbpango_scale_init(RG_TARGET_NAMESPACE); } Modified: pango/lib/pango/deprecated.rb (+12 -0) =================================================================== --- pango/lib/pango/deprecated.rb 2017-07-02 22:20:29 +0900 (06e4190) +++ pango/lib/pango/deprecated.rb 2017-07-02 22:29:02 +0900 (e53b5a5) @@ -32,6 +32,18 @@ module Pango define_deprecated_enums :EllipsizeMode, "ELLIPSIZE" define_deprecated_enums :RenderPart, "PART" + class AttrScale + extend GLib::Deprecatable + + define_deprecated_const :XX_SMALL, "Pango::Scale::XX_SMALL" + define_deprecated_const :X_SMALL, "Pango::Scale::X_SMALL" + define_deprecated_const :SMALL, "Pango::Scale::SMALL" + define_deprecated_const :MEDIUM, "Pango::Scale::MEDIUM" + define_deprecated_const :LARGE, "Pango::Scale::LARGE" + define_deprecated_const :X_LARGE, "Pango::Scale::X_LARGE" + define_deprecated_const :XX_LARGE, "Pango::Scale::XX_LARGE" + end + class AttrUnderline extend GLib::Deprecatable |
From: Travis CI <bu...@tr...> - 2017-07-02 13:30:12
|
Build Update for ruby-gnome2/ruby-gnome2 ------------------------------------- Build: #4436 Status: Broken Duration: 25 minutes and 16 seconds Commit: 16f20ef (master) Author: Kouhei Sutou Message: gtk3 gtk-demo: simplify View the changeset: https://github.com/ruby-gnome2/ruby-gnome2/compare/a61bdecdd112...16f20ef8e56f View the full build log and details: https://travis-ci.org/ruby-gnome2/ruby-gnome2/builds/249318837?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 |