/srv/irclogs.ubuntu.com/2012/03/08/#ubuntuone.txt

karninhaines: Where you expecting those mp3's some time ago?01:45
karni:)01:45
karninhaines: How are things? :)01:45
nhainesHey!  :)  Well, U1 is always slow but it was cool because the 199 files counter decremented.... but in the next update it was back to 199!01:48
nhainesEverything's great, how're you?  :)01:48
karninhaines: huh, I guess that's not cool01:57
karninhaines: About to end my day and starting holiday tomorrow (at least theoretically). Practically (no turning back!) on Friday, when I'm leavning snowboarding in south of France.01:58
karninhaines: My eyes hurt a little, I'll be leaving soon. I'm happy all's good on your side :)01:59
snickers_Hello, Is anyone over here that can help me08:12
=== zyga-xchat is now known as zyga
JamesTaitMorning all! :D09:33
mandelmorning all!09:36
=== pedronis_ is now known as pedronis
=== zyga-xchat is now known as zyga
=== zyga-xchat is now known as zyga-afk
gatoxmorning11:14
mandelgatox, morning!11:22
gatoxmandel, how are you?11:23
mandelgatox, fine, getting the proxy stuff together at a good speed :)11:23
gatoxmandel, great!11:23
mandelgatox, is certainly an interesting job,and you?11:25
mandelgatox, how is the qt work treating you?11:26
gatoxmandel,  i've to do some interesting qt tunning now...... and about health: about to die jeejej11:26
mandelgatox, really? what have you done?11:29
gatoxmandel, i bought some medicine for the fever....... i almost couldn't sleep last night :S11:29
mandelgatox, wtf are you doing here then!!!11:32
mandelgatox, take sick days!11:32
gatoxmandel, yes.... i'm going to wait for roberto and ask him11:32
mandelgatox, well if you are sick, don't ask, you will need some doctors thing and that's about it11:33
gatoxmandel, yes, i understand.... but i don't want just to leave :P jeje he will be around soon11:35
gatoxralsina, ping.... just in case :P11:35
=== zyga-afk is now known as zyga
nessitabuenos días!12:20
gatoxnessita, hi12:22
nessitahola gatox12:22
nessitagatox: yesterday I forgot to mention that the button specialization you do has to be in ussoc12:22
nessitagatox: since we'll need it for both12:23
gatoxnessita, yes... i'm working in a generic button in this moment..... not in any of the projects..... and it has its problems..... i'm looking how to fix this things12:23
nessitagatox: oh12:23
gatoxi found out where is the problem really12:23
gatoxfor any button12:24
nessitagatox: what kind of problemas?12:24
gatoxnessita, basically..... with a custom button..... we are having the same result.... because we are adding a padding to the button in order to see it big and with rounded corners, etc..... and THAT padding is the one that is compressing the selection area12:25
gatoxand if you add a qlabel.... the problem is the same.... and if you try to add padding to the qlabel inside the qpushbutton (for the custom button)..... the text looks compressed because the button don't realize of the change12:25
nessitagatox: what if you add padding to both?12:26
gatoxnessita, nessita, the same problem..... if we want to highlight all the widget, the button shouldn't have padding12:26
gatoxyou can see how all the button is highlighted if you remove the padding properties in the qpushbutton qss12:26
gatoxnessita, also.... i don't know if you read lisetttte email.... but there she propose another kind of highlighting12:27
nessitagatox: let's go by parts: I wonder, you said that "if you try to add padding to the qlabel inside the qpushbutton (for the custom button)..... the text looks compressed because the button don't realize of the change",12:27
gatoxnessita, yes.......... the button doesn't expand based on the label property12:28
nessitagatox: so what if besides adding padding to the label, you also add the same padding to the button, so it expands accordingly12:28
nessitagatox: did you try that?12:28
gatoxnessita, yes.... that is what i answer before.... you are going to have the same situation12:29
nessitagatox: but I don't understand why12:29
nessitagatox: I understand if we only have padding in the button12:29
gatoxnessita, do you want to highlight all the widget?12:29
nessitayes12:29
gatoxnessita, ok..... the padding area of the button is not highlighted12:30
gatoxthat's the problem12:30
ralsinagood morning!12:30
gatoxralsina, hi12:30
=== zyga-xchat is now known as zyga
nessitagatox: I'm not sure we're understanding each other :-)12:31
nessitagatox: so, I understand that the padding are of the button is not highligthed. But, what if the label inside the button has enough padding to reach the borders of the button?12:32
gatoxnessita, it's  easy....... if you add 6px padding to the button..... you are going to have a separation of 6px between the border of the button and its content....... that area of separation..... is not highlighted12:32
nessitagatox: waht if you add 6px padding to the label? then the separation between the border of the button and the content is 012:32
gatoxnessita, if you add padding to the label.... and add padding to the button..... you are going to still have a padding on the button12:32
gatoxyou have 2 different paddings..... no 2 overlaps paddings12:33
ralsinagatox: go away!12:33
nessitagatox: but... you said that if you add padding just to the label, the text compresses because the button does not expand12:33
ralsinagatox: I just read the backlog. You have a fever, go to a doctor instead of working.12:33
nessitagatox: how can we make the button grow so the label fits properly then?12:34
gatoxralsina, that is what i'm going to ask you..... i'm with fever and feeling really bad.... i'm going to go to the doctor now.......12:34
nessitagatox: you with fever? :-/12:34
gatoxnessita, since yesterday12:34
nessitagatox: you know you can send an email saying "i will not work today, I have fever"12:34
gatoxnessita, but, let's finish with this first12:34
nessitagatox: NO12:34
ralsinagatox: let me fiddle with the button, go away, come back healthy12:34
nessitagatox: really, go to the doctor, this issue is not worth it12:35
gatoxnessita, yes yes... i'm going to the doctor....12:35
ralsinagatox: it's the kind of thing we can even fix after beta2, doesn't even need UIFe, since it's not visibleon screenshots12:35
gatoxralsina, ok...12:36
gatoxnessita, if you have anything else to do, please wait for me tomorrow.... so we can keep talking about this.... i already saw a lot of tihngs about this..... so you don't waste your time trying the same things12:36
mandelnessita, I've push a new revision to lp:~mandel/ubuntu-sso-client/webclient-use-dialog I have fixed most of the issues you pointed out except 3 to which I added explanations12:36
mandelgatox, pesado! vete al medico de una vez!12:37
nessitagatox: sure, I will not do anything about this12:37
mandelgatox, done make me go to cordoba..12:37
mandels/done/don't12:37
nessitagatox: byeeeeee12:37
gatoxmandel, nessita ralsina ok, bye!! i'm off12:37
ralsinahahaha12:38
ralsinaok, had more success seding him to the doctor than with my wife (same symptoms)12:38
ralsinaSo, morning reviews, who wants some?12:39
mandelralsina, no here :)12:42
alecuhello!13:01
ralsinanessita: just sent you an email with a little sanity check on the button styling: it's not us it's them13:13
nessitahola alecu13:15
nessitaralsina: ack13:15
mandelok, lunch time for me :D13:26
* mandel lunch13:26
=== yofel is now known as yofel_
=== yofel_ is now known as yofel
ralsinanessita: I think I have a fix for the "ugly orange focus square" problem in QPushButtons: http://www.flickr.com/photos/ralsina/6964221547/in/photostream13:46
ralsinanessita: of course, it won't be that ugly gray roundy-square when it's finished ;-)13:46
nessitaralsina: I'm also working on this... what do you have so far?13:47
ralsinanessita: the trick is setting padding of the :focus style to something ridiculously large so the square disappears13:47
nessitaso we stop duplicating work :-P13:47
ralsinanessita: hahaha13:47
ralsinanessita: yes, let's stop freelancing ;-) Let me paste you my stylesheet change: https://pastebin.canonical.com/61923/13:48
nessitaralsina: can you paste the diff instead, please?13:48
ralsinanessita: I think this, with a nice gradiant for the border, is a fix13:48
ralsinanessita: sure13:49
ralsinanessita: https://pastebin.canonical.com/61924/13:49
nessitagreat13:49
nessitaralsina: let me apply that to my branch and will push13:49
ralsinaand maybe we should stop using setDefault() and just set focus where we want it13:49
nessitaralsina: those are different things, no?13:51
ralsinanessita: yes13:51
nessitadefault and focus, are different things13:51
ralsinanessita: but default seems to be causing the gtk theme to do weird thigns withthe focus indicator13:52
ralsinanessita: without a setDefault() there is no orange halo on focused buttons13:52
nessitaI'm -1 to stop using setDefault, I think every app should have default buttons, they guide the user what to click. Let's top using the gtk theme :-P13:52
nessitaralsina: the button in the file sync does not have the setDefault and has the halo13:53
ralsinanessita: I was tempted to switch the buttons to windows style but it's not doable on PyQt13:53
ralsinanessita: because once you have a default button, the focused button gets a halo13:53
ralsinanessita: it's a freaky bug, try the program I mailed you :-(13:53
nessitaralsina: I don't think the halo is related to default. I think is directly related to focus, see for example the "share publish button", has the halo, is never default in his lifetime13:53
nessitarunning your program now13:54
nessitaralsina: is there any chance you're confusing the halo with the orange default?13:55
ralsinanessita: with the setDefault, the focused button is orange. Without setDefaultit isn't13:55
nessitayes, but that's not the mild orange I refer to... the mild orange is the little box, for example, on top of the folder names13:56
ralsinanessita: it's the same thing. Try my program, with setDefault and -stylesheet ubuntuone.qss13:56
ralsinanessita: you will get the small "pinkish" square13:57
ralsinanessita: without setDefault, you won't13:57
nessitaralsina: so how do you explain the mild orange box in the tabs regarding your theory for default buttons? :-)13:57
* nessita is confused13:57
ralsinanessita: similar unrelated bugs? ;-)13:57
nessita....13:57
ralsinanessita: ayway, the padding fixes it for the buttons. I can try to fix the tabs later ;-)13:58
nessitaralsina: heh13:58
nessitalet me show you what I have so far13:58
* ralsina feels like House MD13:58
nessita(give me a few minutes to polish)13:58
ralsinanessita: sure, I will go put my mate in process13:58
nessitaralsina: ah, but I wanted to ask you about the qss13:58
dobeyholas13:59
nessitaralsina: how's the precedence of style definition? the higher in the file the less precendence?13:59
nessitahola dobey13:59
dobeygood news!13:59
nessitadobey: yes to the bug commnet, will reply soon13:59
nessitadobey: yes?13:59
dobeyi fixed the sdtool hang13:59
nessitadobey: is that you? are you happy? what did you do with our regulardobey?!?!?!13:59
nessita:-P14:00
nessitadobey: yey! what was it?14:00
dobeyor well. *i* didn't fix it. but i see what's wrong14:00
dobeyso i will upload a package with the fix, today14:00
nessitashot14:00
dobeyit seems there was another change in twisted, separate from the addition of gireactor/gtk3reactor, which is needed. and i wasn't aware of it14:01
dobeyso doing "PYTHONPATH=. u1sdtool -s" with twisted trunk was working fine. but with the backported patch, it wasn't14:01
dobeyso have to backport another change as well :)14:01
nessitaaahhh14:02
* alecu has just touched the power cable while unplugging the laptop.14:02
alecunot fun.14:02
alecusomehow I feel things... differently now.14:02
ralsinanessita: yes, later = stroger14:02
alecuin an "electrical blue" shade.14:02
ralsinaalecu: see dead people yet?14:03
nessitaalecu: what cable you touched?14:03
ralsinaalecu: 1-1?14:03
ralsinaalecu: mumblish?14:03
alecunessita, the 220v one14:03
nessitaalecu: ouch14:03
ralsinaalecu: seeing blue is a side effect of viagra. Good to knw you take care of yourself ;-)14:03
aleculol14:04
nessitaralsina: how do *you* know?14:04
nessita:-P14:04
ralsinanessita: I know lots of useless stuff14:04
ralsinanessita: plus, House MD, of course14:04
alecunessita, he already takes heart pills, so it would be very risky to add viagra to the mix.14:04
* ralsina knows the density of Saturn, yet has never been there (around 0.59 IIRC)14:04
ralsinaalecu: not heart pills, just BP pills. No heart problems yet, luckily. I started on hyperinsulinemia pills yesterday though.14:05
dobeyralsina: you mean gravity relative to earth, not density, right?14:06
ralsinadobey: nope. Density.14:06
ralsinadobey: as in mass per volume14:07
aleculol14:07
ralsinadobey: turs out i english that's called specific gravity and it's 0.7. Oh well.14:08
alecunessita, I've added some comments and fixes after your review of branch: https://code.launchpad.net/~alecu/ubuntuone-client/proxy-tunnel-server/+merge/9507514:29
nessitaack!14:30
urbanapegood morning, friends14:33
* mandel back14:37
=== m_conley_away is now known as m_conley
ralsinadobey: quick 1-1 on IRC?14:43
dobeysure14:46
ralsinadobey, alecu, nessita, thisfred, joshuahoover, mandel (not gatox, sick, not briancurtin, pycon): team call!14:59
nessitauh right14:59
alecuralsina, and urbanape too!15:00
urbanapeah, omw15:00
ralsinasorry urbanape!15:00
mandelralsina, ack15:00
joshuahoovernessita: bug #94506515:37
ubot5`Launchpad bug 945065 in Ubuntu Single Sign On Client trunk "[UIFe] ResetPassword page has some widgets really close to the right margin" [Medium,In progress] https://launchpad.net/bugs/94506515:37
* jalcine wonder if this'll promote a better Qt app integration with GNOME. o.o15:39
ralsinagrmbl,ksnapshot really needs a ubuntu one kipi plugin15:46
dobeylawl15:46
nessitaralsina: I'm looking at your alerted branch15:46
ralsinanessita: oooook. My branch is slightly scared ;-)15:47
nessitaralsina: running --alert will not change anything in the desktop... is that ok?15:47
ralsinanessita: it does set the urgent bit but I see nothing when that's done15:47
nessitaie it will not make the U1 icon dance and all in the launcher15:47
nessitadobey: any idea about that? ^15:47
ralsinanessita: but the bit is set. I really don't know15:47
nessitaralsina: yes, I also printer the bit value and is indeed set15:47
nessitaprinted*15:48
dobeyeh?15:48
dobeyurl?15:48
nessitadobey: https://code.launchpad.net/~ralsina/ubuntuone-control-panel/alerted/+merge/9625315:50
nessitarunning nessita@dali:~/canonical/controlpanel/review_alerted$ ./setup.py clean build; U1_DEBUG=True PYTHONPATH=. bin/ubuntuone-control-panel-qt --alert will not change anything at all in the desktop15:50
dobey+U1_DOTDESKTOP = "ubuntuone-installer.desktop"15:51
ralsinanessita: I amnot even sure what "urgent" looks like. Dancing? extra arrow?15:51
dobeyi think that needs to be the full path perhaps15:51
ralsinadobey: that's copied from syncdaemon15:51
dobeyoh15:51
ralsinaso if it's broken, it's broken on syncdaemon as well15:51
nessitaralsina: the icon in the launcher bounces and is shown15:51
nessitaralsina: just like when you open a link with the browser minimized15:52
dobeydepends on your config15:52
dobeybut the arrow for it also turns blue15:52
ralsinaok, somebody say my name in 5 seconds15:52
dobeyralsina15:52
nessitaralsina: my name15:52
ralsinaok, quassel makes the icon dance, but the arrow is not blue15:53
ralsinanessita: when you start the app, the icon dances anyway15:53
nessitaralsina: what app?15:53
dobeynessita: any app15:53
nessitadobey: it does not for me...15:53
ralsinaok,gotta cook && eat, wil be back in a bit15:53
dobeyor at least, setting urgency on startup is probably entirely useless15:54
ralsina--alert would make sense if it made an already running u1cp icon dance but that's not terribly useful either since u1cp is likely not running15:55
dobeyralsina: and if something actually called it with arguments, which installer does not15:55
ralsinaI wonder if something ever used --alert in the past and/or what it did exactly15:56
dobeyand running it manually with --alert is basically never going to happen outside of someone testing that --alert does something15:56
dobeyralsina: i don't think anything did use it, but the plan was to use it15:56
ralsinaright15:56
dobeyfor the quota notification15:57
dobeyfor --alert to be useful, you'd also have to avoid showing the window when --alert was passed15:57
dobeybecause you're probably actually setting urgency, and then unsetting it, as it is now, before the message even gets sent over dbus15:58
dobeyor both messages get sent fast enough that you can't see it15:58
ralsinaright, since focus is removing the flag15:59
dobeyand the first thing the new app does when the window is shown, is get focus :)15:59
ralsinadobey: I actually tried starting it in a way that gets no focus and it keeps dancing so maybe it even works, but it's very hard to tell ;-)16:03
nessitadobey, ralsina: alert was being used, afaik, when you perform an action that should open the controlpanel but was already opened16:03
nessitadobey, ralsina: just like when you click on a link and your browser is minimized16:04
nessitaralsina: comment added back to https://code.launchpad.net/~ralsina/ubuntuone-control-panel/go-native/+merge/9612316:04
ralsinanessita: but syncdaemon can set urgent by itself.16:05
dobeynessita: --alert was never used16:11
dobeynessita: sd was setting it directly with the Unity api16:12
nessitait was? oh16:12
nessitalet's nuke it then16:12
nessitaralsina: ^16:12
dobeyyeah. i'd get rid of --alert, but keep the unsetting of urgency on focusIn16:12
nessitadobey: ah, right16:16
nessitadobey: would you please comment that on the MP?16:16
nessitaalecu: can you please review this https://code.launchpad.net/~mandel/ubuntu-sso-client/webclient-use-dialog/+merge/94416 before I give another pass to it? I have some doubts about the logic added in ubuntu_sso/utils/webclient/common.py, and would like your review in there before my second pass16:17
nessitaalecu: also, your first tunnel branch is approved16:17
alecunessita, looking16:17
alecunessita, thanks!16:17
ralsinanessita: ack, will kill!16:18
nessitaralsina: see last dobey's comment as well16:18
dobeynessita: commented on merge also16:20
nessitathanks16:20
dobeyralsina: oh i forgot; there's also a bug about track duplication in rb for u1ms purchased tracks. should be an easy fix, but not in the upload i'm doing today.16:22
dobeyhrmm. where the heck is that u1sdtool ^C bug16:22
dobeyah, there it is16:23
mandelnessita, is there a question about why there is a proxy_username and a username?16:30
nessitamandel: no, I'm not completely happy with the logic in webclient/common, the retry param is very confusing from my POV, specially since I'm not fully aware of the use of it. SO I prefer that alecu do one pass over that, and then I will re-review16:31
mandelnessita, ok, is indeed a little confusing, the retry param is for that case in which the proxy credentials were indeed asked to the user but he provided the wrong ones, in that case, the dialog shows that the creds were wrong the last time, is similar to the use of retrying in http://developer.gnome.org/libsoup/stable/SoupSession.html#SoupSession-authenticate16:33
mandelalecu ^16:33
mandelnessita, it took me some time to get my head around that16:34
ralsinanessita: I will keep the set_urgent() method on the main window just because it may come handy later in life16:35
nessitaack16:36
ralsinanessita: pushed alerted without --alert because life is a cruel joke16:41
ralsinadobey: ack on the rhythmbox bug16:42
ralsinanessita: there is no bug for the tab-ordering, right? I will file one if that's the case16:49
nessitaralsina: ack16:49
ralsinanessita: on the focus branch, the get more storage button is taller than the disconnect button now, and "go to web for public blah" link is not underlined anymore. Sorry if you already knew!16:54
nessitaralsina: the "link" buttons, as per the "new" spec, should not be underlined, only when focused16:55
ralsinanessita: ack16:55
nessitaralsina: did not know about the taller button... have a screenshot?16:55
nessitayou sure is not happening the same on trunk?16:55
ralsinanessita: in a minute, sure16:55
ralsinaand yes, same thing happens in trunk!16:55
ralsinaso not a bug in the branch16:56
nessitafiuuu16:56
nessitacan try to fix though16:56
nessitabut will have lunch before16:56
nessitaLUNCH!16:56
dobeylunch, bbiab17:07
mandelalecu, nessita, ralsina mp for the qt webclient refactor that ensures that the correct proxy is used when doing a http or https request via a proxy factory: https://code.launchpad.net/~mandel/ubuntu-sso-client/qt-ssl-dialog/+merge/9662417:26
ralsinamandel: ack, will review before you come back tomorrow17:26
mandelralsina, the mp comment explains how the http/https proxy usages is tested, we use http + squid auth and https + squid nonauth that way we know that is correctly done, writing the tests for libsoup implies fully mocking the gsettings which we don't have time for atm17:28
mandelwill move to the ssl dialog for libsoup tom and will do an IRL of the entire thing17:28
alecumandel, lovely!17:28
mandeljoshuahoover, FYI branch for UIFe bug 948119 proposed17:30
ubot5`Launchpad bug 948119 in Ubuntu Single Sign On Client "[UIFE] Add a translatable string for the ssl certificate details" [Medium,In progress] https://launchpad.net/bugs/94811917:30
joshuahoovermandel: cool17:30
mandelok, EOD for me.. brother is still at the hospital.. :(17:30
mandellaters!17:30
* mandel EOD17:30
ralsinabye mandel!17:30
alecubye mandel!17:31
alecumandel, please remember to review my other branches!!!!17:31
mandelalecu, will do before you are up tom :)17:31
alecumandel, thanks17:31
* mandel is lucky that alecu likes to sleep17:31
ralsinanessita: I am thinking, it makes no sense for the explore buttons to have tab-focus. You activate them by focusing on the folder list, scrolling to the item and clicking enter17:43
ralsinanessita: it's either that or have them scroll into view when they get focus (I have the code for that done), but I like it better with no focus.17:44
nessitaralsina: well, we could implement something else as itemActivated in the row, no? I think is nice to show the focus in those buttons, since user may expect to be able to focus them and activate. A user may not guess that activating the row means activatins the explore button. I agree to scroll the list to show the focused button, that also has to be done for the focused checkbox, no?17:45
ralsinanessita: I have not found how to make the checkbox tab-focusable yet17:46
ralsinanessita: but yes, if it's doable, it should too17:46
nessitaright17:46
ralsinaok, I'll go with scroll-on-focus now, it's easy to change if needed17:47
nessitaralsina: also, any idea why the tabbing does not reach the twitter and facebook buttons?17:49
ralsinanessita: let me check17:49
nessitaif they do, I can not make any visual detection of that17:50
ralsinanessita: it does17:50
ralsinanessita: after help17:50
ralsinanessita: it's just invisible17:50
nessitaralsina: ok, will debug further, thanks17:50
nessitalovely!17:50
ralsinanessita: those buttons have border: none17:52
ralsinanessita: so, well, that :-)17:52
nessitayeap, but I added:17:52
nessita    146 QPushButton#twitter_button:focus,17:52
nessita    147 QPushButton#facebook_button:focus {17:52
nessita    148     background: green;17:52
nessita    149     border-width: 2px;17:52
nessita    150     border-color: #dd4814;17:52
nessita    151 }17:52
ralsinanessita: add solid17:52
nessitaand nothing happens either17:52
ralsinabrder; 2px solid #dd4814;17:52
nessita*really*?17:52
ralsinanessita: yes, it's set to 2px of none :-)17:52
nessitaI HATE THIS17:53
nessitaralsina: it does not change anything :-/17:53
ralsinanessita: good thing you are not a web dev anymore, because CSS does exactly the same thing ;-)17:53
ralsinanessita: can you push?17:53
nessitaralsina: I'm not pregnant, so not sure17:53
ralsinanessita: haha17:53
ralsinanessita: don't want you to have an accident, so just bzr push ;-)17:54
nessitaralsina: also, I commented out the border:none as well, so will push and you can play17:54
ralsinanessita: ok, cool17:54
nessitaralsina: pushed17:55
ralsinanessita: those buttons have a fixed size of 16x16 and a 16x16 image in them, there is no room for a visible border18:00
nessitaralsina: ah... so the fix is...18:00
ralsinanessita: I will play a bit to see if I can find a way to make that visible without breaking stuff18:02
nessitaralsina: ok, I have a second challenge for you, let me know when you\ re ready18:02
nessitaralsina: what if we fixed the size to be 18x1818:03
nessitaralsina: and when !focus, we set a border of 2px with the same color as the background :-D18:03
nessitayes, that's cheating18:04
nessitabut it works!18:04
ralsinanessita: fix for twitter buttons https://pastebin.canonical.com/61967/18:05
ralsinanessita: and it's  a bit like that, yes ;-)18:05
ralsinaso, second challenge accepted! ;-)18:05
nessitaralsina: will push so you debug18:05
nessitaralsina: Pushed up to revision 281. So, second challengue is the "Help button" along with the "share_publish_button"18:06
nessitaralsina: using my latest branch, you will notice that if you focus in those, they turn blue18:06
nessitaralsina: the goal is those to be underline, but in the same qss section where I'm turning them blue, text-decoration: underline; does nothing18:07
ralsinanessita: ok, will look18:07
nessitaralsina: as you can see the text-decoration: underline; is there18:07
dobey18x18?18:07
ralsinadobey: no, they are 16x16 with an invisible 2px frame, ignore the 18 behind the curtain18:08
dobeywtf18:08
nessitaralsina: but, if you move the text-decoration: underline; to the qss section where the same buttons are styled for non-focus state, that will draw the underline18:08
nessitaWTF? :-)18:08
ralsinanessita: ok, will research what F it is then :-)18:08
ralsinanessita: for 2px border you will need 20px on the buttons, really, not 1818:09
ralsinanessita: border is inside widget boundaries18:09
nessitayeah true18:09
ralsinanessita: also, I see the tabs are no longer pink-on-focus, nice!18:10
nessitaralsina: they are underlined like the docs requests ;-)18:10
ralsinanessita: a real fix for that may involve adding a QLabel inside the button18:23
nessitaralsina: hum... then why the underline works when non focused?18:23
ralsinanessita: oh,no idea18:24
ralsinanessita: I just think that using a QLabel may work. According to the docs this should work too18:24
nessitaand it does18:25
nessitabut not for :focus :-/18:25
ralsinanessita: right18:25
dobeyok, time to get this rhythmbox fixup done18:28
nessitaralsina: any hack you can advice?18:30
ralsinanessita: not yet18:30
ralsinanessita: I can make it work by rsetting the property on focusInEvent but it breaks lts of stuff18:30
nessitaright18:31
nessitaralsina: well, we can always as another styling for those in particular18:31
ralsinanessita: well, the 1000px padding when you reset the stylesheet becomes effectively 1000px :-)18:31
nessitalike, instead of being underlined, to be changed the fg color (not to blue, but to something else). For example, the white link can change to orange, and the orange change to... grey18:31
ralsinanessita: which kinda breaks the layout a wee bit18:32
nessitaralsina: what does that mean: "reset the stylesheet"?18:32
ralsinanessita: calling setStyleSheet on the button18:32
nessitaah, oh18:32
nessitadon\ t do that :-P18:32
nessitaralsina: I will propose to design to have the help_button turn orange when focused18:33
nessitaand the share_publish_button to turn grey18:33
ralsinanessita: fine by me18:34
nessitaralsina: I found the problem, and is *odd*18:36
nessitaralsina: when in :focus, with background: transparent, underline does not work18:36
ralsinainteresting18:36
nessitaremove the background setting and it works :-/18:36
ralsinabizarre18:36
nessitacan certainly set the background by hand... but that's dirty18:37
ralsinaso, let's set it to background instead of transparent I guess18:37
ralsinanessita: well, let's get design input. It's just another constant (and we have 50 already anyway)18:37
nessitaright18:37
nessitaralsina: sorry, I lied18:39
nessitano, it does not work changing the background18:39
nessitaI confused myself, had a leaking underline from other state18:39
ralsinanessita: then forget it, don't block on it18:40
ralsinanessita: we can just change the icon or something, too18:40
nessitayeah18:40
nessitaralsina: ok, I think I'm happy with what I have so far. I will propose for merging, the thing that is pending is making the freaking checkboxes in the folders list to be focused, but I guess you're working on that?19:02
ralsinanessita: yes19:04
ralsinanessita: I am not sure it is possible, but I will try19:04
nessitaralsina: ok, I'm also fixing an ugly thing I found with devices, which may fix the tabbing there. HAve you done enything in the devices tab?19:04
ralsinanessita: not yet19:05
ralsinanessita: trying to do a test for the "scroll-on-focus" that doesn't segfault19:05
nessitaralsina: ok, will advice not to do anything in there until I push this19:06
ralsinanessita: sure, I expect I will only do folders today19:06
alecunessita, I've reviewed mandel's branch. The logic in common.py looks ok, so I've approved it.19:10
nessitaalecu: ack!19:11
alecuok, guys, gals: I'll be out for a few hours, running some errands and going to kinder.19:14
alecusee you laters!19:14
=== alecu is now known as alecu-away
dobeyalecu-away: play nice with the other kids while you're there.19:39
ralsinanessita: to keep branches short and clean, I think I will propose one that fixes only folders20:05
nessitaralsina: makes perfect sense20:05
ralsinanessita: specially since it will all be much prettier and easier to see with your branch20:05
nessitayes20:06
ralsinanessita: there is no way I can find to get the checkbox in an item. I can make it a real widget (like the button) and then it's easy20:25
nessitaralsina: what does it involve "make it a real widget"?20:26
ralsinanessita: doing like we do for the explore buttons, and move some code from the slot connected to ui.folders to some other place connected to the checkbox we are adding. Nothing major.20:27
nessitaralsina: when you say slot, you mean callback?20:27
ralsinanessita: no, I mean the on_folders_item_Activated slot20:28
ralsinaor maybe itemChanged I would have to look20:29
nessitaralsina: <pausing a bit the original conversation>20:29
nessitaralsina: for me, those 2 are callbacks connected to signals20:29
nessitawhy you call them slots?20:29
ralsinanessita: Qt slang20:29
nessitaralsina: I know that in Qt there some things called slot, that's why I ask, the thing is that I always thought that a slot != callback20:30
nessitaergo would like to understand the difference :-)20:30
ralsinanessita: you connect signals to slots or to other signals. On Python, any callable works so talking about slots makes a little less sense20:30
ralsinaon C++ you have to declare that a method is a slot so you are able to connect signals to it20:30
nessitaahhhhhh20:31
nessitaok, got it20:31
ralsinaand you can't connect signals to standalone functions20:31
nessitain C++, right?20:31
ralsinaright20:31
nessitaack20:31
nessita<unpause>20:31
ralsinaon PyQt people maintained the slang because we use the C++ docs all the time20:31
nessitaok, let me re-read with this new knowledge20:31
nessitaralsina: do you consider the solution you're proposing to be cleaner?20:32
ralsinanessita: not cleaner, but it will make it less confusing20:32
ralsinanessita: currently, since you can tab to the buttons, not being able to tab to the checkboxes is weird20:32
nessitayes20:32
nessitaok, I'd say go ahead20:32
nessitaI'm running tests to propose my branch20:33
ralsinanessita: also, that means that you can explore by tabbing to the button or to the list + arrows and then space, but for checkboxes you can only do the second20:33
nessitaralsina: didn't you forgot your kid?20:33
ralsinanessita: ok then20:33
ralsinanessita: his mother picked him today :-)20:33
nessitaah, ok :-)20:33
ralsinanessita: I only forget him once or twice a year tops20:33
nessitayou're a great dad20:33
nessita(?)20:33
ralsina*almost*!20:34
ralsinathe problem was this week he exits at noon, so it's right in standup / mgmt call/ team call/whatever20:34
nessitaralsina: ah, I thought you had to pick him up at 5pm20:41
ralsinanessita: not yet, in a couple of weeks20:42
ralsinanessita: still in adaptation20:42
ralsinacrap, spent 45 minutes befre noticing that self.ui.folders.setItemWidget only works AFTER the item is added to the tree. Sigh.20:53
nessitaralsina: when you can, https://code.launchpad.net/~nataliabidart/ubuntuone-control-panel/focus/+merge/96654, will attach screenshot soon20:56
ralsinanessita: got it20:56
nessitaralsina: oops wait let me revert something a broek20:58
nessitabroke20:58
nessitaralsina: pushed20:59
ralsinanessita: ack21:00
* dobey finally builds updated rhythmbox for ubuntu in pbuilder21:08
nessitaralsina: any idea about this? https://bugs.launchpad.net/ubuntu/+source/ubuntu-sso-client/+bug/95012621:16
ubot5`Ubuntu bug 950126 in ubuntu-sso-client (Ubuntu) "ubuntu-sso-login crashed with SIGSEGV in setEnabled()" [Undecided,New]21:16
ralsinanessita: not really21:16
ralsinanessita: python question, how can I not duplicate code here: https://pastebin.canonical.com/61985/21:17
nessitalooking21:17
nessitaralsina: uh oh gah, you saw that in my branch there is already a ExploreFolderButton?21:17
ralsinanessita: no, I did not :-)21:17
ralsinanessita: have not started reviewing it yet21:18
nessitaralsina: anyways, from my point of view, that code should not be in SubscriptionCheckBox nor in ExploreButton. I think the proper fix is:21:18
ralsinabut hey, I can merge changes later. In which case, no worries about duplication ;-)21:18
nessitaralsina: let me finish my proposal!21:18
nessita:-)21:18
ralsinasure, go ahead21:18
nessita* in the tree widget, connect to each button.checkbox to the focusIn signal (map that to whatever the signal name is) and have a single callback that does what you want21:19
ralsinanessita: focusin is not a signal :-(21:19
ralsinanessita: it's an event, so the only way to act on it is to inherit and overload21:19
nessitabut that code (self.item.treeWidget().scrollToItem(self.item)...) does not belong to the button nor to the checkbox21:19
nessitait really really does not belong there21:20
ralsinanessita: the button is the only one that knows it got focus21:20
nessitaralsina: what about emitting a custom signal in each widget on focusInEvent?21:20
nessitaso, the implementation of focusInEvent would be self.focused.emit()21:20
ralsinanessita: sure, but we are adding a signal and an extra method just to move that one line of code21:20
nessita1- is not one line of code :-)21:21
ralsinaok 2 lines of code ;-)21:21
nessita2- the code does not belong there, when speaking about concerns of classes and ADTs21:21
ralsinathe only purpose of this class is scrolling its parent when it gets focus ;-)21:22
nessitathe problem, from my POV, is qt not providing a signal for focusin!!!21:22
nessitaralsina: a widget can not rely on who's its parent21:22
ralsinanessita: yes, but that is a problem that we cannot fix21:22
nessitaralsina: we can if we provide the signal ourselves :-P21:22
ralsinanessita: ok, I will do it, but it looks like a really nasty "solution" to me, moving back and forth between classes, adding a "scroll self.ui.folders to this item" function, plus the button will still need a reference to the item anyway21:23
nessitaralsina: why "the button will still need a reference to the item anyway"?21:24
ralsinanessita: the button gets the focus event. How will it tell ui.folders to what item to scroll?21:24
ralsinanessita: and don't say "search the items until we find the button" please ;-)21:25
nessitaralsina: the self.ui.folders has the item already, no?21:25
nessitano searching all the items21:25
ralsinanessita: it has all the items. Doesn't know which one has a button that has focus.21:25
nessitaralsina: one sec21:26
ralsinaso, I could traverse the items using a QTreeWidgetIterator and check all ItemWidgets until I find the focused one, but tikes21:26
ralsinanessita: ok21:26
nessitaralsina: what about using the focuschanged signal? does that make any sense?21:31
ralsinanessita: same problem, focuschanged gives you the button, if it doesn't hold a reference to the item where it is placed, you have to search for it21:32
nessitaralsina: right, but we solve the need of hving a custom signal, no?21:32
ralsinanessita: I *could* keep a {widget: item} in the main UI class, and avoid the lookup21:33
ralsinanessita: yes, but we still need the custom class21:33
nessitaralsina: for styling?21:33
ralsinanessita: no, so it keeps the reference to the item so we can scroll21:35
ralsinanessita: of course I could just do butto.item = child21:35
ralsinabut that's a bit chanchito ;-)21:35
nessitaralsina: ah, I thought your {widget: item} mapping would live in the self.ui.folders21:35
nessitaand then you could do {widget: item}[the_focused_button]21:36
ralsinanessita: no, because self.ui.folders is a standard class, so it would have to be in FoldersPanel21:36
ralsinaso, we get focuschanged, and that gives us a widget, we look for it in the dictionary, and scroll to the item. That needs no class no nothing21:36
nessitaralsina:  yes, I meant the FoldersPanel instance21:36
ralsinaplus, that gets triggered for *every* focuschange in the app, but that's not as horrible as it sounds21:37
nessitaralsina: right. Well, from all the possibilities, I find the one of having the tree-widget related code in the inner widget the less acceptable... the rest I can live with21:38
nessitaralsina: would you think is better to hace custom signals in each "inner" widget and pass the item around?21:38
ralsinanessita: just as a last defense for my current solution: it doesn't rely on parent(), it relies on item which is a mandatory argumet on creation21:39
nessitaralsina: right... but it relays that the item has a treeWidget in it :-/21:40
nessitawhich is the part I find that crosses too many class boundaries and couples the classes a lot21:40
ralsinanessita: item is a QTreeWidgetItem. It checks if it's added to a treeWidget, and if it is, it scrolls it21:40
nessitaralsina: from my POV, is very very dirty, I think it violates class abstraction21:41
ralsinanessita: ok, "te doy la derecha". I will do the focuschanged one, the other is a lot of do-nothing code21:42
dobeyla la la, build build build21:47
nessitaralsina: ok, I'm calling it a day... will email design with the screenshots and diego, so if he works tomorrow, he knows where we stand21:51
ralsinanessita: cool21:52
ralsinanessita: he sent me email: has gastroenteritis and maybe a sore throat21:52
ralsinanessita: so I wouldn't expect him tomorrow, but you know how he is21:52
nessitaralsina: did you mention that he should rest tomorrow as well?21:53
ralsinanessita: I told him "don't come back until you are well"21:53
nessitahum21:53
nessitatoo vague for diego :-P21:53
nessitawhat's "well"? :-D21:53
nessitabe able to breathe?21:53
dobeyi think it means "the computer boots"21:55
dobeyok. proposed new rhythmbox22:15
dobeyand rhythmbox-ubuntuone uploaded; though it won't be installable until new rhythmbox is accpted/published as well22:16
jalcineso it's a tease? lol22:17
dobeywell, can't have people reporting crashes that are already fixed.22:18
jalcinetrue, true.22:27
dobeyalright. later all22:33
JanCis there any chance to get U1MS decoupled from a particular media player...?  ;)22:35
dobeyJanC: the core of it is.22:42
dobeyJanC: it's just a widget we embed inside rhythmbox. and we hook up various signals and things to rhythmbox, so previews work, and songs end up in the user's music library, and stuff like that22:43
JanChm22:43
dobeythe plug-in is just a thin veneer :)22:43
dobeyanyway, i am really gone now22:44
JanCwouldn't it make more sense to have a separate application that can update $FAVOURITE_PLAYER using a simple plugin?22:48
nhainesIt would make sense to support both Rhythmbox and Banshee instead of oscillating quickly between the two.22:54
JanCnhaines: I use neither23:11
JanCthey are both similar, and for some reason C++ & C# are slower than Python...   ;)23:12
JanCs/and/as/23:12

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