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: <Ra...@la...> - 2016-01-02 00:00:52
|
Are you trying to build from git master? I've done this several times recently on new Ubuntu installs and have not seen this error. I did see a problem with the --user-install flag, so I commented it out. This is not your problem though. Did you run the commands listed in the readme? % git clone https://github.com/ruby-gnome2/ruby-gnome2.git % cd ruby-gnome2 % gem install rake rake-compiler mechanize pkg-config cairo % rake gem:build % rake gem:install Jon From: Detlef Reichl <det...@gm...> To: rub...@li... Date: 01/01/2016 01:16 PM Subject: [ruby-gnome2-devel-en] rake gem:build fails Hi, on a fresh check out of ruby-gnome "rake gem:build" fails with the following error message: det@datengrab:~/Schreibtisch/soft/ruby-gnome2$ rake --trace gem:build ** Invoke gem:build (first_time) ** Execute gem:build /usr/bin/ruby2.2 -S rake gem /usr/bin/ruby2.2 -S rake gem /usr/bin/ruby2.2 -S rake gem /usr/bin/ruby2.2 -S rake gem /usr/bin/ruby2.2 -S rake gem /usr/bin/ruby2.2 -S rake gem /usr/bin/ruby2.2 -S rake gem /usr/bin/ruby2.2 -S rake gem /usr/bin/ruby2.2 -S rake gem /usr/bin/ruby2.2 -S rake gem cd pkg/gtk3-3.0.7 WARNING: See http://guides.rubygems.org/specification-reference/ for help rake aborted! Gem::InvalidSpecificationException: ["sample/gtk-demo/search_entry2.rb"] are not files Tasks: TOP => gem => pkg/gtk3-3.0.7.gem (See full trace by running task with --trace) rake aborted! Command failed with status (1): [/usr/bin/ruby2.2 -S rake gem...] /usr/lib/ruby/vendor_ruby/rake/file_utils.rb:66:in `block in create_shell_runner' /usr/lib/ruby/vendor_ruby/rake/file_utils.rb:57:in `call' /usr/lib/ruby/vendor_ruby/rake/file_utils.rb:57:in `sh' /usr/lib/ruby/vendor_ruby/rake/file_utils_ext.rb:37:in `sh' /usr/lib/ruby/vendor_ruby/rake/file_utils.rb:94:in `ruby' /usr/lib/ruby/vendor_ruby/rake/file_utils_ext.rb:37:in `ruby' /home/det/Schreibtisch/soft/ruby-gnome2/Rakefile:355:in `block (4 levels) in <top (required)>' /home/det/Schreibtisch/soft/ruby-gnome2/Rakefile:354:in `chdir' /home/det/Schreibtisch/soft/ruby-gnome2/Rakefile:354:in `block (3 levels) in <top (required)>' /home/det/Schreibtisch/soft/ruby-gnome2/Rakefile:353:in `each' /home/det/Schreibtisch/soft/ruby-gnome2/Rakefile:353:in `block (2 levels) in <top (required)>' /usr/lib/ruby/vendor_ruby/rake/task.rb:240:in `call' /usr/lib/ruby/vendor_ruby/rake/task.rb:240:in `block in execute' /usr/lib/ruby/vendor_ruby/rake/task.rb:235:in `each' /usr/lib/ruby/vendor_ruby/rake/task.rb:235:in `execute' /usr/lib/ruby/vendor_ruby/rake/task.rb:179:in `block in invoke_with_call_chain' /usr/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize' /usr/lib/ruby/vendor_ruby/rake/task.rb:172:in `invoke_with_call_chain' /usr/lib/ruby/vendor_ruby/rake/task.rb:165:in `invoke' /usr/lib/ruby/vendor_ruby/rake/application.rb:150:in `invoke_task' /usr/lib/ruby/vendor_ruby/rake/application.rb:106:in `block (2 levels) in top_level' /usr/lib/ruby/vendor_ruby/rake/application.rb:106:in `each' /usr/lib/ruby/vendor_ruby/rake/application.rb:106:in `block in top_level' /usr/lib/ruby/vendor_ruby/rake/application.rb:115:in `run_with_threads' /usr/lib/ruby/vendor_ruby/rake/application.rb:100:in `top_level' /usr/lib/ruby/vendor_ruby/rake/application.rb:78:in `block in run' /usr/lib/ruby/vendor_ruby/rake/application.rb:176:in `standard_exception_handling' /usr/lib/ruby/vendor_ruby/rake/application.rb:75:in `run' /usr/bin/rake:27:in `<main>' Tasks: TOP => gem:build $ uname -a Linux datengrab 4.3.0-1-amd64 #1 SMP Debian 4.3.3-2 (2015-12-17) x86_64 GNU/Linux $ ruby --version ruby 2.2.3p173 (2015-08-18) [x86_64-linux-gnu] Cheers detlef ------------------------------------------------------------------------------ _______________________________________________ ruby-gnome2-devel-en mailing list rub...@li... https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en |
From: Detlef R. <det...@gm...> - 2016-01-01 18:16:03
|
Hi, on a fresh check out of ruby-gnome "rake gem:build" fails with the following error message: det@datengrab:~/Schreibtisch/soft/ruby-gnome2$ rake --trace gem:build ** Invoke gem:build (first_time) ** Execute gem:build /usr/bin/ruby2.2 -S rake gem /usr/bin/ruby2.2 -S rake gem /usr/bin/ruby2.2 -S rake gem /usr/bin/ruby2.2 -S rake gem /usr/bin/ruby2.2 -S rake gem /usr/bin/ruby2.2 -S rake gem /usr/bin/ruby2.2 -S rake gem /usr/bin/ruby2.2 -S rake gem /usr/bin/ruby2.2 -S rake gem /usr/bin/ruby2.2 -S rake gem cd pkg/gtk3-3.0.7 WARNING: See http://guides.rubygems.org/specification-reference/ for help rake aborted! Gem::InvalidSpecificationException: ["sample/gtk-demo/search_entry2.rb"] are not files Tasks: TOP => gem => pkg/gtk3-3.0.7.gem (See full trace by running task with --trace) rake aborted! Command failed with status (1): [/usr/bin/ruby2.2 -S rake gem...] /usr/lib/ruby/vendor_ruby/rake/file_utils.rb:66:in `block in create_shell_runner' /usr/lib/ruby/vendor_ruby/rake/file_utils.rb:57:in `call' /usr/lib/ruby/vendor_ruby/rake/file_utils.rb:57:in `sh' /usr/lib/ruby/vendor_ruby/rake/file_utils_ext.rb:37:in `sh' /usr/lib/ruby/vendor_ruby/rake/file_utils.rb:94:in `ruby' /usr/lib/ruby/vendor_ruby/rake/file_utils_ext.rb:37:in `ruby' /home/det/Schreibtisch/soft/ruby-gnome2/Rakefile:355:in `block (4 levels) in <top (required)>' /home/det/Schreibtisch/soft/ruby-gnome2/Rakefile:354:in `chdir' /home/det/Schreibtisch/soft/ruby-gnome2/Rakefile:354:in `block (3 levels) in <top (required)>' /home/det/Schreibtisch/soft/ruby-gnome2/Rakefile:353:in `each' /home/det/Schreibtisch/soft/ruby-gnome2/Rakefile:353:in `block (2 levels) in <top (required)>' /usr/lib/ruby/vendor_ruby/rake/task.rb:240:in `call' /usr/lib/ruby/vendor_ruby/rake/task.rb:240:in `block in execute' /usr/lib/ruby/vendor_ruby/rake/task.rb:235:in `each' /usr/lib/ruby/vendor_ruby/rake/task.rb:235:in `execute' /usr/lib/ruby/vendor_ruby/rake/task.rb:179:in `block in invoke_with_call_chain' /usr/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize' /usr/lib/ruby/vendor_ruby/rake/task.rb:172:in `invoke_with_call_chain' /usr/lib/ruby/vendor_ruby/rake/task.rb:165:in `invoke' /usr/lib/ruby/vendor_ruby/rake/application.rb:150:in `invoke_task' /usr/lib/ruby/vendor_ruby/rake/application.rb:106:in `block (2 levels) in top_level' /usr/lib/ruby/vendor_ruby/rake/application.rb:106:in `each' /usr/lib/ruby/vendor_ruby/rake/application.rb:106:in `block in top_level' /usr/lib/ruby/vendor_ruby/rake/application.rb:115:in `run_with_threads' /usr/lib/ruby/vendor_ruby/rake/application.rb:100:in `top_level' /usr/lib/ruby/vendor_ruby/rake/application.rb:78:in `block in run' /usr/lib/ruby/vendor_ruby/rake/application.rb:176:in `standard_exception_handling' /usr/lib/ruby/vendor_ruby/rake/application.rb:75:in `run' /usr/bin/rake:27:in `<main>' Tasks: TOP => gem:build $ uname -a Linux datengrab 4.3.0-1-amd64 #1 SMP Debian 4.3.3-2 (2015-12-17) x86_64 GNU/Linux $ ruby --version ruby 2.2.3p173 (2015-08-18) [x86_64-linux-gnu] Cheers detlef |
From: cedlemo <ce...@gm...> - 2015-12-08 11:38:19
|
Hi detlef, I tried to use Gtk::TreeStore#insert_with_values but without success. You should create an issue here https://github.com/ruby-gnome2/ruby-gnome2/issues I don't know how kou (Kouhei Sutou) would want to implement it : using C code with gtk_tree_store_insert_with_valuesv (https://developer.gnome.org/gtk3/unstable/GtkTreeStore.html#gtk-tree-store-insert-with-valuesv) or using ruby code with the Gtk::TreeStore#insert Regards. cedlemo On 07/12/2015 18:08, Detlef Reichl wrote: > Hi, > > with the old API it was possible to use > > Gtk::TreeStore#inserte parent, position, values > > where the values of the cells are given as an array or hash as optional > last parameter. With the gi-bindings it is gone, but it was very handy. > > Cheers, detlef > > ------------------------------------------------------------------------------ > Go from Idea to Many App Stores Faster with Intel(R) XDK > Give your users amazing mobile app experiences with Intel(R) XDK. > Use one codebase in this all-in-one HTML5 development environment. > Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. > http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 > _______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en |
From: Detlef R. <det...@gm...> - 2015-12-07 17:21:29
|
Hi, with the old API it was possible to use Gtk::TreeStore#inserte parent, position, values where the values of the cells are given as an array or hash as optional last parameter. With the gi-bindings it is gone, but it was very handy. Cheers, detlef |
From: cedlemo <ce...@gm...> - 2015-12-05 08:41:47
|
Jon, it seems that Kou validated your work and merged your pull request so that should be ok. Thanks for your contribution cedlemo On 05/12/2015 04:54, Ra...@la... wrote: > Hi Cedlemo, > > Thanks again for your help. I believe I was able to add this support > correctly, matching the existing coding style. I have created a pull > request with my changes. > > I was not sure how to create a test case for this as I'm not sure how > to test this without opening a window. If this is a deal breaker let > me know and I will try my best to come up with something. > > For what its worth, I was able to verify that it works the same as the > Gtk2 version as my code is able to run unmodified. It is now possible > to prevent the selection in a Gtk TreeView in the case of unsaved > changes, etc. > > Jon > > > Ra...@la... wrote on 12/03/2015 09:36:18 AM: > > > From: Ra...@la... > > To: rub...@li... > > Date: 12/03/2015 09:36 AM > > Subject: Re: [ruby-gnome2-devel-en] GTK3 TreeView > set_select_function support? > > > > Hi Cedlemo, > > > > Thank you! I believe this is the clue I needed to move forward. I > > will try adding the support myself and make a pull request if I'm > > successful. > > > > Jon > > > > cedlemo <ce...@gm...> wrote on 12/03/2015 04:10:11 AM: > > > > > From: cedlemo <ce...@gm...> > > > To: rub...@li... > > > Date: 12/03/2015 04:10 AM > > > Subject: Re: [ruby-gnome2-devel-en] GTK3 TreeView > > set_select_function support? > > > > > > Hi jon, > > > > > > First of all the maintainer of the projet (kouhei Sutou) won't be > able > > > to help you right know because he is busy preparing a talk for the > > > RubyKaigi event > > > in japan. Nonetheless you should open an issue for this here > > > https://github.com/ruby-gnome2/ruby-gnome2/issuesand I am sure he > will > > > help you after that. > > > > > > Furthermore, could you provide a minimum of code that reproduce > the error. > > > > > > >Have I done something wrong > > > no > > > > > > >or is Gtk3's #set_select_function really not implemented yet? > > > I think that that it is the problem > > > > > > >If not, is there something I can do to help resolve this? > > > Try to implement it maybe. > > > > > > Look at this issue : > > > https://github.com/ruby-gnome2/ruby-gnome2/issues/596 > > > and the resulting commit : > > > https://github.com/ruby-gnome2/ruby-gnome2/commit/ > > > c77eea299eb97e789b2e5e04ffe18c3cd1e2b8e3 > > > > > > My guess is that you will have to deal with the C part of the gtk3 > module > > > > > > > > > Regards > > > > > > Cedlemo > > > > > > On 02/12/2015 15:59, Ra...@la... wrote: > > > > The code ... > > > > > > > > @class_tree.selection.set_select_function do |selection, > > > > class_tree_model, path, currently_selected| > > > > @controller.on_class_selected(selection, class_tree_model, path, > > > > currently_selected) > > > > end > > > > > > > > ... produces this error ... > > > > > > > > .rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/gobject- > > > introspection/loader.rb:551:in > > > > `invoke': TODO: <TreeSelectionFunc>(func) callback is not supported > > > > yet. (NotImplementedError) > > > > > > > > I'm running off git master and am migrating a project from gtk2 to > > > > gtk3. Have I done something wrong or is Gtk3's > #set_select_function > > > > really not implemented yet? If not, is there something I can do to > > > > help resolve this? "gobject-introspection/loader.rb:551" didn't > lead > > > > me to the code responsible for this and searching the code didn't > > > > provide enough of a clue. > > > > > > > > Jon > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > Go from Idea to Many App Stores Faster with Intel(R) XDK > > > > Give your users amazing mobile app experiences with Intel(R) XDK. > > > > Use one codebase in this all-in-one HTML5 development environment. > > > > Design, debug & build mobile apps & 2D/3D high-impact games for > > > multiple OSs. > > > > http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 > > > > > > > > > > > > _______________________________________________ > > > > ruby-gnome2-devel-en mailing list > > > > rub...@li... > > > > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Go from Idea to Many App Stores Faster with Intel(R) XDK > > > Give your users amazing mobile app experiences with Intel(R) XDK. > > > Use one codebase in this all-in-one HTML5 development environment. > > > Design, debug & build mobile apps & 2D/3D high-impact games for > > multiple OSs. > > > http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 > > > _______________________________________________ > > > ruby-gnome2-devel-en mailing list > > > rub...@li... > > > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en > > > ------------------------------------------------------------------------------ > > Go from Idea to Many App Stores Faster with Intel(R) XDK > > Give your users amazing mobile app experiences with Intel(R) XDK. > > Use one codebase in this all-in-one HTML5 development environment. > > Design, debug & build mobile apps & 2D/3D high-impact games for > multiple OSs. > > http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 > > _______________________________________________ > > ruby-gnome2-devel-en mailing list > > rub...@li... > > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en > > > ------------------------------------------------------------------------------ > Go from Idea to Many App Stores Faster with Intel(R) XDK > Give your users amazing mobile app experiences with Intel(R) XDK. > Use one codebase in this all-in-one HTML5 development environment. > Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. > http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 > > > _______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en |
From: <Ra...@la...> - 2015-12-05 03:54:24
|
Hi Cedlemo, Thanks again for your help. I believe I was able to add this support correctly, matching the existing coding style. I have created a pull request with my changes. I was not sure how to create a test case for this as I'm not sure how to test this without opening a window. If this is a deal breaker let me know and I will try my best to come up with something. For what its worth, I was able to verify that it works the same as the Gtk2 version as my code is able to run unmodified. It is now possible to prevent the selection in a Gtk TreeView in the case of unsaved changes, etc. Jon Ra...@la... wrote on 12/03/2015 09:36:18 AM: > From: Ra...@la... > To: rub...@li... > Date: 12/03/2015 09:36 AM > Subject: Re: [ruby-gnome2-devel-en] GTK3 TreeView set_select_function support? > > Hi Cedlemo, > > Thank you! I believe this is the clue I needed to move forward. I > will try adding the support myself and make a pull request if I'm > successful. > > Jon > > cedlemo <ce...@gm...> wrote on 12/03/2015 04:10:11 AM: > > > From: cedlemo <ce...@gm...> > > To: rub...@li... > > Date: 12/03/2015 04:10 AM > > Subject: Re: [ruby-gnome2-devel-en] GTK3 TreeView > set_select_function support? > > > > Hi jon, > > > > First of all the maintainer of the projet (kouhei Sutou) won't be able > > to help you right know because he is busy preparing a talk for the > > RubyKaigi event > > in japan. Nonetheless you should open an issue for this here > > https://github.com/ruby-gnome2/ruby-gnome2/issues and I am sure he will > > help you after that. > > > > Furthermore, could you provide a minimum of code that reproduce the error. > > > > >Have I done something wrong > > no > > > > >or is Gtk3's #set_select_function really not implemented yet? > > I think that that it is the problem > > > > >If not, is there something I can do to help resolve this? > > Try to implement it maybe. > > > > Look at this issue : > > https://github.com/ruby-gnome2/ruby-gnome2/issues/596 > > and the resulting commit : > > https://github.com/ruby-gnome2/ruby-gnome2/commit/ > > c77eea299eb97e789b2e5e04ffe18c3cd1e2b8e3 > > > > My guess is that you will have to deal with the C part of the gtk3 module > > > > > > Regards > > > > Cedlemo > > > > On 02/12/2015 15:59, Ra...@la... wrote: > > > The code ... > > > > > > @class_tree.selection.set_select_function do |selection, > > > class_tree_model, path, currently_selected| > > > @controller.on_class_selected(selection, class_tree_model, path, > > > currently_selected) > > > end > > > > > > ... produces this error ... > > > > > > .rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/gobject- > > introspection/loader.rb:551:in > > > `invoke': TODO: <TreeSelectionFunc>(func) callback is not supported > > > yet. (NotImplementedError) > > > > > > I'm running off git master and am migrating a project from gtk2 to > > > gtk3. Have I done something wrong or is Gtk3's #set_select_function > > > really not implemented yet? If not, is there something I can do to > > > help resolve this? "gobject-introspection/loader.rb:551" didn't lead > > > me to the code responsible for this and searching the code didn't > > > provide enough of a clue. > > > > > > Jon > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Go from Idea to Many App Stores Faster with Intel(R) XDK > > > Give your users amazing mobile app experiences with Intel(R) XDK. > > > Use one codebase in this all-in-one HTML5 development environment. > > > Design, debug & build mobile apps & 2D/3D high-impact games for > > multiple OSs. > > > http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 > > > > > > > > > _______________________________________________ > > > ruby-gnome2-devel-en mailing list > > > rub...@li... > > > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en > > > > > > > ------------------------------------------------------------------------------ > > Go from Idea to Many App Stores Faster with Intel(R) XDK > > Give your users amazing mobile app experiences with Intel(R) XDK. > > Use one codebase in this all-in-one HTML5 development environment. > > Design, debug & build mobile apps & 2D/3D high-impact games for > multiple OSs. > > http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 > > _______________________________________________ > > ruby-gnome2-devel-en mailing list > > rub...@li... > > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en > ------------------------------------------------------------------------------ > Go from Idea to Many App Stores Faster with Intel(R) XDK > Give your users amazing mobile app experiences with Intel(R) XDK. > Use one codebase in this all-in-one HTML5 development environment. > Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. > http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 > _______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en |
From: <Ra...@la...> - 2015-12-03 14:36:31
|
Hi Cedlemo, Thank you! I believe this is the clue I needed to move forward. I will try adding the support myself and make a pull request if I'm successful. Jon cedlemo <ce...@gm...> wrote on 12/03/2015 04:10:11 AM: > From: cedlemo <ce...@gm...> > To: rub...@li... > Date: 12/03/2015 04:10 AM > Subject: Re: [ruby-gnome2-devel-en] GTK3 TreeView set_select_function support? > > Hi jon, > > First of all the maintainer of the projet (kouhei Sutou) won't be able > to help you right know because he is busy preparing a talk for the > RubyKaigi event > in japan. Nonetheless you should open an issue for this here > https://github.com/ruby-gnome2/ruby-gnome2/issues and I am sure he will > help you after that. > > Furthermore, could you provide a minimum of code that reproduce the error. > > >Have I done something wrong > no > > >or is Gtk3's #set_select_function really not implemented yet? > I think that that it is the problem > > >If not, is there something I can do to help resolve this? > Try to implement it maybe. > > Look at this issue : > https://github.com/ruby-gnome2/ruby-gnome2/issues/596 > and the resulting commit : > https://github.com/ruby-gnome2/ruby-gnome2/commit/ > c77eea299eb97e789b2e5e04ffe18c3cd1e2b8e3 > > My guess is that you will have to deal with the C part of the gtk3 module > > > Regards > > Cedlemo > > On 02/12/2015 15:59, Ra...@la... wrote: > > The code ... > > > > @class_tree.selection.set_select_function do |selection, > > class_tree_model, path, currently_selected| > > @controller.on_class_selected(selection, class_tree_model, path, > > currently_selected) > > end > > > > ... produces this error ... > > > > .rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/gobject- > introspection/loader.rb:551:in > > `invoke': TODO: <TreeSelectionFunc>(func) callback is not supported > > yet. (NotImplementedError) > > > > I'm running off git master and am migrating a project from gtk2 to > > gtk3. Have I done something wrong or is Gtk3's #set_select_function > > really not implemented yet? If not, is there something I can do to > > help resolve this? "gobject-introspection/loader.rb:551" didn't lead > > me to the code responsible for this and searching the code didn't > > provide enough of a clue. > > > > Jon > > > > > > > ------------------------------------------------------------------------------ > > Go from Idea to Many App Stores Faster with Intel(R) XDK > > Give your users amazing mobile app experiences with Intel(R) XDK. > > Use one codebase in this all-in-one HTML5 development environment. > > Design, debug & build mobile apps & 2D/3D high-impact games for > multiple OSs. > > http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 > > > > > > _______________________________________________ > > ruby-gnome2-devel-en mailing list > > rub...@li... > > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en > > > ------------------------------------------------------------------------------ > Go from Idea to Many App Stores Faster with Intel(R) XDK > Give your users amazing mobile app experiences with Intel(R) XDK. > Use one codebase in this all-in-one HTML5 development environment. > Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. > http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 > _______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en |
From: cedlemo <ce...@gm...> - 2015-12-03 09:10:02
|
Hi jon, First of all the maintainer of the projet (kouhei Sutou) won't be able to help you right know because he is busy preparing a talk for the RubyKaigi event in japan. Nonetheless you should open an issue for this here https://github.com/ruby-gnome2/ruby-gnome2/issues and I am sure he will help you after that. Furthermore, could you provide a minimum of code that reproduce the error. >Have I done something wrong no >or is Gtk3's #set_select_function really not implemented yet? I think that that it is the problem >If not, is there something I can do to help resolve this? Try to implement it maybe. Look at this issue : https://github.com/ruby-gnome2/ruby-gnome2/issues/596 and the resulting commit : https://github.com/ruby-gnome2/ruby-gnome2/commit/c77eea299eb97e789b2e5e04ffe18c3cd1e2b8e3 My guess is that you will have to deal with the C part of the gtk3 module Regards Cedlemo On 02/12/2015 15:59, Ra...@la... wrote: > The code ... > > @class_tree.selection.set_select_function do |selection, > class_tree_model, path, currently_selected| > @controller.on_class_selected(selection, class_tree_model, path, > currently_selected) > end > > ... produces this error ... > > .rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/gobject-introspection/loader.rb:551:in > `invoke': TODO: <TreeSelectionFunc>(func) callback is not supported > yet. (NotImplementedError) > > I'm running off git master and am migrating a project from gtk2 to > gtk3. Have I done something wrong or is Gtk3's #set_select_function > really not implemented yet? If not, is there something I can do to > help resolve this? "gobject-introspection/loader.rb:551" didn't lead > me to the code responsible for this and searching the code didn't > provide enough of a clue. > > Jon > > > ------------------------------------------------------------------------------ > Go from Idea to Many App Stores Faster with Intel(R) XDK > Give your users amazing mobile app experiences with Intel(R) XDK. > Use one codebase in this all-in-one HTML5 development environment. > Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs. > http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 > > > _______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en |
From: <Ra...@la...> - 2015-12-02 15:14:33
|
The code ... @class_tree.selection.set_select_function do |selection, class_tree_model, path, currently_selected| @controller.on_class_selected(selection, class_tree_model, path, currently_selected) end ... produces this error ... .rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/gobject-introspection/loader.rb:551:in `invoke': TODO: <TreeSelectionFunc>(func) callback is not supported yet. (NotImplementedError) I'm running off git master and am migrating a project from gtk2 to gtk3. Have I done something wrong or is Gtk3's #set_select_function really not implemented yet? If not, is there something I can do to help resolve this? "gobject-introspection/loader.rb:551" didn't lead me to the code responsible for this and searching the code didn't provide enough of a clue. Jon |
From: cedlemo <ce...@gm...> - 2015-11-03 15:38:55
|
I have looked at /usr/share/gir-1.0/Gnm-1.12.gir and it seems that there are some dependencies that are not already done: Goffice Gsf On 03/11/2015 14:19, Michael Uplawski wrote: > Hi again, > > With the example below, I get a name error, having replaced Vte against > Gnm or Gnumeric.: > “in `init': uninitialized constant Module::Loader (NameError)” > > If I use GObjectIntrospection::Loader.new(self), the error reads. > ----------------- > /var/lib/gems/2.1.0/gems/gobject-introspection-3.0.7/lib/gobject-introspection/loader.rb:167:in > `const_set': wrong constant name 3D_NAME (NameError) > from > /var/lib/gems/2.1.0/gems/gobject-introspection-3.0.7/lib/gobject-introspection/loader.rb:167:in > `load_enum_value' > (...) > ---------------- > > On Tue, Nov 03, 2015 at 12:05:44PM +0100, cedlemo wrote: >> I think that the example I gave you is more simple and better to start with: >> >> https://github.com/ruby-gnome2/ruby-gnome2/blob/master/vte3/lib/vte3.rb >> >> Just change the Vte name with Gnumeric: >> >> require "gobject-introspection" >> require "gtk3" >> >> base_dir = Pathname.new(__FILE__).dirname.dirname.expand_path >> vendor_dir = base_dir + "vendor" + "local" >> vendor_bin_dir = vendor_dir + "bin" >> GLib.prepend_dll_path(vendor_bin_dir) >> vendor_girepository_dir = vendor_dir + "lib" + "girepository-1.0" >> GObjectIntrospection.prepend_typelib_path(vendor_girepository_dir) >> >> # You don't nedd this >> #require "vte3/loader" >> >> module Vte >> LOG_DOMAIN = "Vte" >> GLib::Log.set_log_domain(LOG_DOMAIN) >> >> class Error < StandardError >> end >> >> class << self >> def const_missing(name) >> init >> if const_defined?(name) >> const_get(name) >> else >> super >> end >> end >> >> def init >> class << self >> remove_method(:init) >> remove_method(:const_missing) >> end >> Gtk.init if Gtk.respond_to?(:init) >> loader = Loader.new(self) >> loader.load("Vte") >> end >> end >> end >> >> >> This is the most basic example. >> >> Regards. >> >> On 03/11/2015 11:10, Michael Uplawski wrote: >>> Howdy. >>> >>> I have been a bit worried to put my question on the list, but your >>> responses keep me interested in GObject-Introspection. >>> >>> On Tue, Nov 03, 2015 at 09:33:54AM +0000, jc...@gm... wrote: >>> >>>> Hi, like cedlemo I'm not much of an expert, but I have made a binding >>>> for my own gobject-based library here: >>>> >>>> https://github.com/jcupitt/ruby-vips8 >>>> >>>> I used the binding for gst as a model, it's pretty simple to understand: >>>> >>>> https://github.com/ruby-gnome2/ruby-gnome2/blob/master/gstreamer/lib/gst.rb >>> You subclass a Loader and I have the immediate feeling, that this must >>> be crucial for all that follows. I do not have to understand all the >>> meta-programming which is anyway out of my reach to see clearer now. >>> >>> Thank you very much. >>> >>> Michael >>> >>>> Just copy-paste that and change the names to refer to the gnumeric >>>> objects instead and it should work. >>>> >>>> The gst binding does some extra renaming and overriding to make the >>>> interface pleasant to use, you probably won't need that, at least to >>>> start with. >>>> >>>> John >>>> >>>> ------------------------------------------------------------------------------ >>>> _______________________________________________ >>>> ruby-gnome2-devel-en mailing list >>>> rub...@li... >>>> https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en >>> >>> ------------------------------------------------------------------------------ >>> >>> >>> _______________________________________________ >>> ruby-gnome2-devel-en mailing list >>> rub...@li... >>> https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> ruby-gnome2-devel-en mailing list >> rub...@li... >> https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en |
From: Michael U. <mic...@up...> - 2015-11-03 14:39:04
|
Hi again, With the example below, I get a name error, having replaced Vte against Gnm or Gnumeric.: “in `init': uninitialized constant Module::Loader (NameError)” If I use GObjectIntrospection::Loader.new(self), the error reads. ----------------- /var/lib/gems/2.1.0/gems/gobject-introspection-3.0.7/lib/gobject-introspection/loader.rb:167:in `const_set': wrong constant name 3D_NAME (NameError) from /var/lib/gems/2.1.0/gems/gobject-introspection-3.0.7/lib/gobject-introspection/loader.rb:167:in `load_enum_value' (...) ---------------- On Tue, Nov 03, 2015 at 12:05:44PM +0100, cedlemo wrote: > I think that the example I gave you is more simple and better to start with: > > https://github.com/ruby-gnome2/ruby-gnome2/blob/master/vte3/lib/vte3.rb > > Just change the Vte name with Gnumeric: > > require "gobject-introspection" > require "gtk3" > > base_dir = Pathname.new(__FILE__).dirname.dirname.expand_path > vendor_dir = base_dir + "vendor" + "local" > vendor_bin_dir = vendor_dir + "bin" > GLib.prepend_dll_path(vendor_bin_dir) > vendor_girepository_dir = vendor_dir + "lib" + "girepository-1.0" > GObjectIntrospection.prepend_typelib_path(vendor_girepository_dir) > > # You don't nedd this > #require "vte3/loader" > > module Vte > LOG_DOMAIN = "Vte" > GLib::Log.set_log_domain(LOG_DOMAIN) > > class Error < StandardError > end > > class << self > def const_missing(name) > init > if const_defined?(name) > const_get(name) > else > super > end > end > > def init > class << self > remove_method(:init) > remove_method(:const_missing) > end > Gtk.init if Gtk.respond_to?(:init) > loader = Loader.new(self) > loader.load("Vte") > end > end > end > > > This is the most basic example. > > Regards. > > On 03/11/2015 11:10, Michael Uplawski wrote: > > Howdy. > > > > I have been a bit worried to put my question on the list, but your > > responses keep me interested in GObject-Introspection. > > > > On Tue, Nov 03, 2015 at 09:33:54AM +0000, jc...@gm... wrote: > > > >> Hi, like cedlemo I'm not much of an expert, but I have made a binding > >> for my own gobject-based library here: > >> > >> https://github.com/jcupitt/ruby-vips8 > >> > >> I used the binding for gst as a model, it's pretty simple to understand: > >> > >> https://github.com/ruby-gnome2/ruby-gnome2/blob/master/gstreamer/lib/gst.rb > > You subclass a Loader and I have the immediate feeling, that this must > > be crucial for all that follows. I do not have to understand all the > > meta-programming which is anyway out of my reach to see clearer now. > > > > Thank you very much. > > > > Michael > > > >> Just copy-paste that and change the names to refer to the gnumeric > >> objects instead and it should work. > >> > >> The gst binding does some extra renaming and overriding to make the > >> interface pleasant to use, you probably won't need that, at least to > >> start with. > >> > >> John > >> > >> ------------------------------------------------------------------------------ > >> _______________________________________________ > >> ruby-gnome2-devel-en mailing list > >> rub...@li... > >> https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > ruby-gnome2-devel-en mailing list > > rub...@li... > > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en > > > ------------------------------------------------------------------------------ > _______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en -- ATTN! New Key! GnuPG brainpoolP512r1/5C2A258D 2015-10-02 [expires: 2017-10-01] Michael Uplawski <mic...@up...> fingerprint: 2A44 09D4 54B4 EBD2 90DA 0B2D E8B8 0614 5C2A 258D sub brainpoolP512r1/53461AFA 2015-10-02 [expires: 2017-10-01] |
From: Michael U. <mic...@so...> - 2015-11-03 12:59:15
|
Good morning again. On Tue, Nov 03, 2015 at 10:04:31AM +0100, cedlemo wrote: > There is not yet a good documentation. The best informations that you > could find I think should be in the unit tests : > > https://github.com/ruby-gnome2/ruby-gnome2/blob/master/gobject-introspection/test/ Merci beaucoup, ce tuyau est apprécié. I will take a look at the tests and see, where they get me. There is still some guesswork needed, simply for the fact that Gnumeric must replace something else, that I can only vaguely identify in the tests that I have quickly overflown. There may be more and I am patient. No worries. Michael > > Have a look at the vte3 module which is really simple and follow the > most common way to use GObjectIntrospection. > > https://github.com/ruby-gnome2/ruby-gnome2/tree/master/vte3 > > and especially this file > > https://github.com/ruby-gnome2/ruby-gnome2/blob/master/vte3/lib/vte3.rb > > > cedlemo > https://github.com/cedlemo > > > On 03/11/2015 07:46, Michael Uplawski wrote: > > Good morning, > > > > I try to understand GObject-Introspection to manipulate Gnumeric. > > Apart from the method-listings and an almost empty ri-output, I find no > > document dealing the topic. > > > > A working Python equivalent, which by use of the gi module writes > > 'hello world' into a table cell is impossible to reproduce in Ruby as > > the available documentation does not correspond, trial and error lead > > nowhere. > > > > Please point me at a more comprehensive overview. I see GI::Loader, > > Gio2, GObjectIntrospection::Loader but cannot bring them together with > > Gnumeric. In Python, using gi, a namespace 'gnm' is imported. If you > > want to help me with a direct hint, instead, just tell me how this is > > done in Ruby. I am not against finding a way on my own, but currently, > > there is only big mist. > > > > Thank you. > > > > > > > > ------------------------------------------------------------------------------ > > > > > > _______________________________________________ > > ruby-gnome2-devel-en mailing list > > rub...@li... > > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en -- ATTN! New Key! GnuPG brainpoolP512r1/5C2A258D 2015-10-02 [expires: 2017-10-01] Michael Uplawski <mic...@up...> fingerprint: 2A44 09D4 54B4 EBD2 90DA 0B2D E8B8 0614 5C2A 258D sub brainpoolP512r1/53461AFA 2015-10-02 [expires: 2017-10-01] ----- End forwarded message ----- -- ATTN! New Key! GnuPG brainpoolP512r1/5C2A258D 2015-10-02 [expires: 2017-10-01] Michael Uplawski <mic...@up...> fingerprint: 2A44 09D4 54B4 EBD2 90DA 0B2D E8B8 0614 5C2A 258D sub brainpoolP512r1/53461AFA 2015-10-02 [expires: 2017-10-01] |
From: cedlemo <ce...@gm...> - 2015-11-03 11:05:53
|
I think that the example I gave you is more simple and better to start with: https://github.com/ruby-gnome2/ruby-gnome2/blob/master/vte3/lib/vte3.rb Just change the Vte name with Gnumeric: require "gobject-introspection" require "gtk3" base_dir = Pathname.new(__FILE__).dirname.dirname.expand_path vendor_dir = base_dir + "vendor" + "local" vendor_bin_dir = vendor_dir + "bin" GLib.prepend_dll_path(vendor_bin_dir) vendor_girepository_dir = vendor_dir + "lib" + "girepository-1.0" GObjectIntrospection.prepend_typelib_path(vendor_girepository_dir) # You don't nedd this #require "vte3/loader" module Vte LOG_DOMAIN = "Vte" GLib::Log.set_log_domain(LOG_DOMAIN) class Error < StandardError end class << self def const_missing(name) init if const_defined?(name) const_get(name) else super end end def init class << self remove_method(:init) remove_method(:const_missing) end Gtk.init if Gtk.respond_to?(:init) loader = Loader.new(self) loader.load("Vte") end end end This is the most basic example. Regards. On 03/11/2015 11:10, Michael Uplawski wrote: > Howdy. > > I have been a bit worried to put my question on the list, but your > responses keep me interested in GObject-Introspection. > > On Tue, Nov 03, 2015 at 09:33:54AM +0000, jc...@gm... wrote: > >> Hi, like cedlemo I'm not much of an expert, but I have made a binding >> for my own gobject-based library here: >> >> https://github.com/jcupitt/ruby-vips8 >> >> I used the binding for gst as a model, it's pretty simple to understand: >> >> https://github.com/ruby-gnome2/ruby-gnome2/blob/master/gstreamer/lib/gst.rb > You subclass a Loader and I have the immediate feeling, that this must > be crucial for all that follows. I do not have to understand all the > meta-programming which is anyway out of my reach to see clearer now. > > Thank you very much. > > Michael > >> Just copy-paste that and change the names to refer to the gnumeric >> objects instead and it should work. >> >> The gst binding does some extra renaming and overriding to make the >> interface pleasant to use, you probably won't need that, at least to >> start with. >> >> John >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> ruby-gnome2-devel-en mailing list >> rub...@li... >> https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en |
From: Michael U. <mic...@up...> - 2015-11-03 10:49:13
|
Howdy. I have been a bit worried to put my question on the list, but your responses keep me interested in GObject-Introspection. On Tue, Nov 03, 2015 at 09:33:54AM +0000, jc...@gm... wrote: > Hi, like cedlemo I'm not much of an expert, but I have made a binding > for my own gobject-based library here: > > https://github.com/jcupitt/ruby-vips8 > > I used the binding for gst as a model, it's pretty simple to understand: > > https://github.com/ruby-gnome2/ruby-gnome2/blob/master/gstreamer/lib/gst.rb You subclass a Loader and I have the immediate feeling, that this must be crucial for all that follows. I do not have to understand all the meta-programming which is anyway out of my reach to see clearer now. Thank you very much. Michael > > Just copy-paste that and change the names to refer to the gnumeric > objects instead and it should work. > > The gst binding does some extra renaming and overriding to make the > interface pleasant to use, you probably won't need that, at least to > start with. > > John > > ------------------------------------------------------------------------------ > _______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en -- ATTN! New Key! GnuPG brainpoolP512r1/5C2A258D 2015-10-02 [expires: 2017-10-01] Michael Uplawski <mic...@up...> fingerprint: 2A44 09D4 54B4 EBD2 90DA 0B2D E8B8 0614 5C2A 258D sub brainpoolP512r1/53461AFA 2015-10-02 [expires: 2017-10-01] |
From: <jc...@gm...> - 2015-11-03 09:34:41
|
On 3 November 2015 at 09:04, cedlemo <ce...@gm...> wrote: > On 03/11/2015 07:46, Michael Uplawski wrote: >> I try to understand GObject-Introspection to manipulate Gnumeric. >> Apart from the method-listings and an almost empty ri-output, I find no >> document dealing the topic. >> >> A working Python equivalent, which by use of the gi module writes >> 'hello world' into a table cell is impossible to reproduce in Ruby as >> the available documentation does not correspond, trial and error lead >> nowhere. Hi, like cedlemo I'm not much of an expert, but I have made a binding for my own gobject-based library here: https://github.com/jcupitt/ruby-vips8 I used the binding for gst as a model, it's pretty simple to understand: https://github.com/ruby-gnome2/ruby-gnome2/blob/master/gstreamer/lib/gst.rb Just copy-paste that and change the names to refer to the gnumeric objects instead and it should work. The gst binding does some extra renaming and overriding to make the interface pleasant to use, you probably won't need that, at least to start with. John |
From: cedlemo <ce...@gm...> - 2015-11-03 09:04:40
|
Hi Michael, I am not really an advanced contributor but Kouhei Sutou (which is the maintainer of ruby-gnome2) is busy at the moment so I will try to give you some hints. There is not yet a good documentation. The best informations that you could find I think should be in the unit tests : https://github.com/ruby-gnome2/ruby-gnome2/blob/master/gobject-introspection/test/ Have a look at the vte3 module which is really simple and follow the most common way to use GObjectIntrospection. https://github.com/ruby-gnome2/ruby-gnome2/tree/master/vte3 and especially this file https://github.com/ruby-gnome2/ruby-gnome2/blob/master/vte3/lib/vte3.rb cedlemo https://github.com/cedlemo On 03/11/2015 07:46, Michael Uplawski wrote: > Good morning, > > I try to understand GObject-Introspection to manipulate Gnumeric. > Apart from the method-listings and an almost empty ri-output, I find no > document dealing the topic. > > A working Python equivalent, which by use of the gi module writes > 'hello world' into a table cell is impossible to reproduce in Ruby as > the available documentation does not correspond, trial and error lead > nowhere. > > Please point me at a more comprehensive overview. I see GI::Loader, > Gio2, GObjectIntrospection::Loader but cannot bring them together with > Gnumeric. In Python, using gi, a namespace 'gnm' is imported. If you > want to help me with a direct hint, instead, just tell me how this is > done in Ruby. I am not against finding a way on my own, but currently, > there is only big mist. > > Thank you. > > > > ------------------------------------------------------------------------------ > > > _______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en > |
From: Michael U. <mic...@so...> - 2015-11-03 07:23:00
|
Good morning, I try to understand GObject-Introspection to manipulate Gnumeric. Apart from the method-listings and an almost empty ri-output, I find no document dealing the topic. A working Python equivalent, which by use of the gi module writes 'hello world' into a table cell is impossible to reproduce in Ruby as the available documentation does not correspond, trial and error lead nowhere. Please point me at a more comprehensive overview. I see GI::Loader, Gio2, GObjectIntrospection::Loader but cannot bring them together with Gnumeric. In Python, using gi, a namespace 'gnm' is imported. If you want to help me with a direct hint, instead, just tell me how this is done in Ruby. I am not against finding a way on my own, but currently, there is only big mist. Thank you. -- ATTN! New Key! GnuPG brainpoolP512r1/5C2A258D 2015-10-02 [expires: 2017-10-01] Michael Uplawski <mic...@up...> fingerprint: 2A44 09D4 54B4 EBD2 90DA 0B2D E8B8 0614 5C2A 258D sub brainpoolP512r1/53461AFA 2015-10-02 [expires: 2017-10-01] |
From: <Ra...@la...> - 2015-10-23 14:39:39
|
I just ran across this assertion failure and wanted to document it somewhere in case someone else runs across it. I have a Glade file containing a window organized with a layout containing a vbox. The vbox contains two radio buttons with clicked signals defined. For some reason the cell/column containing the vbox was wider than the others so I found that by specifying a width request of 1 on the vbox the widths seemed to look ok. The problem was that as soon as I made this change I now get this assertion failure whenever I send :show to a Gtk::Builder object: Gtk-CRITICAL **:IA__gtk_accel_label_set_accel_closure: assertion 'gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed This appears to be related to the radio buttons in the vbox since I'm actually getting the assertion warning twice. It was an easy fix for me because I knew exactly what I changed to produce the warnings - I just removed the width request on the containing vbox. Hopefully this helps someone else who sees the assertion and wants a hint on where it might be coming from. Jon (This was from ruby-gnome2's gtk2 & builder from git master) |
From: <jc...@gm...> - 2015-10-20 16:30:50
|
I've made an example that shows the problem, but it is quite large :-( sorry. This is a binding for the vips image processing library. The libvips packaged for ubuntu is missing the typelib, unfortunately, so you need to build from source: https://github.com/jcupitt/libvips You need: ./bootstrap.sh ./configure --prefix=/home/john/vips make make install Then add vips to your library path and to GI_TYPELIB_PATH. Then install this branch of this gem: https://github.com/jcupitt/ruby-vips8/tree/gc-segv so: bundle install rake build gem install pkg/ruby-vips8-0.1.0.gem Then run: $ ./example/example3.rb loop 0 ... loop 1 ... loop 2 ... loop 3 ... loop 4 ... loop 5 ... loop 6 ... loop 7 ... /home/john/packages/gems/gems/gobject-introspection-3.0.7/lib/gobject-introspection/callable-info.rb:31: [BUG] rb_gc_mark(): 0x00000001ff1878 is T_NONE ruby 2.1.2p95 (2014-05-08) [x86_64-linux-gnu] Please let me know if you have problems setting this up, perhaps I can make it smaller. John |
From: Kouhei S. <ko...@co...> - 2015-10-20 14:21:59
|
Hi, In <CAG...@ma...> "[ruby-gnome2-devel-en] seeing GC-related crashes in 3.0.7, I think" on Tue, 20 Oct 2015 13:50:13 +0100, jc...@gm... wrote: > Hi, thank you very much for 3.0, it's added a couple of features I > needed and I'm now making progress on a goi binding for my image > processing library. > > However I'm seeing crashes which seem to be related to > #<GLib::Param::Object:0x000000011be6e8> objects being GCd when they > should not. > > I have an Argument class I used to track object args during setup. The > init looks like: > > def initialize(op, name) > @op = op > @name = name.tr '-', '_' > @cls = op.gtype.to_class > @prop = @cls.property name > end > > ie. I have a prop member which keeps track of the gobject property > during creation. After a GC, these pointers will sometimes become > invalid and I get crashes on lines like: > > value = Argument::arrayize prop.value_type, value > > as it tries to use the prop. The C backtraces look like: > > /usr/lib/x86_64-linux-gnu/libruby-2.1.so.2.1(+0x18a4b7) [0x7f8df89794b7] > /usr/lib/x86_64-linux-gnu/libruby-2.1.so.2.1(+0x18a583) [0x7f8df8979583] > /usr/lib/x86_64-linux-gnu/libruby-2.1.so.2.1(+0x6db13) > [0x7f8df885cb13] printf-parse.h:88 > /usr/lib/x86_64-linux-gnu/libruby-2.1.so.2.1(rb_bug+0xb3) > [0x7f8df885d183] printf-parse.h:75 > ... etc > > Please let me know if you need more information. Could you show us a script that reproduces your problem? We can't fix your problem without running the script on our environment. Thanks, -- kou |
From: <jc...@gm...> - 2015-10-20 12:51:03
|
Hi, thank you very much for 3.0, it's added a couple of features I needed and I'm now making progress on a goi binding for my image processing library. However I'm seeing crashes which seem to be related to #<GLib::Param::Object:0x000000011be6e8> objects being GCd when they should not. I have an Argument class I used to track object args during setup. The init looks like: def initialize(op, name) @op = op @name = name.tr '-', '_' @cls = op.gtype.to_class @prop = @cls.property name end ie. I have a prop member which keeps track of the gobject property during creation. After a GC, these pointers will sometimes become invalid and I get crashes on lines like: value = Argument::arrayize prop.value_type, value as it tries to use the prop. The C backtraces look like: /usr/lib/x86_64-linux-gnu/libruby-2.1.so.2.1(+0x18a4b7) [0x7f8df89794b7] /usr/lib/x86_64-linux-gnu/libruby-2.1.so.2.1(+0x18a583) [0x7f8df8979583] /usr/lib/x86_64-linux-gnu/libruby-2.1.so.2.1(+0x6db13) [0x7f8df885cb13] printf-parse.h:88 /usr/lib/x86_64-linux-gnu/libruby-2.1.so.2.1(rb_bug+0xb3) [0x7f8df885d183] printf-parse.h:75 ... etc Please let me know if you need more information. John |
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 |
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-06 15:18:28
|
Hi, Ruby-GNOME2 project released Ruby-GNOME2 3.0.6: http://ruby-gnome2.osdn.jp/hiki.cgi?News_20151006_1 It is a bug fix release of 3.0.6. === Changes ==== Ruby/GLib2 * Fixes * Fixed a bug that `xxx_yyy` enum name isn't accepted. [ruby-gnome2-devel-en][Reported by Detlef Reichl] * Fixed a bug that internal Ruby API is used. [ruby-gnome2-devel-en][Reported by Detlef Reichl] ==== Ruby/GTK3 * Improvements * Added backward compatibility API to (({Gtk::TreeView#insert_column})). [ruby-gnome2-devel-en][Reported by Detlef Reichl] === Thanks * Detlef Reichl |
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 |