=== wgrant_ is now known as wgrant [15:20] 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:21] but is it really possible that Gtk.Builder doesn't handle something that basic? [15:31] 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:36] hi [15:37] hi johangm90. [15:41] why quickly set version of my app to 12.04 if this is 0.1? [15:42] johangm90, where do you see that? [15:43] i set to 0.1 in setup.py file but when run quickly release command it automaticaly change to 12.04 [15:45] https://launchpad.net/jtube-downloader [15:54] 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:55] 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:57] ok [15:57] thx [15:57] I'm assuming you've based your application on the ubuntu-application template? [15:59] 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] ok [16:00] https://answers.launchpad.net/quickly/+question/194041 [16:02] 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:03] it posible [16:04] 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] 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:05] jo-erlend, quickly apps use the same numbering convention as Ubuntu [16:05] so, if you ship twice in April of 2012, the second version will be called 12.04.1 [16:05] if you ship again in May, it will be 12.05 [16:05] oh, it's that easy :) [16:06] rickspencer3, I thought it might have something to do with pushing to the USC. :) [16:07] jo-erlend, nah, I think we just decided on that number scheme a few UDSs ago [16:07] think it must've been UDS-O. [16:11] another expert! Great! :) [16:12] 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:21] Hi, do you mean Gtk.Builder.add_from_file()? [16:21] sorry. Yes. [16:24] 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. [17:07] Sorry for late reply Jo. Have you solved your problem? [17:08] 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] I haven't even been able to file a bug report yet. [17:11] 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:12] maybe use elimination approach... [17:13] yes, I'm eliminating Glade once again. Sad, but true, it's still not usable. [17:19] 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:21] This will lead to the complaining widget, if I'm right :) [17:24] 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] I wish we had some way to file bugs, but we don't. [17:24] at least none that I know about. [19:15] hi [19:15] how i can use calc_percent line 529 http://pastebin.ubuntu.com/980399/ for progressbar in line 22 http://pastebin.ubuntu.com/980203/ [19:19] johangm90, why does calc_percent return a string? [19:23] in programming, we usually use percentage factors. So we expect 60% to be represented as 0.6 and 150% to be 1.5. [19:24] working with percentages is very much more complicated and doesn't provide anything useful. [19:25] jo-erlend, calc_percent is part of youtube-dl script why does calc_percent return a string [19:25] http://rg3.github.com/youtube-dl/ [19:26] i try make ui for youtube-dl [19:26] i need use cal_percent for progressbar [19:27] johangm90, you do have access to both byte_counter and data_len that calc_percentage expects? [19:28] i can use do_download function for access to byte_counter and data_len [19:29] pf = float(byte_counter) / float(data_len) [19:29] self.progress.set_fraction(pf) [19:31] so just drop line 22 and 24, and add those instead. It should work. [19:31] ok thx [19:32] it's not immediately clear to me where those variables comes from though. [21:32] * jo-erlend gives up on Ubuntu App Development in its entirety. [21:33] it's good for extreme basics stuff, and extreme experts. Anything in between is just for Optimistic Developers. :( [21:43] I slightly disagree there.