=== wgrant_ is now known as wgrant | ||
jo-erlend | I've been writing my GTK by hand mostly. Now I thought I'd give Glade another chance, seeing as there's a lot of improvements in GTK3. However, when I try to build my window, I get an error message saying something like "Unhandled tag 'packing'". It's translated to Norwegian, so I can't be sure that message is exact. | 15:20 |
---|---|---|
jo-erlend | but is it really possible that Gtk.Builder doesn't handle something that basic? | 15:21 |
jo-erlend | no, that doesn't seem to be the case. Probably that packing isn't supported for one specific widget. Does anyone have an idea how I can find out which one is causing the error? | 15:31 |
johangm90 | hi | 15:36 |
jo-erlend | hi johangm90. | 15:37 |
johangm90 | why quickly set version of my app to 12.04 if this is 0.1? | 15:41 |
jo-erlend | johangm90, where do you see that? | 15:42 |
johangm90 | i set to 0.1 in setup.py file but when run quickly release command it automaticaly change to 12.04 | 15:43 |
johangm90 | https://launchpad.net/jtube-downloader | 15:45 |
jo-erlend | right. So it does append your minor version, so that 0.1 becomes 12.04.1. I'm not entirely sure why it does that. Might be in order to make it easier to push to Ubuntu Software Center. | 15:54 |
jo-erlend | that is to say; make it easier to have multiple versions in the software center. But this is just plain speculation. I have no real basis for it. | 15:55 |
johangm90 | ok | 15:57 |
johangm90 | thx | 15:57 |
jo-erlend | I'm assuming you've based your application on the ubuntu-application template? | 15:57 |
jo-erlend | johangm90, Ubuntu Developer Summit is on this week. Many of the developers are busy, so this might not be the easiest week of the year to get good answers. | 15:59 |
johangm90 | ok | 15:59 |
johangm90 | https://answers.launchpad.net/quickly/+question/194041 | 16:00 |
jo-erlend | but when you're making an Ubuntu Application, I think it makes sense to include the Ubuntu version in your apps version. After all, there will be ten different versions of Ubuntu during 12.04s life cycle. | 16:02 |
johangm90 | it posible | 16:03 |
jo-erlend | for instance, when 14.04 arrives (next LTS), things may have changed radically. You might want to keep your application available for 12.04 and 14.04 though there'll be differences in the code in 14.04. | 16:04 |
jo-erlend | rickspencer3, you're the man for this question, I think... Why does Quickly add Ubuntu's version to an Ubuntu Application, so that 0.1 becomes 12.04.1 when you release it? | 16:04 |
rickspencer3 | jo-erlend, quickly apps use the same numbering convention as Ubuntu | 16:05 |
rickspencer3 | so, if you ship twice in April of 2012, the second version will be called 12.04.1 | 16:05 |
rickspencer3 | if you ship again in May, it will be 12.05 | 16:05 |
jo-erlend | oh, it's that easy :) | 16:05 |
jo-erlend | rickspencer3, I thought it might have something to do with pushing to the USC. :) | 16:06 |
rickspencer3 | jo-erlend, nah, I think we just decided on that number scheme a few UDSs ago | 16:07 |
jo-erlend | think it must've been UDS-O. | 16:07 |
jo-erlend | another expert! Great! :) | 16:11 |
jo-erlend | There is a widget in GTK+ 3.4 that causes Gtk.Builder to complain that the 'packing' tag is unhandled. Now I'm trying to find out which one. Does anyone have any ideas how I can get the parsing information from Gtk.Builder.load_from_file()? | 16:12 |
arslan-atajanov | Hi, do you mean Gtk.Builder.add_from_file()? | 16:21 |
jo-erlend | sorry. Yes. | 16:21 |
jo-erlend | Unhandled tag: 'packing' <-- That's all I get. This error message should at least say which widget it's complaining about. Because it doesn't complain about packing tags in Boxes at least. | 16:24 |
arslan-atajanov | Sorry for late reply Jo. Have you solved your problem? | 17:07 |
jo-erlend | solved it? That would probably imply pathing GTK+, getting it packaged and distributed. It'd be fairly impressive if I had been able to do that in less than an hour. :) | 17:08 |
jo-erlend | I haven't even been able to file a bug report yet. | 17:08 |
jo-erlend | guess I'll just have to create one ui per GTK widget and see which one breaks. But I suspect it'll take a very large amount of time to discover the culprit that way. | 17:11 |
arslan-atajanov | maybe use elimination approach... | 17:12 |
jo-erlend | yes, I'm eliminating Glade once again. Sad, but true, it's still not usable. | 17:13 |
arslan-atajanov | You can try to load all your objects using: yourGtk.BuilderObject.add_objects_from_file("....", ("...", "...") <---- tuple of your objects ) and then delete objects one by one until you stop getting error. :) | 17:19 |
arslan-atajanov | This will lead to the complaining widget, if I'm right :) | 17:21 |
jo-erlend | no, I'm just going to leave this one in peace for someone else to handle. I simply can't invest an unknown amount of time on stuff like this. | 17:24 |
jo-erlend | I wish we had some way to file bugs, but we don't. | 17:24 |
jo-erlend | at least none that I know about. | 17:24 |
johangm90 | hi | 19:15 |
johangm90 | how i can use calc_percent line 529 http://pastebin.ubuntu.com/980399/ for progressbar in line 22 http://pastebin.ubuntu.com/980203/ | 19:15 |
jo-erlend | johangm90, why does calc_percent return a string? | 19:19 |
jo-erlend | in programming, we usually use percentage factors. So we expect 60% to be represented as 0.6 and 150% to be 1.5. | 19:23 |
jo-erlend | working with percentages is very much more complicated and doesn't provide anything useful. | 19:24 |
johangm90 | jo-erlend, calc_percent is part of youtube-dl script why does calc_percent return a string | 19:25 |
johangm90 | http://rg3.github.com/youtube-dl/ | 19:25 |
johangm90 | i try make ui for youtube-dl | 19:26 |
johangm90 | i need use cal_percent for progressbar | 19:26 |
jo-erlend | johangm90, you do have access to both byte_counter and data_len that calc_percentage expects? | 19:27 |
johangm90 | i can use do_download function for access to byte_counter and data_len | 19:28 |
jo-erlend | pf = float(byte_counter) / float(data_len) | 19:29 |
jo-erlend | self.progress.set_fraction(pf) | 19:29 |
jo-erlend | so just drop line 22 and 24, and add those instead. It should work. | 19:31 |
johangm90 | ok thx | 19:31 |
jo-erlend | it's not immediately clear to me where those variables comes from though. | 19:32 |
* jo-erlend gives up on Ubuntu App Development in its entirety. | 21:32 | |
jo-erlend | it's good for extreme basics stuff, and extreme experts. Anything in between is just for Optimistic Developers. :( | 21:33 |
GraemeLion | I slightly disagree there. | 21:43 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!