You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
(6) |
Sep
(16) |
Oct
(36) |
Nov
(85) |
Dec
(151) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(49) |
Feb
(51) |
Mar
(71) |
Apr
(87) |
May
(91) |
Jun
(93) |
Jul
(160) |
Aug
(229) |
Sep
(85) |
Oct
(89) |
Nov
(85) |
Dec
(98) |
2004 |
Jan
(40) |
Feb
(98) |
Mar
(149) |
Apr
(106) |
May
(153) |
Jun
(77) |
Jul
(85) |
Aug
(55) |
Sep
(50) |
Oct
(53) |
Nov
(83) |
Dec
(32) |
2005 |
Jan
(97) |
Feb
(124) |
Mar
(60) |
Apr
(79) |
May
(55) |
Jun
(62) |
Jul
(70) |
Aug
(130) |
Sep
(115) |
Oct
(32) |
Nov
(46) |
Dec
(54) |
2006 |
Jan
(114) |
Feb
(78) |
Mar
(37) |
Apr
(54) |
May
(82) |
Jun
(34) |
Jul
(54) |
Aug
(50) |
Sep
(26) |
Oct
(46) |
Nov
(105) |
Dec
(83) |
2007 |
Jan
(105) |
Feb
(64) |
Mar
(57) |
Apr
(20) |
May
(18) |
Jun
(80) |
Jul
(108) |
Aug
(26) |
Sep
(36) |
Oct
(49) |
Nov
(94) |
Dec
(46) |
2008 |
Jan
(24) |
Feb
(24) |
Mar
(200) |
Apr
(92) |
May
(112) |
Jun
(54) |
Jul
(41) |
Aug
(50) |
Sep
(66) |
Oct
(82) |
Nov
(15) |
Dec
(44) |
2009 |
Jan
(68) |
Feb
(34) |
Mar
(55) |
Apr
(50) |
May
(95) |
Jun
(33) |
Jul
(24) |
Aug
(40) |
Sep
(61) |
Oct
(33) |
Nov
(7) |
Dec
(61) |
2010 |
Jan
(18) |
Feb
(47) |
Mar
(24) |
Apr
(24) |
May
(42) |
Jun
(59) |
Jul
(28) |
Aug
(23) |
Sep
(55) |
Oct
(102) |
Nov
(33) |
Dec
(11) |
2011 |
Jan
(37) |
Feb
(115) |
Mar
(96) |
Apr
(37) |
May
(8) |
Jun
(13) |
Jul
(7) |
Aug
(61) |
Sep
(143) |
Oct
(78) |
Nov
(14) |
Dec
(33) |
2012 |
Jan
(49) |
Feb
(57) |
Mar
(62) |
Apr
(38) |
May
(26) |
Jun
(16) |
Jul
(12) |
Aug
(10) |
Sep
(8) |
Oct
(12) |
Nov
(38) |
Dec
(25) |
2013 |
Jan
(55) |
Feb
(53) |
Mar
(39) |
Apr
(37) |
May
(21) |
Jun
(4) |
Jul
(7) |
Aug
(8) |
Sep
(24) |
Oct
(17) |
Nov
(11) |
Dec
(81) |
2014 |
Jan
(22) |
Feb
(9) |
Mar
(29) |
Apr
(133) |
May
(12) |
Jun
(13) |
Jul
(5) |
Aug
(11) |
Sep
|
Oct
(10) |
Nov
(18) |
Dec
(1) |
2015 |
Jan
(18) |
Feb
(2) |
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
(28) |
Oct
(15) |
Nov
(8) |
Dec
(7) |
2016 |
Jan
(19) |
Feb
|
Mar
|
Apr
(1) |
May
(10) |
Jun
(3) |
Jul
(19) |
Aug
|
Sep
(5) |
Oct
(1) |
Nov
(9) |
Dec
|
2017 |
Jan
|
Feb
(18) |
Mar
|
Apr
(2) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(6) |
Sep
|
Oct
|
Nov
|
Dec
|
2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(4) |
Nov
(2) |
Dec
|
From: Stefan S. <ma...@ss...> - 2015-09-23 16:38:59
|
On Wed, 2015-09-23 at 23:28 +0900, Kouhei Sutou wrote: > "sudo make install" conflicts with "rake gem:install". You > should remove /usr/lib64/ruby/site_ruby/2.2.0/glib2.rb and > related files. Indeed. I forgot to delete the old .gem directory in my home directory. After emerge -av =x11-libs/vte-0.28.2-r207 to get an older VTE from my gentoo package manager git install works fine. It is not really clear from your pages that that old vte version is needed. I did a --user-install again, because rake and other stuff is already provided on my box by gentoo package manager, and removing all that is some work. So I did git clone https://github.com/ruby-gnome2/ruby-gnome2.git % cd ruby-gnome2 % gem install --user-install rake rake-compiler mechanize pkg-config cairo % rake gem:build % rake gem:install Followed by changing .bashrc and fixing RUBYLIB export RUBYLIB=/home/stefan/.gem/ruby/2.2.0/extensions/x86_64 -linux/2.2.0/ export PATH=$PATH:/home/stefan/.gem/ruby/2.2.0/bin Now I can launch my app, and get mostly deprecated warnings, which I will fix. Unfortunately still many crashes with messages like paint newsize /home/stefan/pet/pet_bbox.rb:17: [BUG] rb_gc_mark(): 0x0000000254d2e0 is T_NONE ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux] You told me to look for errors raised in callbacks in your first post. Will try that. Maybe I can locate the reasons for the crashes. Thanks. |
From: Stefan S. <ma...@ss...> - 2015-09-23 14:36:00
|
On Wed, 2015-09-23 at 23:25 +0900, Kouhei Sutou wrote: > > vte-0.40.2 provides 'vte-2.91' package. It's not 'vte' > package. ('vte' package is old VTE.) OK, thanks. Will try to fix that. > > > Now I tried to install 3.05 from ruby-gtk3-3.0.5.tar.gz > > > > % ruby extconf.rb > > % make > > % sudo make install > > Why did you use 3.0.5 instead of master? > You already have gtk3 by 'rake gem:install'. > You don't need these command lines. It causes problems. I tried ruby-gtk3-3.0.5.tar.gz because all my tries to install git master failed yesterday, because of vte. Will try again. |
From: Kouhei S. <ko...@co...> - 2015-09-23 14:29:07
|
In <144...@ss...> "Re: [ruby-gnome2-devel-en] [ANN] Ruby-GNOME2 3.0.4" on Wed, 23 Sep 2015 15:44:20 +0200, Stefan Salewski <ma...@ss...> wrote: > On Wed, 2015-09-23 at 14:38 +0200, Stefan Salewski wrote: >> Will investigate it, maybe I can avoid >> CellLayoutDataFunc. > > The good news first: I can launch my program again with 3.05 after a > few fixes. But this is what is logged at the console: > > http://ssalewski.de/tmp/msg.txt The following warning is caused by "sudo make install": > /home/stefan/.gem/ruby/2.2.0/gems/glib2-3.0.6/lib/glib2.rb:158: warning: already initialized constant GLib::Log::DOMAIN > /usr/lib64/ruby/site_ruby/2.2.0/glib2.rb:158: warning: previous definition of DOMAIN was here "sudo make install" conflicts with "rake gem:install". You should remove /usr/lib64/ruby/site_ruby/2.2.0/glib2.rb and related files. > That is a problem when set_cell_data_func is not available :-( It's available at master. > So I am not allowed to set the tab_label this way any more. What is the strategy > to find out how to do it now? In the last years, I did it mostly by guessing, > which can take really much time. It's also available at master. Thanks, -- kou |
From: Kouhei S. <ko...@co...> - 2015-09-23 14:25:23
|
Hi, In <144...@ss...> "Re: [ruby-gnome2-devel-en] [ANN] Ruby-GNOME2 3.0.4" on Wed, 23 Sep 2015 14:38:43 +0200, Stefan Salewski <ma...@ss...> wrote: > % git clone https://github.com/ruby-gnome2/ruby-gnome2.git > % cd ruby-gnome2 > % gem install --user-istall rake rake-compiler mechanize pkg-config > cairo > % rake gem:build > % rake gem:install > > I added --user-install and tried without root privileges. Unfortunately > rake gem:install failed for vte. There was no really helpful error > description, but output was "checking for vte ... no" which should be > wrong. x11-libs/vte-0.40.2 is installed from gentoo package manager, vte-0.40.2 provides 'vte-2.91' package. It's not 'vte' package. ('vte' package is old VTE.) > Now I tried to install 3.05 from ruby-gtk3-3.0.5.tar.gz > > % ruby extconf.rb > % make > % sudo make install Why did you use 3.0.5 instead of master? You already have gtk3 by 'rake gem:install'. You don't need these command lines. It causes problems. > But when i try to launch may program: > > /usr/lib64/ruby/site_ruby/2.2.0/gobject-introspection/loader.rb:551:in > `invoke': TODO: <CellLayoutDataFunc>(func) callback is not supported > yet. (NotImplementedError) > from /usr/lib64/ruby/site_ruby/2.2.0/gobject > -introspection/loader.rb:551:in `block in define_method' > from /home/stefan/pet/pet_prop.rb:81:in `initialize' > > Seems to be a regression. Will investigate it, maybe I can avoid > CellLayoutDataFunc. It has been fixed at master. Thanks, -- kou |
From: Stefan S. <ma...@ss...> - 2015-09-23 13:53:00
|
On Wed, 2015-09-23 at 14:38 +0200, Stefan Salewski wrote: > Will investigate it, maybe I can avoid > CellLayoutDataFunc. The good news first: I can launch my program again with 3.05 after a few fixes. But this is what is logged at the console: http://ssalewski.de/tmp/msg.txt The deprecated warnings are not a problem for me, I had that already when I port the application from gtk2 to gtk3. That is easy to fix. But all the other messages? No idea currently. For my current fixes: class ColBox < Gtk::ComboBox attr_accessor :lock Col_Name, Col_Pixbuf, Col_Full_Name = 0, 1, 2 def initialize store = Gtk::ListStore.new(String, Gdk::Pixbuf, String) Pet_Config::get_default_config.get_colors(Pet_Config::SCR_S).each{|sym, b, c| next unless s = Pet_Config::Color_Name[sym] # some colors may have no name/index, i.e. pin hot end color iter = store.append iter[Col_Name] = "(#{s})" iter[Col_Pixbuf] = Gdk::Pixbuf.new(Gdk::Pixbuf::COLORSPACE_RGB, true, 8, 12, 12) # (colorspace, has_alpha, bits_per_sample, width, height) iter[Col_Full_Name] = sym.to_s } super(:model => store) self.margin = 0 self.id_column = Col_Full_Name renderer = Gtk::CellRendererPixbuf.new self.pack_start(renderer, false) self.add_attribute(renderer, "pixbuf", Col_Pixbuf) # self.set_cell_data_func(renderer) do |w, renderer, model, iter| # Gtk::ComboBox, Gtk::CellRendererPixbuf, Gtk::ListStore, Gtk::TreeIter # r, g, b, a = Pet_Config::get_default_config.get_conf(Pet_Config::SCR_S)[iter[Col_Full_Name].to_sym] # renderer.pixbuf.fill!((r * 255).round * 16777216 + (g * 255).round * 65536 + (b * 255).round * 256 + (a * 255).round) # end That is a problem when set_cell_data_func is not available :-( And here: class Properties_Widget < Gtk::Notebook attr_accessor :main_window # ask for redraw of object if property is changed def initialize(main_window) super() @main_window = main_window @grid_sensitive_spin_button_list = Array.new self.enable_popup = true self.add(w = Box_Widget.new(self))#, :tab_label => 'Box') self.set_tab_reorderable(w, true) So I am not allowed to set the tab_label this way any more. What is the strategy to find out how to do it now? In the last years, I did it mostly by guessing, which can take really much time. That is indeed much more trouble than expected. But what can we do? GTK 3.16 is what people will use on Linux in these days, and that gives crashes with ruby-gnome2.2.5. Best regards, Stefan Salewski |
From: Stefan S. <ma...@ss...> - 2015-09-23 12:47:23
|
On Tue, 2015-09-22 at 22:38 +0900, Kouhei Sutou wrote: > I've fixed it at master. > Cloud you try master? > https://github.com/ruby-gnome2/ruby-gnome2/#install-from-github-mas > ter-branch I tried yesterday. First removed all the related Gentoo packages, then % git clone https://github.com/ruby-gnome2/ruby-gnome2.git % cd ruby-gnome2 % gem install --user-istall rake rake-compiler mechanize pkg-config cairo % rake gem:build % rake gem:install I added --user-install and tried without root privileges. Unfortunately rake gem:install failed for vte. There was no really helpful error description, but output was "checking for vte ... no" which should be wrong. x11-libs/vte-0.40.2 is installed from gentoo package manager, # locate vte.so /usr/lib64/libvte.so /usr/lib64/libvte.so.9 /usr/lib64/libvte.so.9.2800.2 /usr/lib64/ruby/site_ruby/2.2.0/x86_64-linux/vte.so AMD64X2 ruby-gtk3-3.0.5 # locate vte.h /usr/include/vte-2.91/vte/vte.h I was not able to locate where the error occurred. Now I tried to install 3.05 from ruby-gtk3-3.0.5.tar.gz % ruby extconf.rb % make % sudo make install Compiles, but with a lot of warnings, for example about deprecated symbols. But when i try to launch may program: /usr/lib64/ruby/site_ruby/2.2.0/gobject-introspection/loader.rb:551:in `invoke': TODO: <CellLayoutDataFunc>(func) callback is not supported yet. (NotImplementedError) from /usr/lib64/ruby/site_ruby/2.2.0/gobject -introspection/loader.rb:551:in `block in define_method' from /home/stefan/pet/pet_prop.rb:81:in `initialize' Seems to be a regression. Will investigate it, maybe I can avoid CellLayoutDataFunc. |
From: Stefan S. <ma...@ss...> - 2015-09-22 15:17:12
|
On Tue, 2015-09-22 at 22:38 +0900, Kouhei Sutou wrote: > Hi, > > Thanks for your report. > > Could your show build log for gtksourceview compile? Currently I have no logs, it was Mr Graaff from Gentoo Linux developer team who tried to compile gtksourceview. He has much more experience than I have, have already contacted him again. We will try to send you logs as soon as possible. > I've fixed it at master. > Cloud you try master? > https://github.com/ruby-gnome2/ruby-gnome2/#install-from-github-mas > ter-branch > Great. I will try to install that one. > There are some bugs in your program. If an error is raised > in callback (block registered by signal_connect), your > program will report Ruby level backtrace, C level backtrace > and so on at exit. > > Normally, you should not raise any error in callback because > we can't recover from the error. > > Thank you for that hint, will check that. Best regards, Stefan Salewski |
From: Kouhei S. <ko...@co...> - 2015-09-22 13:39:00
|
Hi, Thanks for your report. In <144...@ss...> "Re: [ruby-gnome2-devel-en] [ANN] Ruby-GNOME2 3.0.4" on Tue, 22 Sep 2015 11:38:43 +0200, Stefan Salewski <ma...@ss...> wrote: > Would be great if we can avoid the crashes in future. I will contact > Gentoo developers again and ask to put latest ruby-gnome2 in the > package repositories -- they already tried with 3.02 but many test > failed and gtksourceview did not compile at all, see > https://bugs.gentoo.org/show_bug.cgi?id=560520 Could your show build log for gtksourceview compile? > When you are interested in testing your bindings, you may try my > schematics editor from my homepage. Ruby peted.rb should start with an > empty sheet, and you may draw some lines or other graphic elements. > That tool is indeed a very heavy test for ruby-gnome -- it is not yet > finished and contains bugs caused by me. But currently often it crashes > with something like > > /usr/lib64/ruby/site_ruby/2.2.0/gobject-introspection/repository.rb:27: > [BUG] Segmentation fault at 0x00000000000018 > ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux] > > I think that should not occur, and have no idea how to debug/fix that. I've fixed it at master. Cloud you try master? https://github.com/ruby-gnome2/ruby-gnome2/#install-from-github-master-branch There are some bugs in your program. If an error is raised in callback (block registered by signal_connect), your program will report Ruby level backtrace, C level backtrace and so on at exit. Normally, you should not raise any error in callback because we can't recover from the error. Thanks, -- kou |
From: Stefan S. <ma...@ss...> - 2015-09-22 10:02:43
|
On Tue, 2015-09-22 at 15:55 +0900, Kouhei Sutou wrote: > Hi, > > Ruby-GNOME2 project released Ruby-GNOME2 3.0.4: > http://ruby-gnome2.osdn.jp/hiki.cgi?News_20150922_1 Great, thank you very much. Currently for Gentoo Linux we have GTK/Gnome 3.16 and still ruby-gnome2 -2.2.5 -- and in the last weeks I had many random crashes/segfaults unfortunately for my application http://www.ssalewski.de/PetEd.html.en So I did a Google search and found this announcement https://www.ruby-forum.com/topic/6876851#new Now my feeling is, that that person is not really a Ruby-Gnome core developer :-( You may have seen my plain GTK3 bindings for Nim: https://github.com/StefanSalewski?tab=repositories So I know that it is a lot of work for you and your team to make the Ruby-Gnome bindings. Would be great if we can avoid the crashes in future. I will contact Gentoo developers again and ask to put latest ruby-gnome2 in the package repositories -- they already tried with 3.02 but many test failed and gtksourceview did not compile at all, see https://bugs.gentoo.org/show_bug.cgi?id=560520 When you are interested in testing your bindings, you may try my schematics editor from my homepage. Ruby peted.rb should start with an empty sheet, and you may draw some lines or other graphic elements. That tool is indeed a very heavy test for ruby-gnome -- it is not yet finished and contains bugs caused by me. But currently often it crashes with something like /usr/lib64/ruby/site_ruby/2.2.0/gobject-introspection/repository.rb:27: [BUG] Segmentation fault at 0x00000000000018 ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux] I think that should not occur, and have no idea how to debug/fix that. Best wishes Stefan Salewski |
From: Kouhei S. <ko...@co...> - 2015-09-22 06:55:40
|
Hi, Ruby-GNOME2 project released Ruby-GNOME2 3.0.4: http://ruby-gnome2.osdn.jp/hiki.cgi?News_20150922_1 It is the first release announce of 3.x series. We re-implemented Ruby/GTK3 as Ruby/GObjectIntrospection based bindings at 3.0.0. It means that you can use full GTK+ 3 features. If your program that uses Ruby/GTK3 doesn't work with 3.x, please report to us. It must be a Ruby/GTK3 bug. We'll fix the bug. cedlemo is MVP for releasing 3.0.0. He updates all Ruby/GTK3 samples and confirms their behavior. Very thanks!!! == How to install % gem install gtk3 You can also use it on Windows. Here are changes since 2.2.5 (the last 2.x release): == Ruby-GNOME2 3.0.4: 2015-09-21 It is a build fix release for 32bit Windows. === Changes ==== All * Improvements * Supported auto native package installation on Arch Linux. [GitHub#553][GitHub#563] [Patch by lilole] ==== Ruby/GObjctIntrospection * Fixes * 32bit Windows: Fixed strut field accessors access wrong address. ==== Ruby/ATK * Improvements * Added (({Atk::Version.or_later?})) [GitHub#552] [Patch by cedlemo] ==== Ruby/GdkPixbuf2 * Improvements * Added (({Gdk::Pixbuf::Version.or_later?})). [GitHub#561] [Patch by cedlemo] ==== Ruby/GDK3 * Improvements * Supported GTK+ 3.17.9. [GitHub#558] [Reported by Mamoru TASAKA] ==== Ruby/GTK3 * Improvements * Updated examples. [GitHub#550] [Patch by cedlemo] ==== Ruby/ClutterGstreamer * Improvements * Added (({ClutterGst.load_version})). * Added (({ClutterGst.load_version=})). * Added (({ClutterGst::Version.or_later?})). [GitHub#556] [Patch by cedlemo] === Thanks * cedlemo * lilole * Mamoru TASAKA == Ruby-GNOME2 3.0.3: 2015-09-16 It is a compatibility improvement release of 3.0.2. === Changes ==== All * Improvements * Removed test-unit-notify gem from development dependencies. [GitHub#547] [Patch by cedlemo] ==== Ruby/GObjectIntrospection * Improvements * Supported (({GObjectIntrospection::Repository.prepend_search_path})). * Supported (({GObjectIntrospection::Repository.search_path})). * Windows: Supported requiring library after one (({GObjectIntrospection::Loader#load})). [GitHub#546] [Reported by Abby Archer] ==== Ruby/GTK3 * Improvements * Supported (({Gtk::IconSize.lookup})). [GitHub#544] [Reported by Masafumi Yokoyama] * Supported size name as argument of (({Gtk::Widget#render_icon_pixbuf})). [GitHub#544] [Reported by Masafumi Yokoyama] * Supported (({Gio::Icon})) in (({Gtk::IconTheme#lookup_icon})). [GitHub#544] [Reported by Masafumi Yokoyama] * Supported (({Gtk::TreeModel#iter_parent})). * Supported (({Gtk::TreeIter#parent})). * Updated examples. [GitHub#548] [Patch by cedlemo] * Fixes * Fixed a bug that (({Gtk::Widget.bind_template_child})) is required. [GitHub#549] [Reported by cedlemo] * Fixed a bug that default (({x_option})) and (({y_option})) values of (({Gtk::Table#attach})) is wrong. [GitHub#546] [Reported by Abby Archer] * Windows: Fixed a bug that Ruby/RSVG2 isn't required automatically. [GitHub#546] [Reported by Abby Archer] === Thanks * Masafumi Yokoyama * cedlemo * Abby Archer == Ruby-GNOME2 3.0.2: 2015-09-13 It is a compatibility improvement release of 3.0.1. === Changes ==== Ruby/GObjectIntrospection * Improvements * Supported void pointer. [GitHub#540] [Reported by Abby Archer] * Added (({GObjectIntrospection::Loader.instantiate_gobject_pointer})). ==== Ruby/GDK3 * Improvements * Supported (({Gdk::Window#user_data})). [GitHub#540] [Reported by Abby Archer] * compatibility: (({Cairo::Context#set_source_rgba})) accepts (({nil})) as alpha value. [GitHub#540] [Reported by Abby Archer] * compatibility: Added fallback feature for deprecated (({Gdk::EventScroll::Direction})). * Windows: Added hicolor-icon-theme as fallback theme. ==== Ruby/GTK3 * Improvements * compatibility: (({Gtk::Window#icon=})) accepts icon file name. [GitHub#540] [Reported by Abby Archer] * compatibility: (({Gtk::Dialog#add_button})) accepts (({Symbol})) as response ID. [GitHub#540] [Reported by Abby Archer] * Deprecated (({Gtk::ColorSelectionDialog})). * compatibility: Added fallback feature for deprecated (({Gtk::TextTag::WrapMode})). * compatibility: Added fallback feature for deprecated (({Gtk::TextBuffer#insert(iter, target, *tags)})) usage. * compatibility: Added fallback feature for deprecated (({Gtk::ButtonBox::Style})). * compatibility: Added fallback feature for deprecated (({Gtk::MessageDialog::ButtonsType})). * compatibility: Supported creating an empty image by (({Gtk::Image.new})). * compatibility: Added fallback feature for deprecated (({Gtk::ImageMenuItem.new})) usage. * Supported (({Gtk::TreeIter#next!})). * Supported (({Gtk::TreeModel#get_value})). * compatibility: Added fallback feature for deprecated (({Gtk::Alignment::Align})). * compatibility: Added fallback feature for deprecated (({Gtk::Widget#get_size_request})). * compatibility: Added fallback feature for deprecated (({Gtk::Table.new})). * compatibility: Added fallback feature for deprecated (({Gtk::Table#column_spaces})). * compatibility: Added fallback feature for deprecated (({Gtk::Table#column_spaces=})). * compatibility: Added fallback feature for deprecated (({Gtk::Table#attach})). * compatibility: Added fallback feature for deprecated (({Gtk::ToggleButton.new})). * Windows: Added missing Ruby/RSVG2 dependency. * compatibility: Added fallback feature for deprecated (({Gtk::Container#each_forall})). * Supported (({nil})) as (({size})) for (({Gtk::Image.new})). * compatibility: Added fallback feature for deprecated (({Gtk::Image.new(pixbuf)})). * compatibility: Added fallback feature for deprecated (({Gtk::Toolbar::Style})). * Supported Rubyish (({Gtk::CheckMenuItem.new})). * Fixes * Fixed samples. [GitHub#536][GitHub#541] [Patch by cedlemo] [GitHub#540] [Reported by Abby Archer] * Fixed a bug that (({Gtk::Calendar#date})) returns (({0-11})) range month value. ==== Ruby/RSVG2 * Improvements * Windows: Added missing Ruby/Pango dependency. * Windows: Updated loaders.cache for gdk-pixbuf automatically. ==== Ruby/GStreamer * Improvements * compatibility: (({Gst::TypeFindFactory#extensions})) always returns (({Array})). === Thanks * cedlemo * Abby Archer == Ruby-GNOME2 3.0.1: 2015-09-11 It is a bug fix release of 3.0.0. === Changes ==== Ruby/GLib2 * Fixes * Windows: Fixed a bug that large number flag value isn't usable. [GitHub#538] [Reported by Abby Archer] ==== Ruby/GTK3 * Improvements * Updated tutorials. [GitHub#534][GitHub#537] [Patch by cedlemo] ==== Ruby/VTE3 * Improvements * Added (({Vte::Version.or_later?})). [GitHub#535] [Patch by cedlemo] === Thanks * cedlemo * Abby Archer == Ruby-GNOME2 3.0.0: 2015-09-10 It is a GTK+ 3.16 support release. To GTK+ 3.16 support, many people helped us. Especially, cedlemo did great works. Very thanks all!!! === Changes ==== All * Improvements * Added install instruction for GitHub master branch. [GitHub#425][Patch by Hiroyuki Sato] ==== Ruby/GLib2 * Improvements * Added new APIs: * (({RVAL2GOBJGLIST})) * (({RVAL2GOBJGSLIST})) * (({rbg_rval2glist})) * (({rbg_rval2gslist})) * (({RVAL2CSTR_PTR})) * (({rbg_name_to_nick})) * (({rbgobj_class_init_func})) * (({rbgobj_register_type})) * Changed (({RVAL2CSTR})) to return (({NULL})) terminated string. If you want to get raw string that may not be terminated by (({NULL})), use (({RVAL2CSTR_PTR})). * Supported (({Symbol})) as flag value. * Added (({windows_platform?})) * Supported (({GLib::Value.new})) without value. * Supported array of flag value as (({GLib::Flags.new})) input. * Supported name, nick and (({GLib::Enum})) as (({GLib::Enum.new})) input. * Migrated to Markdown for README markup. [GitHub#484][Patch by prpr_man] * Supported (({GVariantType})). * Supported (({GVariant})). * Supported (({GBinding})). [GitHub#524][Reported by cedlemo] * Fixes * Fixed a bug that (({GLib.format_size})) doesn't work 32bit over integer value. [GitHub#413][Reported by eumario] ==== Ruby/GObjectIntrospection * Improvements * Supported non GObject struct as return value. [GitHub#286][Reported by Christopher L. Ramsey] * Supported (({list_XXX})) method name. * Supported freeing (({GList<GObjet *>})). * Supported array of struct as input argument. * Supported auto native package install on CentOS 7. * Supported (({can_XXX?})) predicate. * Supported the number of array as input argument. [Suggested by John Cupitt] * Supported array of (({GValue})) as input argument. * Supported array as return value. * Supported (({GClosure})) as input argument. * Supported (({GSList<GObject *>})) as input argument. * Supported (({GSList<GObject *>})) as output argument. [GitHub#324][Reported by cedlemo] * Supported union as input argument. * Supported array of (({guint8})) as input argument. * Supported array of (({gint32})) as input argument. * Supported class methods defined in (({XXXClass})). * Supported (({GList<GBoxed *>})) as output argument. [GitHub#389][Reported by eumario] * Supported (({GList<GInterface *>})) as return value. [GitHub#501][Reported by Christopher L. Ramsey] * Supported (({GVariant})) as return value. [GitHub#502][Reported by kitone] * Fixes * Fixed a bug that (({GList<GObjet *>})) return type method always returns nil. * Fixed a bug that not predicate is treated as predicate. * Fixed a bug that (({self})) is different. ==== Ruby/GIO2 * Improvements * Supported (({GAsyncReadyCallback})). [GitHub#302][Reported by Christopher L. Ramsey] * Added (({ActionMap#add_actions})). ==== Ruby/Pango * Improvements * Added (({Pango::Language#sample_string})). ==== Ruby/GDK3 * Improvements * Added backward compatibility APIs. [GitHub#284][Reported by Christopher L. Ramsey] * Added constants in (({Gdk::Selection})). [GitHub#254][Patch by Masafumi Yokoyama] * Added missing deprecations. [GitHub#291][Reported by Michel Boaventura] * Added (({RGBA.parse})). [GitHub#295][Reported by carlosjhr64] * Supported (({Gdk::Rectangle})). [GitHub#319][Reported by cedlemo] * Supported (({Gdk::Screen#get_setting})). [GitHub#376][Reported by cedlemo] * Added (({Gdk::Screen#get_monitor})). * Fixes * Fixed a bug that (({GDK_KEY_XXX})) raises an error. [ruby-gnome2-devel-en][Reported by Detlef Reichl] ==== Ruby/GTK3 * Improvements * Migrated to GObject Introspection based bindings from hand writing bindings. Now, all the latest API in GTK+ are supported. [Hiroshi Hatake][Detlef Reichl][cedlemo][John Cupitt] [Masafumi Yokoyama][eumario][PeterWAWood][Daiki Ueno] * Updated samples. [Patch by cedlemo] ==== Ruby/GtkSourceView3 * Improvements * Migrated to GObject Introspection based bindings from hand writing bindings. Now, all the latest API in GtkSourceView are supported. ==== Ruby/VTE3 * Improvements * Migrated to GObject Introspection based bindings from hand writing bindings. Now, all the latest API in VTE are supported. [cedlemo] ==== Ruby/GStreamer * Fixes * Fixed native package name on CentOS and Fedora. * Fixed shebang. [GitHub#507][Patch by Dmitry Marakasov] ==== Ruby/RSVG2 * Improvements * Added (({:file_name})), (({:data})) and (({:flags})) option to (({RSVG::Handle.new})). * Updated a sample. [GitHub#518][Patch by Robert A. Heiler]. * Fixes * Fixed a memory leak of (({RSVG::Handle.new_from_data})) and (({RSVG::Handle.new_from_file})). [GitHub#318][Reported by Kagetsuki] ==== Ruby/Clutter * Improvements * Added (({Clutter::Version.or_later?})). ==== Ruby/WebKit2GTK * Improvements * Added. === Thanks * Hiroshi Hatake * Christopher L. Ramsey * Masafumi Yokoyama * cedlemo * Detlef Reichl * Kagetsuki * eumario * PeterWAWood * Hiroyuki Sato * Daiki Ueno * prpr_mann * Dmitry Marakasov |
From: Peter W A W. <pet...@gm...> - 2015-05-05 03:51:17
|
Many thanks Mario. I’ve filed a bug report as you suggested. Regards Peter > On 5 May 2015, at 09:33, Mario Steele <ma...@ru...> wrote: > > Hello Peter, > > The best thing that I can suggest, is to run a Simple Example, like so: > ------------------------------------------------------------------ > require 'gtk3' > > win = Gtk::Window.new > win.signal_connect("destroy") do > Gtk.main_quit > end > > win.title = "Hello World" > win.show_all > Gtk.main > ------------------------------------------------------------------ > > Then when the Program crashes with the segfault, copy everything that Ruby Spews out, the backtrace, ruby stack, all of it, and goto http://github.com/ruby-gnome2/ruby-gnome2 <http://github.com/ruby-gnome2/ruby-gnome2> and file a new Bug with the group there. Also include, what version you are using, if you are using from a gem install, or from a git clone from github. And it may be of interest to try the latest development version from the Git Repository, to see if the issue occurs or not, and go from there. Ruby-Gnome2 is in the process of converting from pure C bindings, to a C Stub for things that Ruby can't handle, and the rest being binded through GObjectIntrospection, and the majority of the work is being done in this tree. > > hth, > > Mario Steele > Ruby Developer > C# Developer > Java Developer > > On Mon, May 4, 2015 at 8:55 PM, Peter W A Wood <pet...@gm... <mailto:pet...@gm...>> wrote: > I’m looking into using Ruby and gtk+3 on Raspberry Pi to see if it can be used by children as young as 7 or 8. First, I need to become familiar with Ruby/gtk3. I’m hoping to do that on my laptop which runs under OS X Yosemite. > > I’ve installed X-Windows, gtk+3 and the gtk3 Ruby Gem. > > Whenever, I run a Ruby script using gtk3, I get this warning message: > > 2015-05-04 11:05:36.967 ruby[32956:4463982] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead. > > The short sample scripts that I have then work as expected but whenever, I close a gtk3 window, I get segmentation fault: > > [BUG] pthread_mutex_unlock: Invalid argument (EINVAL) > ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14] > > ... > > [BUG] Segmentation fault at 0x00000000000030 > ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14] > > I’d appreciate any guidance in how to overcome these issues. > > Thanks in advance. > > Peter > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y <http://ad.doubleclick.net/ddm/clk/290420510;117567292;y> > _______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... <mailto:rub...@li...> > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en <https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en> > > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y_______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en |
From: Mario S. <ma...@ru...> - 2015-05-05 02:01:50
|
Hello Peter, The best thing that I can suggest, is to run a Simple Example, like so: ------------------------------------------------------------------ require 'gtk3' win = Gtk::Window.new win.signal_connect("destroy") do Gtk.main_quit end win.title = "Hello World" win.show_all Gtk.main ------------------------------------------------------------------ Then when the Program crashes with the segfault, copy everything that Ruby Spews out, the backtrace, ruby stack, all of it, and goto http://github.com/ruby-gnome2/ruby-gnome2 and file a new Bug with the group there. Also include, what version you are using, if you are using from a gem install, or from a git clone from github. And it may be of interest to try the latest development version from the Git Repository, to see if the issue occurs or not, and go from there. Ruby-Gnome2 is in the process of converting from pure C bindings, to a C Stub for things that Ruby can't handle, and the rest being binded through GObjectIntrospection, and the majority of the work is being done in this tree. hth, Mario Steele Ruby Developer C# Developer Java Developer On Mon, May 4, 2015 at 8:55 PM, Peter W A Wood <pet...@gm...> wrote: > I’m looking into using Ruby and gtk+3 on Raspberry Pi to see if it can be > used by children as young as 7 or 8. First, I need to become familiar with > Ruby/gtk3. I’m hoping to do that on my laptop which runs under OS X > Yosemite. > > I’ve installed X-Windows, gtk+3 and the gtk3 Ruby Gem. > > Whenever, I run a Ruby script using gtk3, I get this warning message: > > 2015-05-04 11:05:36.967 ruby[32956:4463982] *** WARNING: Method > userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It > should not be used in new applications. Use convertRectToBacking: instead. > > > The short sample scripts that I have then work as expected but whenever, I > close a gtk3 window, I get segmentation fault: > > [BUG] pthread_mutex_unlock: Invalid argument (EINVAL) > ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14] > > ... > > [BUG] Segmentation fault at 0x00000000000030 > ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14] > > I’d appreciate any guidance in how to overcome these issues. > > Thanks in advance. > > Peter > > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en > > |
From: Peter W A W. <pet...@gm...> - 2015-05-05 00:55:56
|
I’m looking into using Ruby and gtk+3 on Raspberry Pi to see if it can be used by children as young as 7 or 8. First, I need to become familiar with Ruby/gtk3. I’m hoping to do that on my laptop which runs under OS X Yosemite. I’ve installed X-Windows, gtk+3 and the gtk3 Ruby Gem. Whenever, I run a Ruby script using gtk3, I get this warning message: 2015-05-04 11:05:36.967 ruby[32956:4463982] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead. The short sample scripts that I have then work as expected but whenever, I close a gtk3 window, I get segmentation fault: [BUG] pthread_mutex_unlock: Invalid argument (EINVAL) ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14] ... [BUG] Segmentation fault at 0x00000000000030 ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14] I’d appreciate any guidance in how to overcome these issues. Thanks in advance. Peter |
From: Kouhei S. <ko...@co...> - 2015-02-07 05:28:08
|
Hi, In <CAG...@ma...> "[ruby-gnome2-devel-en] array arguments to boxed constructors" on Fri, 6 Feb 2015 12:31:04 +0000, jc...@gm... wrote: > I have a boxed type with a constructor declared like this: > > /** > * vips_array_int_new: > * @array: (array length=n): array of int > * @n: number of ints > * > * Allocate a new array of ints and copy @array into it. Free with > * vips_area_unref(). > * > * See also: #VipsArea. > * > * Returns: (transfer full): A new #VipsArrayInt. > */ > VipsArrayInt * > vips_array_int_new( const int *array, int n ) > {} > > Code here: > > https://github.com/jcupitt/libvips/blob/master/libvips/iofuncs/type.c#L649 > > Is it possible to create one of these things from Ruby? I'm getting a > NotImplementedError if I do the obvious thing: I've added a support of the type at master. Please try master! Thanks, -- kou |
From: <jc...@gm...> - 2015-02-06 12:31:51
|
Hello everyone, I have a boxed type with a constructor declared like this: /** * vips_array_int_new: * @array: (array length=n): array of int * @n: number of ints * * Allocate a new array of ints and copy @array into it. Free with * vips_area_unref(). * * See also: #VipsArea. * * Returns: (transfer full): A new #VipsArrayInt. */ VipsArrayInt * vips_array_int_new( const int *array, int n ) {} Code here: https://github.com/jcupitt/libvips/blob/master/libvips/iofuncs/type.c#L649 Is it possible to create one of these things from Ruby? I'm getting a NotImplementedError if I do the obvious thing: irb(main):015:0> Vips::ArrayInt.new [1,2,3] NotImplementedError: TODO: Ruby -> GIArgument(array)[gint32] from /home/john/packages/gems/gems/gobject-introspection-2.2.5/lib/gobject-introspection/loader.rb:278:in `invoke' from /home/john/packages/gems/gems/gobject-introspection-2.2.5/lib/gobject-introspection/loader.rb:278:in `block (2 levels) in load_constructor_infos' from /home/john/packages/gems/gems/gobject-introspection-2.2.5/lib/gobject-introspection/loader.rb:294:in `block in load_constructor_infos' from (irb):15:in `new' This is using git master. John |
From: Kouhei S. <ko...@co...> - 2015-01-31 13:49:13
|
Hi, In <CAG...@ma...> "Re: [ruby-gnome2-devel-en] ref and unref" on Sat, 31 Jan 2015 13:40:05 +0000, jc...@gm... wrote: >> I've fixed it at master. Could you try master again? > > It works!! I now see: Thanks for confirming it! -- kou |
From: <jc...@gm...> - 2015-01-31 13:40:53
|
On 31 January 2015 at 12:47, Kouhei Sutou <ko...@co...> wrote: > I've fixed it at master. Could you try master again? It works!! I now see: -------------------- $ ./example1.rb starting up: Vips::method_missing: leak_set, [true], Vips::init: [] Vips::Loader.initialize: Vips, [] Vips::Loader.pre_load: #<GObjectIntrospection::Repository:0x00000001d3fe18>, Vips Vips::Loader.call_init_function: #<GObjectIntrospection::Repository:0x00000001d3fe18>, Vips Vips::Loader.post_load: creating object: 1x1 uchar, 1 band, multiband, partial VipsImage (0x20a7010) 1 objects alive: 0) VipsImage (0x20a7010), count=1 VipsImage (image), image class 1x1 uchar, 1 band, multiband freeing object: shutting down: memory: high-water mark 0 bytes ------------------- Wonderful, thank you very much kou. John |
From: Kouhei S. <ko...@co...> - 2015-01-31 12:47:40
|
Hi, Thanks for the information! I've fixed it at master. Could you try master again? Thanks, -- kou In <CAG...@ma...> "Re: [ruby-gnome2-devel-en] ref and unref" on Fri, 30 Jan 2015 14:07:06 +0000, jc...@gm... wrote: > Ooop, excuse me, I think I found my problem. > > gobject-introspection seems to be reffing the object it gets back from > vips_image_new(), even though constructors should not do this (I > think). How can I stop gobject-introspection from making this extra > reference? > > If I run this code: > > x = Vips::Image.new > x.print_dump > > at the end of the C vips_image_new() function, the object has a > reference count of 1. But when x.print_dump runs, I see a count of 2. > When I then run: > > x = nil > GC.start > > the count drops to 1, but never to zero, so the object is not freed. > > I tried adding a (transfer full) annotation to vips_image_new(), but > it made no difference, gobject-introspection still made an extra > g_object_ref() during new. > > John > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en |
From: <jc...@gm...> - 2015-01-30 14:07:55
|
Ooop, excuse me, I think I found my problem. gobject-introspection seems to be reffing the object it gets back from vips_image_new(), even though constructors should not do this (I think). How can I stop gobject-introspection from making this extra reference? If I run this code: x = Vips::Image.new x.print_dump at the end of the C vips_image_new() function, the object has a reference count of 1. But when x.print_dump runs, I see a count of 2. When I then run: x = nil GC.start the count drops to 1, but never to zero, so the object is not freed. I tried adding a (transfer full) annotation to vips_image_new(), but it made no difference, gobject-introspection still made an extra g_object_ref() during new. John |
From: <jc...@gm...> - 2015-01-30 13:16:53
|
Hello again, sorry for the long delay, I was called off onto another project. On 11 January 2015 at 08:44, Kouhei Sutou <ko...@co...> wrote: >> It doesn't seem to work for me. If I run: >> >> 10000.times do >> Vips::Image.new >> end >> GC.start >> >> I still have 10,000 GObjects, each with one ref. > > I got the following: > > -- > Vips::const_missing: Image > Vips::init: [] > Vips::Loader.initialize: Vips, [] > Vips::Loader.pre_load: #<GObjectIntrospection::Repository:0x0000000286eaa0>, Vips > Vips::Loader.call_init_function: #<GObjectIntrospection::Repository:0x0000000286eaa0>, Vips > Vips::Loader.post_load: > 41 > 0 Thank you for trying this. That's counting instances of the Ruby classes, which I agree are being freed. But the underlying GObjects are not being unreffed. If you put a breakpoint on vips_object_finalize(), for example, it is never called. How can I get gobject-introspection to call g_object_unref() whan an object is removed by GC? > Did you use the latest gobject-introspection gem? I used > gobject-introspection 2.2.4 gem: Yes, I'm using 2.2.4. John |
From: hiroshi h. <cos...@gm...> - 2015-01-11 13:49:40
|
> > > + raise(error) if ret == 0 > > Where is the "error" variable definition? > Did you run the code? > i'm sorry. I've forgot to remove trial and error code.... > In <bdd...@je...> > "[ruby-gnome2-cvs] ruby-gnome2/ruby-gnome2@bdd4e1d [master] gtk3: > Implement Gtk::UIManager#add_ui" on Sun, 11 Jan 2015 15:25:39 +0900, > Hiroshi Hatake <nu...@co...> wrote: > > > Hiroshi Hatake 2015-01-11 15:25:39 +0900 (Sun, 11 Jan 2015) > > > > New Revision: bdd4e1de3dded99b9c465d7106f99b5ed5253fcc > > > https://github.com/ruby-gnome2/ruby-gnome2/commit/bdd4e1de3dded99b9c465d7106f99b5ed5253fcc > > > > Message: > > gtk3: Implement Gtk::UIManager#add_ui > > > > But, Gtk::UIManager#add_ui_raw method is not using now.... :< > > > > Added files: > > gtk3/lib/gtk3/ui-manager.rb > > Modified files: > > gtk3/lib/gtk3/loader.rb > > > > Modified: gtk3/lib/gtk3/loader.rb (+1 -0) > > =================================================================== > > --- gtk3/lib/gtk3/loader.rb 2015-01-11 15:00:09 +0900 (fbd5d24) > > +++ gtk3/lib/gtk3/loader.rb 2015-01-11 15:25:39 +0900 (f118a19) > > @@ -84,6 +84,7 @@ module Gtk > > require "gtk3/tree-selection" > > require "gtk3/tree-store" > > require "gtk3/tree-view-column" > > + require "gtk3/ui-manager" > > require "gtk3/window" > > > > require "gtk3/deprecated" > > > > Added: gtk3/lib/gtk3/ui-manager.rb (+33 -0) 100644 > > =================================================================== > > --- /dev/null > > +++ gtk3/lib/gtk3/ui-manager.rb 2015-01-11 15:25:39 +0900 (1328e52) > > @@ -0,0 +1,33 @@ > > +# Copyright (C) 2015 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 > > + > > +module Gtk > > + class UIManager > > + alias_method :add_ui_raw, :add_ui > > + def add_ui(buffer_or_filename=nil) > > + ret = 0 > > + if buffer_or_filename =~ /<ui>/ > > + ret = add_ui_from_string(buffer_or_filename, > > + buffer_or_filename.length) > > + else > > + ret = add_ui_from_file(buffer_or_filename) > > + end > > + raise(error) if ret == 0 > > + > > + ret > > + end > > + end > > +end > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en > |
From: Kouhei S. <ko...@co...> - 2015-01-11 08:44:21
|
Hi, In <CAG...@ma...> "Re: [ruby-gnome2-devel-en] ref and unref" on Thu, 8 Jan 2015 16:39:45 +0000, jc...@gm... wrote: > It doesn't seem to work for me. If I run: > > 10000.times do > Vips::Image.new > end > GC.start > > I still have 10,000 GObjects, each with one ref. Really? > My code is here: > > https://github.com/jcupitt/ruby-vips8/blob/master/try/try2.rb#L98 I run the code with the following diff: -- diff --git a/try/try2.rb b/try/try2.rb index 53c4272..0b214fa 100755 --- a/try/try2.rb +++ b/try/try2.rb @@ -97,6 +97,8 @@ end 10000.times do Vips::Image.new end +p(ObjectSpace.each_object(Vips::Image) {}) GC.start +p(ObjectSpace.each_object(Vips::Image) {}) -- I got the following: -- Vips::const_missing: Image Vips::init: [] Vips::Loader.initialize: Vips, [] Vips::Loader.pre_load: #<GObjectIntrospection::Repository:0x0000000286eaa0>, Vips Vips::Loader.call_init_function: #<GObjectIntrospection::Repository:0x0000000286eaa0>, Vips Vips::Loader.post_load: 41 0 -- Did you use the latest gobject-introspection gem? I used gobject-introspection 2.2.4 gem: -- % gem list gobject-introspection *** LOCAL GEMS *** gobject-introspection (2.2.4) -- Thanks, -- kou |
From: Kouhei S. <ko...@co...> - 2015-01-11 06:33:57
|
> + raise(error) if ret == 0 Where is the "error" variable definition? Did you run the code? In <bdd...@je...> "[ruby-gnome2-cvs] ruby-gnome2/ruby-gnome2@bdd4e1d [master] gtk3: Implement Gtk::UIManager#add_ui" on Sun, 11 Jan 2015 15:25:39 +0900, Hiroshi Hatake <nu...@co...> wrote: > Hiroshi Hatake 2015-01-11 15:25:39 +0900 (Sun, 11 Jan 2015) > > New Revision: bdd4e1de3dded99b9c465d7106f99b5ed5253fcc > https://github.com/ruby-gnome2/ruby-gnome2/commit/bdd4e1de3dded99b9c465d7106f99b5ed5253fcc > > Message: > gtk3: Implement Gtk::UIManager#add_ui > > But, Gtk::UIManager#add_ui_raw method is not using now.... :< > > Added files: > gtk3/lib/gtk3/ui-manager.rb > Modified files: > gtk3/lib/gtk3/loader.rb > > Modified: gtk3/lib/gtk3/loader.rb (+1 -0) > =================================================================== > --- gtk3/lib/gtk3/loader.rb 2015-01-11 15:00:09 +0900 (fbd5d24) > +++ gtk3/lib/gtk3/loader.rb 2015-01-11 15:25:39 +0900 (f118a19) > @@ -84,6 +84,7 @@ module Gtk > require "gtk3/tree-selection" > require "gtk3/tree-store" > require "gtk3/tree-view-column" > + require "gtk3/ui-manager" > require "gtk3/window" > > require "gtk3/deprecated" > > Added: gtk3/lib/gtk3/ui-manager.rb (+33 -0) 100644 > =================================================================== > --- /dev/null > +++ gtk3/lib/gtk3/ui-manager.rb 2015-01-11 15:25:39 +0900 (1328e52) > @@ -0,0 +1,33 @@ > +# Copyright (C) 2015 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 > + > +module Gtk > + class UIManager > + alias_method :add_ui_raw, :add_ui > + def add_ui(buffer_or_filename=nil) > + ret = 0 > + if buffer_or_filename =~ /<ui>/ > + ret = add_ui_from_string(buffer_or_filename, > + buffer_or_filename.length) > + else > + ret = add_ui_from_file(buffer_or_filename) > + end > + raise(error) if ret == 0 > + > + ret > + end > + end > +end |
From: Kouhei S. <ko...@co...> - 2015-01-11 02:31:38
|
Hi, In <54A...@gm...> "[ruby-gnome2-devel-en] Rakefile gem:install options" on Thu, 08 Jan 2015 19:22:37 +0100, Detlef Reichl <det...@gm...> wrote: > I think that the rake gem:install task is missing the -l option, so that > the local gem - that may be modified - gets installed. What do you think? Thanks for your report. I'm not sure "-l" option is needed or not but I've added it at mater. Thanks, -- kou |
From: Detlef R. <det...@gm...> - 2015-01-08 18:22:44
|
Hi, I think that the rake gem:install task is missing the -l option, so that the local gem - that may be modified - gets installed. What do you think? Cheers, detlef |