/srv/irclogs.ubuntu.com/2012/07/13/#ubuntu-desktop.txt

ceti331anyone know how to launch the kde panel from commandline (i have kwin installed, i've run that from within a fvwm session)01:14
ceti331ah, startkde, i have evryything now, great01:35
=== Ursinha` is now known as Ursinha
=== Ursinha is now known as Guest53271
* RAOF is not sure why ceti331's trying to start a KDE session from within a fvwm session rather than just starting a KDE session.01:56
ceti331i didnt have a kde session option displayed02:56
RAOFIf you installed kubuntu-desktop, you should have.03:04
ceti331kde seems pretty good overall just flaky screen corner triggering which is a shame ... i like that shortcut03:14
ceti331(i like screen corners bringing up desktop expo)03:14
pittiGood morning04:56
didrocksgood morning05:31
pittihey didrocks06:16
didrocksguten morgen pitti. Happy Friday!06:16
pittididrocks: happy Friday 13th to you too!06:16
didrockspitti: oh indeed, it is!06:16
rickspencer3hey didrocks, pitti06:48
rickspencer3wow, Gtk3 sure left a lot behind06:48
didrocksbonjour rickspencer306:48
rickspencer3for example, I cannot find how you are supposed to do pixbuf_new_from_data now06:48
rickspencer3maybe it's just my_image.set_data now?06:49
rickspencer3grrrrr06:49
RAOFI thought they pretty much just gutted pixbufs in their entirety?06:50
RAOFIn favour of cairo surfaces?06:51
rickspencer3RAOF, oh, I don't know06:51
rickspencer3there are still pixbuf's in the documentation06:51
rickspencer3I'll just have nathan write the paste data into a temp file, and load that into the image06:56
rickspencer3in the meantime ...06:56
* rickspencer3 shakes fist at Gtk Python programming06:56
RAOFI'm sure you can create a cairo image from data; maybe that's not enough, though.06:57
rickspencer3RAOF, if just sound unnecessarily hard, and there is zero sample code06:57
didrocksrickspencer3: yeah, it's cairo in the new world :)06:57
rickspencer3I'm supposed to be introducing someone to how fun programming Ubuntu apps is06:58
rickspencer3it's not going quite as planned06:58
RAOF:/06:58
pittihey rickspencer3, how are you?07:07
rickspencer3hi pitti07:07
rickspencer3I'm super grumpy07:07
rickspencer3trying to help someone make a simple copy and paste image example with Python and Gtk307:08
rickspencer3and the documentation is a combination of missing and wrong :/07:08
rickspencer3which sucks considering none of my pygtk code is relevant anymore07:08
pittirickspencer3: did you import GdkPixbuf and try GdkPixbuf.new_from_data ?07:08
pittiI was fairly sure I tried that already, but I don't remember any more whether it succeeded07:08
rickspencer3pitti, ah!07:10
rickspencer3sweet07:10
RAOFAs always, I'm sure the C documentation will be more useful. That's what I always look at when I'm doing GTK development.07:10
RAOF:(07:10
pittirickspencer3: gdk-pixbuf is a separate module, so it comes with a separate gir07:10
rickspencer3I had no f'ing idea07:11
rickspencer3and none of this is http://developer.gnome.org/gdk-pixbuf/unstable//gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf07:11
pitti$ mkdir /tmp/pixbuf; g-ir-doc-tool -o /tmp/pixbuf /usr/share/gir-1.0/GdkPixbuf-2.0.gir; yelp /tmp/pixbuf07:12
pittiFYI07:12
rickspencer3pitti, is there a symmetrical function call that gets the data from the pixbuf?07:12
rickspencer3is that get_pixels?07:12
pittiI'm waiting for the day when you can do yelp /usr/share/gir-1.0/GdkPixbuf-2.0.gir07:12
pittiit seems like we are this --><-- close07:12
pittithat's the Pythonic documentation, BTW07:13
pittirickspencer3: almost07:13
pittirickspencer3: new_from_data gets a string, while get_pixels() returns an array of bytes07:14
rickspencer3oh geez07:14
rickspencer3so how do I get a string?07:14
pittiyou can convert the byte array into a string, hang on07:14
rickspencer3oh geez, new from data takes 9 arguments :/07:28
=== zyga-afk is now known as zyga
RAOFnew_from_data takes a *string*? Why doesn't it take a byte array?!07:30
rickspencer3RAOF, no, it takes a byte array07:33
rickspencer3does it not?07:33
rickspencer3it used to07:33
=== ubuntu is now known as Nathan_S
rickspencer3msg Nathan_S http://stackoverflow.com/questions/7906814/converting-pil-image-to-gtk-pixbuf07:33
pittirickspencer3, RAOF: b'' _is_ a byte array07:33
RAOFAh, python.07:34
pittirickspencer3: I got a DSL reconnect, what was the last line you saw from me?07:34
pittiget_pixels() is working fine here07:34
pittiit's the new_from_data I have trouble with07:34
rickspencer3pitti, I saw that were going to look to convert get_pixels() return value to a string07:35
rickspencer3but I don't think that is actually necessary07:35
pittirickspencer3: no, it's fine07:35
* pitti replays07:35
pittirickspencer3: actually, I lied; new_from_data also takes a bytes array, so they are symmetrical07:36
pittirickspencer3: so, get_pixels() seems fine07:36
pittithis works:07:36
pittipb = GdkPixbuf.Pixbuf.new_from_file('/usr/share/pixmaps/debian-logo.png')07:36
pittiprint('data:', pb.get_pixels())07:36
pittidata: b'\xbf\x03H\x00 ...'07:36
rickspencer3pitti, may I assume that what is on the Gtk.clipboard when someone copies an image is a byte array suitable for new_from_data?07:37
pittirickspencer3: and I also checked that creating a new pixbuf with new_from_data() from an existing one with get_data() also works fine07:37
pittibut if I try to use it with a hardcoded one, I get strange results07:37
rickspencer3pitti, do you not need to supply the 9 arguments?07:37
pittiyes07:37
rickspencer3ok07:37
pittidata = b'\xFF\xFF\xFF\x00\x00\x00\xFF\xFF\xFF\x00\x00\x00'07:38
pittipb = GdkPixbuf.Pixbuf.new_from_data(data, GdkPixbuf.Colorspace.RGB,07:38
pitti                                    False, 8, 2, 2, 6, None, None)07:38
pittidata, colorspace, has_alpha, bits_per_pixel, width, height, rowstride, and two Nones07:38
pittirickspencer3: but it seems it mistreats the data, when I do it like this the get_pixels() result has a text prefix07:39
rickspencer3*sigh*07:39
pittirickspencer3: but that doesn't happen if I get the data from an already existing object, like another pixbuf or clipboard etc.07:39
pittirickspencer3: so I think it should work fine for you07:39
rickspencer3pitti, so, it looks like chromium just puts a pixbuf on the clipboard07:42
rickspencer3I wonder if we can just do that from python as well07:42
rickspencer3pitti, omg07:44
rickspencer3this is actually waaaaay easier than it used to be07:44
rickspencer3you can just put pixbuf's on the clipboard07:44
rickspencer3so, all the groveling around for the data and formatting it seems to no longer be needed07:45
pittirickspencer3: oh, does GdkPixbuf has a method for putting on the clipboard?07:45
rickspencer3or maybe it was always like that, and I was just doing it the hardway all along07:45
pittior clipboard a method for putting on a GdkPixbuf object?07:45
rickspencer3pitti, clipboard.set_image(my_pixbuf)07:45
pitti(probably the latter rather)07:45
rickspencer3and07:45
pittiyay07:45
rickspencer3my_image.set_from_pixbuf(clipboard.wait_for_image())07:46
rickspencer3they are now both 1 liners07:46
rickspencer3I wonder if they always were, but I never went that route because I was setting targets and everything07:48
seb128hey desktopers08:16
=== tkamppeter_ is now known as tkamppeter
RAOFIt's a seb128! RUN!08:24
seb128lol08:25
seb128RAOF, hey!08:25
* pitti runs like hell08:25
pittiI didn't do it!08:25
seb128hey pitti08:25
* pitti hugs seb12808:25
seb128what did you guys break again?!08:25
seb128;-)08:25
* seb128 hugs pitti08:25
pittinothing, I swear!08:25
seb128yeah yeah, don't believe you :p08:25
RAOFHey seb128 :)08:25
seb128RAOF, oh, my SRU patch pilot friend ;-)08:25
seb128RAOF, how are you?08:26
RAOFTired.08:26
RAOFAlso, FRIDAY! WOOOOOOOO08:26
seb128RAOF, you should call it a week, get a good deserved dinner and enjoy your weekend ;-)08:26
seb128RAOF, btw well done to Robert and you to get the system compositor work in a testable shape, I plan to install it on my test netbook today ;-)08:27
RAOFI'll just finish the due-diligance on smb's squid3 merge and then have a bath08:27
RAOFBoo. piuparts should have schroot integration.08:29
=== ubuntu is now known as Guest86821
=== Guest86821 is now known as Nathan_S
=== fenris is now known as Guest73296
=== ricotz_ is now known as ricotz
=== MacSlow is now known as MacSlow|lunch
=== zyga is now known as zyga-food
=== zyga-food is now known as zyga
didrocksseb128: session-migration in NEW on all archs13:13
seb128didrocks, NEWed13:15
didrocksseb128: \o/ thanks :)13:15
didrocksnow, let's chase mterry once he's around :)13:15
=== MacSlow|lunch is now known as MacSlow
didrocksmterry: hey, how are you? :)13:48
mterrydidrocks, great.  Yourself?13:48
didrocksmterry: I'm fine, thanks :)13:48
didrocksdo you have some time for a quick MIR? It won't hurt! ;)13:49
pittihey mterry, how are you?13:51
mterrydidrocks, sure, throw it over13:51
mterrypitti, hi!  good13:51
mterrydidrocks, aren't you on the MIR team?13:51
seb128hey mterry13:51
didrocksmterry: bug #102438113:52
ubot2Launchpad bug 1024381 in session-migration "[MIR] session-migration" [Undecided,New] https://launchpad.net/bugs/102438113:52
didrocksmterry: well, I am, but it's my package :)13:52
mterryseb128, good EST morning :)13:52
didrocksI can ack it if you want :p13:52
seb128mterry, good GMT afternoon ;-)13:52
didrocksit's excellent "stuff"13:52
seb128mterry, happy friday 13th as well13:52
* kenvandine does the friday the 13th dance13:52
seb128hey kenvandine13:53
kenvandinehey seb12813:53
seb128kenvandine, congrats on being officially our new chromium maintainer ;-)13:53
seb128you got it to build and updated!13:53
kenvandineNO WAY!13:53
kenvandinetemporary :)13:53
seb128kenvandine, you just get to fix powerpc now ;-)13:53
kenvandinehehe13:53
kenvandineapparently it has never been build for powerpc13:53
kenvandineso not my problem :)13:54
pittimterry: do you plan to fix the update-manager autopkgtest (missing python module dependency, etc.), or should someone else look into this?13:54
mterrypitti, I thought I did fix it.  What's missing now?13:54
mterrypitti, is there a failure log?13:54
pittimterry: https://jenkins.qa.ubuntu.com/view/Quantal/view/AutoPkg%20Test/job/quantal-adt-update-manager/9/ARCH=i386,label=albali/console13:54
pittimterry: apparenty python-coverage is missing13:54
pittimterry: also, https://jenkins.qa.ubuntu.com/view/Quantal/view/AutoPkg%20Test/job/quantal-adt-update-manager/9/ARCH=i386,label=albali/artifact/results/dsc0t-nose-tests-stderr has some stuff; autopkgtest fails the tests on any stderr output13:55
mterrypitti, guh, didn't know it did that13:56
pittimterry: I recommend something like this:13:56
pittiunittest.main(testRunner=unittest.TextTestRunner(stream=sys.stdout, verbosity=2))13:56
mterrypitti, python3-coverage doesn't exist yet13:56
mterrypitti, but the setup.cfg enables it, for when it does exist.  didn't think the noise would hurt anything13:56
pittimterry: for testing you can run sudo adt-run --no-built-binaries update-manager_*.dsc --- adt-virt-null locally (or in a VM)14:01
pittiand then check $?14:01
mterryI remember running the test suite in a pbuilder, but not under adt-run, which was my fatal error14:02
didrocksmterry: tell me if/when you have some time to review it, I've a pending gnome-session upload for it14:14
didrocksmterry: if you think you can't make it, Monday is fine :)14:14
mterrydidrocks, k14:14
pittimterry: I think you asked about udisks over night14:24
pittimterry: I have no particular plans to update it again, unless someone asks me about something specific; it's obsolete, and we are transitioning to udisks214:24
mterrypitti, ah right14:24
pittiwe need to fix update-notifier and usb-creator-common still, though14:24
mterrypitti, does adt-run not have internet access?14:25
pittimterry: it does14:25
mterry(on jenkins)14:26
mterryok14:26
mterrypitti, I've subscribed to u-m and u-r-u jenkins failure RSS14:31
mterrypitti, u-m should be better in trunk.  looking at u-r-u failure14:31
pittimterry: nice, thanks!14:31
pittimterry: please note that autopkgtest runs currently need to be kicked off manually14:32
pittiwe'll fix this on Monday when jibel is back14:32
pittimterry: so if you want a manual test, please prod someone from the QA team to press the button14:32
mterrypitti, I'm assuming it tests the archive, not trunk of the packages?14:32
pittimterry: right14:33
pittimterry: whenever the pacakge itself, or any of its dependencies change14:33
mterrypitti, OK.  I wasn't planning to release anew for the test fix, but I can if you'd prefer14:33
pittimterry: not that urgent; next week is fine, when adt is back14:33
pittigood night everyone, have a nice weekend!14:52
didrockshave a nice week-end pitti :)14:59
mterrydidrocks, in session-migration, you want DESKTOP_SESSION not XDG_CURRENT_DESKTOP?15:00
mterryi.e. you want to be able to distinguish between unity-2d and unity-3d or gnome fallback mode etc?15:00
didrocksmterry: yeah, DESKTOP_SESSION, because we maybe have separate gsettings database later on based on session, not on desktop15:00
didrocksexactly15:00
chrisccoulsonhmmmm, can people upgrade properly even with the latest python3-defaults? :/15:08
seb128chrisccoulson, those issues were supposed to be fixed yesterday, is your mirror uptodate?15:09
mdeslaurchrisccoulson: no, manually install the python3 package15:09
mdeslaurit's fixed, but if you're in a broken state, you need to manually fix it15:10
chrisccoulsonseb128, yeah, i can see the latest version but it won't upgrade with the broken state15:10
chrisccoulsonmdeslaur, thanks. i'll try that :)15:10
chrisccoulsoni don't want to spend too much time on my computer ;)15:10
seb128chrisccoulson, btw stop working, you are supposed to be on vac ;-)15:11
mdeslaurchrisccoulson: sudo dpkg -i /var/cache/apt/archives/python3_3.2.3-3ubuntu1_all.deb15:11
mdeslaurchrisccoulson: and then turn it completely off :)15:11
chrisccoulsonseb128, yeah, i should just turn my laptop off ;)15:12
seb128chrisccoulson, good!  ;-)15:12
chrisccoulsonah, that's better, it's upgrading now :)15:12
seb128chrisccoulson, you say that because you don't know how buggy those updates are ;-)15:13
chrisccoulsonseb128, oh, there's not much to update here actually. i've got the new indicator stack already ;)15:14
seb128chrisccoulson, ;-)15:15
didrocksmterry: thanks for the review!15:22
mterryyw!15:23
=== ubuntu is now known as Nathan_S
* didrocks waves good evening and week-end!16:55
kenvandinedesrt, what's the status of your wip/action_helper branch?17:29
desrtkenvandine: waiting for lars to get back from vacation17:38
kenvandineok, i uploaded it to a ppa so we can hit the ground running when he returns17:38
kenvandinealso uploading libindicator and libmessagingmenu17:39
bcurtiswxcan someone test: change your presence with empathy 3.4.2.1 on precise with the empathy window, then try changing it with the indicator menu. Mine always goes to available and then does not change.18:00
bcurtiswxkenvandine: ^ if you have precise18:01
bcurtiswxhmm, maybe ken had to leave early today18:03
=== Amaranthus is now known as Amaranth

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!