From: Stefan S. <ma...@ss...> - 2015-09-26 21:47:10
|
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 > > It is the first release announce of 3.x series. There seems to be one more minor problem: I had def run_schematics_open_dialog dialog = Gtk::FileChooserDialog.new(:title => 'Open Files', :parent => self, :action => Gtk::FileChooserAction::OPEN, :buttons => COB) [['Schematics', '*.sch'], ['All Files', '*']].each{|n, p| filter = Gtk::FileFilter.new filter.name = n filter.add_pattern(p) dialog.add_filter(filter) } dialog.select_multiple = true names = nil #dialog.run do |response| #names = dialog.filenames.dup if response == Gtk::ResponseType::ACCEPT #end if dialog.run == Gtk::ResponseType::ACCEPT puts dialog.filenames.class puts dialog.filenames puts "filename = #{dialog.filename}" #puts "filenames = #{dialog.filenames}" puts "uri = #{dialog.uri}" end dialog.destroy names end with the "dialog.run do |response|" construct, which I took from an older example, maybe still GTK2. Now it does simple nothing, so I can not open files. In your package I found the "if dialog.run ==" code example. But it seems that the important point is, that dialog.filenames for multiple files simple do not work yet. I get /home/stefan/.gem/ruby/2.2.0/gems/gobject-introspection-3.0.6/lib/gobject-introspection/loader.rb:551:in `invoke': TODO: GIArgument(GSList)[filename] -> Ruby So we can open only single files now. Not a problem for me, but maybe good to report. On question: When the function should return the filename, is then a dup necessary like names = dialog.filenames.dup Best regards, Stefan |
From: Kouhei S. <ko...@co...> - 2015-09-27 01:54:44
|
Hi, In <144...@ss...> "Re: [ruby-gnome2-devel-en] [ANN] Ruby-GNOME2 3.0.4" on Sat, 26 Sep 2015 23:38:23 +0200, Stefan Salewski <ma...@ss...> wrote: > There seems to be one more minor problem: > /home/stefan/.gem/ruby/2.2.0/gems/gobject-introspection-3.0.6/lib/gobject-introspection/loader.rb:551:in `invoke': > TODO: GIArgument(GSList)[filename] -> Ruby Thanks for your report. I've implemented the feature at master. > On question: When the function should return the filename, is then a dup necessary like > > names = dialog.filenames.dup You don't need to duplicate the return value. Thanks, -- kou |
From: Kouhei S. <ko...@co...> - 2015-09-27 01:42:32
|
Hi, In <144...@ss...> "Re: [ruby-gnome2-devel-en] [ANN] Ruby-GNOME2 3.0.4" on Sat, 26 Sep 2015 20:42:01 +0200, Stefan Salewski <ma...@ss...> wrote: > I am not absolutely sure, but may these 4 remaining warnings be caused > not by my application, but by your ruby-gnome2 bingings itself? > GLib-GObject-WARNING **:The property GtkWidget:style is deprecated and shouldn't be used anymore. It will be removed in a future version. It's caused by GC mark function in bindings. > GLib-GObject-WARNING **:The property GtkButton:use-stock is deprecated and shouldn't be used anymore. It will be removed in a future version. It's caused by your application. Please confirm whether you use :stock_id in Gtk::Button.new or not. > GLib-GObject-WARNING **:The property GtkSettings:gtk-button-images is deprecated and shouldn't be used anymore. It will be removed in a future version. It's caused by your application. Add the following code: button.always_show_image = true See also: * https://developer.gnome.org/gtk3/stable/GtkButton.html#gtk-button-set-always-show-image * https://developer.gnome.org/gtk3/stable/GtkSettings.html#GtkSettings--gtk-button-images > GLib-GObject-WARNING **:The property GtkImageMenuItem:image is deprecated and shouldn't be used anymore. It will be removed in a future version. It's caused by GC mark function in bindings. Thanks, -- kou |
From: Detlef R. <det...@gm...> - 2015-10-04 13:35:12
|
On 22.09.2015 08:55, Kouhei Sutou wrote: > > 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. Hi, image = Gtk::Image.new :stock => Gtk::Stock::CLOSE, :size => :small_toolbar does not work, because :small_toolbar is an unknown enum to Gtk::IconSize you have to call it with image = Gtk::Image.new :stock => Gtk::Stock::CLOSE, :size => :"small-toolbar" what is valid ruby, but ugly :-/ Note the dash as opposed to the underscore. For :large_toolbar it is the same. The other enums from https://developer.gnome.org/gtk3/stable/gtk3-Themeable-Stock-Images.html#GTK-ICON-SIZE-MENU:CAPS work like expected. Cheers, detlef |
From: Kouhei S. <ko...@co...> - 2015-10-04 13:46:36
|
Hi, In <561...@gm...> "Re: [ruby-gnome2-devel-en] [ANN] Ruby-GNOME2 3.0.4" on Sun, 04 Oct 2015 15:22:08 +0200, Detlef Reichl <det...@gm...> wrote: > image = Gtk::Image.new :stock => Gtk::Stock::CLOSE, :size => :small_toolbar > > does not work, because :small_toolbar is an unknown enum to Gtk::IconSize Thanks for your report. I've fixed it at master. It's not included in 3.0.6... Thanks, -- kou |
From: Detlef R. <det...@gm...> - 2015-10-04 17:20:54
|
On 04.10.2015 15:46, Kouhei Sutou wrote: Hi, > Hi, > > In <561...@gm...> > "Re: [ruby-gnome2-devel-en] [ANN] Ruby-GNOME2 3.0.4" on Sun, 04 Oct 2015 15:22:08 +0200, > Detlef Reichl <det...@gm...> wrote: > >> image = Gtk::Image.new :stock => Gtk::Stock::CLOSE, :size => :small_toolbar >> >> does not work, because :small_toolbar is an unknown enum to Gtk::IconSize > > Thanks for your report. I've fixed it at master. > > It's not included in 3.0.6... > Thank you for fixing it that fast. And here is the next one: Gtk::TreeView#insert_column only accepts two arguments, but with the old implementation it also accepted additional attributes, which where mapped to gtk_tree_view_insert_column_with_attributes, like renderer = Gtk::CellRendererPixbuf.new view.insert_column -1, 'ColName', renderer, :pixbuf => 0 Cheers, detlef > > Thanks, > -- > kou |
From: Kouhei S. <ko...@co...> - 2015-10-06 14:03:08
|
Hi, In <561...@gm...> "Re: [ruby-gnome2-devel-en] [ANN] Ruby-GNOME2 3.0.4" on Sun, 04 Oct 2015 19:20:46 +0200, Detlef Reichl <det...@gm...> wrote: > Gtk::TreeView#insert_column only accepts two arguments, but with the old > implementation it also accepted additional attributes, which where > mapped to gtk_tree_view_insert_column_with_attributes, like > > renderer = Gtk::CellRendererPixbuf.new > view.insert_column -1, 'ColName', renderer, :pixbuf => 0 Thanks for your report. I've add the API. Thanks, -- kou |
From: Detlef R. <det...@gm...> - 2015-10-05 17:48:59
|
On 22.09.2015 08:55, Kouhei Sutou wrote: Hi, > 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. the Ruby-GLib package uses the ruby_eval_string_from_file function, which is not public API. In the debian packages of libruby2.1 and 2.2 it is not included. Cheers, detlef |
From: Mamoru T. <mt...@fe...> - 2015-10-05 22:21:43
|
Detlef Reichl wrote on 10/06/2015 02:48 AM: > On 22.09.2015 08:55, Kouhei Sutou wrote: > > Hi, > >> 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. > > the Ruby-GLib package uses the ruby_eval_string_from_file function, > which is not public API. In the debian packages of libruby2.1 and 2.2 it > is not included. > > Cheers, detlef > Also confirmed on Fedora 23, using ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux] $ ruby run-test.rb 2015-10-06 06:58:51 +0900 running test for /home/tasaka1/rpmbuild/TEMP/ruby-gnome2/git/ruby-gnome2/pango -------------------------------------------------------------------------------- /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:128:in `require': /home/tasaka1/rpmbuild/TEMP/ruby-gnome2/git/ruby-gnome2/glib2/ext/glib2/glib2.so: undefined symbol: ruby_eval_string_from_file - /home/tasaka1/rpmbuild/TEMP/ruby-gnome2/git/ruby-gnome2/glib2/ext/glib2/glib2.so (LoadError) from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:128:in `rescue in require' from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:39:in `require' from /home/tasaka1/rpmbuild/TEMP/ruby-gnome2/git/ruby-gnome2/glib2/lib/glib2.rb:115:in `rescue in <top (required)>' from /home/tasaka1/rpmbuild/TEMP/ruby-gnome2/git/ruby-gnome2/glib2/lib/glib2.rb:111:in `<top (required)>' from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require' from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require' from /home/tasaka1/rpmbuild/TEMP/ruby-gnome2/git/ruby-gnome2/pango/lib/pango.rb:9:in `<top (required)>' from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require' from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require' from test/run-test.rb:26:in `<main>' This issue does not appear in 3.0.5, but does appear in 3.0.6, perhaps the relevant commit is https://github.com/ruby-gnome2/ruby-gnome2/commit/dba40aaa90f9835a7e3dad0dfdf9ef31e6f0b710 Regards, Mamoru |
From: Kouhei S. <ko...@co...> - 2015-10-06 14:04:12
|
Hi, In <561...@gm...> "Re: [ruby-gnome2-devel-en] [ANN] Ruby-GNOME2 3.0.4" on Mon, 05 Oct 2015 19:48:48 +0200, Detlef Reichl <det...@gm...> wrote: > the Ruby-GLib package uses the ruby_eval_string_from_file function, > which is not public API. In the debian packages of libruby2.1 and 2.2 it > is not included. Oh... I've fixed it. I'll release a new version... Thanks, -- kou |
From: Detlef R. <det...@gm...> - 2015-10-09 03:33:16
|
Hi, On 22.09.2015 08:55, Kouhei Sutou wrote: > 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. > Clipboard functionality is not fully supported. require 'gtk3' window = Gtk::Window.new cb = window.get_clipboard Gdk::Selection::CLIPBOARD if cb cb.request_text do |clip, data| p 'crash' end end cheers, detlef |
From: Kouhei S. <ko...@co...> - 2015-10-09 14:19:35
|
Hi, In <561...@gm...> "Re: [ruby-gnome2-devel-en] [ANN] Ruby-GNOME2 3.0.4" on Fri, 09 Oct 2015 05:20:13 +0200, Detlef Reichl <det...@gm...> wrote: > Clipboard functionality is not fully supported. Thanks for your report. I've implemented it at master. Thanks, -- kou |