/srv/irclogs.ubuntu.com/2011/09/22/#ayatana.txt

Lirodoncoz_, hello again01:34
coz_Lirodon,  hey guy01:35
didrocksgood morning05:40
oSoMoNgood morning07:07
=== API is now known as Guest90684
andyrockJohnLea, around?07:40
andyrockJohnLea, btw when you are available can you give a look to the last comment of this bug? https://bugs.launchpad.net/ubuntu/+source/unity/+bug/77244507:42
ubot5Ubuntu bug 772445 in unity (Ubuntu) "Dragging image from firefox/chrome to dock causes lagg/freeze" [Low,In progress]07:42
htorqueandyrock: hi! can you confirm bug 856184?08:06
ubot5Launchpad bug 856184 in unity "Launcher doesn't hide if mouse leaves launcher area while launcher not fully unhidden" [Undecided,New] https://launchpad.net/bugs/85618408:06
andyrockhtorque, done08:09
andyrocki'm not sure if it's a problem in unity (ubuntu) too08:09
htorquelikely, but i haven't installed that anywhere08:09
htorqueandyrock: thanks anyway. now to catch the crashers - quitting apps randomly takes down unity here. :(08:10
andyrockhtorque, me too...08:11
andyrockare you able to get a backtrace and open a bug?08:11
andyrockhtorque, i know you are able... i mean "can you get..."08:12
andyrock:)08:12
htorqueandyrock: sure will do, i just have to purge the desktop-team PPA first (contains the stacking fixing compiz). not sure if that's already in ubuntu and i'm not feeling good when doing such reports with PPAs enabled. :P08:15
andyrockhtorque, ok ok thx :)08:16
JohnLeaandyrock; so the issue is that it takes up to 5 sec to get the file type of very large files, and there is no way of reducing this delay?08:18
andyrockJohnLea, 5 sec is an example but 1 sec of freeze sucks too... i noticed this freeze only with browser (firefox or chrom*) images08:21
JohnLeaandyrock; agree that freeze completely sucks.  You have only encountered this when dragging images from *inside* a web page?08:22
andyrockJohnLea, yes...08:22
andyrockJohnLea, also with images not so "big"08:24
andyrocke.g. unity logo on top of LP Unity page08:25
andyrockJohnLea, give me just a second... i've an idea08:26
JohnLeaandyrock; cool08:28
JohnLeaandyrock; from a design prospective the ideal solution is to find a way to eliminate the delay, but I know that answer doesn't help you08:29
andyrockJohnLea, maybe the problem is that the img is not taken from the browser cache08:29
andyrockbut it is downloaded from the Internet08:30
andyrocklet me debug... :)08:30
andyrockJohnLea, QED08:33
andyrockhttps://launchpadlibrarian.net/53981966/unity-logo-64.png08:33
andyrockthe problem is that it takes time to download it...08:33
=== Guest90684 is now known as apinheiro
andyrockJohnLea, a workaround could be diabiling the icon that should be downloaded08:39
andyrockbut i guess there is a better solution08:39
JohnLeaandyrock; good luck, I don't think I'll be much help with this one but keep me posted.  I'll ask racarr when he get's in if he has any ideas08:49
andyrockJohnLea, ok... tell racarr that using g_file_query_info_async removes the freeze but not the delay08:50
htorqueandyrock: you said you were getting the crashes too. are you using the compiz from the ubuntu-desktop PPA (stacking issues fixed)?08:57
andyrocki use the ubuntu-desktop ppa08:58
andyrockso i guess yep08:58
htorqueeither i've been unlucky for the past 30 minutes or it's related to that compiz version.08:59
andyrockhtorque, 1:0.9.5.94+bzr20110919-0ubuntu1~ppa108:59
htorqueandyrock: thanks. will try again for a bit and then switch back to the PPA.08:59
andyrockhtorque, try to get the bt using the ppa08:59
htorquei haven't seen any crashes right now.09:00
htorqueandyrock: ok09:00
andyrockthx09:00
htorqueandyrock: meh, this gets rid of all -dbgsym packages. :-/09:01
andyrockhtorque, yeah....09:03
njpatelapinheiro, re: https://bugs.launchpad.net/unity/+bug/817691, it seems the a11y code uses unsetenv call after some threads are launched and that's not safe, do we need those calls?09:50
ubot5Ubuntu bug 817691 in unity (Ubuntu Oneiric) "[Oneric] unity-panel-service crashed with SIGSEGV in getenv()" [Critical,Confirmed]09:50
njpatelit seems to be okay to use them very early in the main() but not so good if we start threaded stuff (like gdbus), which calls getenv and can cause a race09:50
apinheironjpatel, hi09:51
njpatelapinheiro, hey :)09:51
apinheirohmm09:51
apinheirobut this is something new?09:51
apinheiroI mean, was crashing before09:51
apinheiro?09:51
njpatelnope, it's new in O09:51
njpatelapinheiro, in panel-a11y.c, there is g_unsetenv twice, is that required?09:52
njpatelbasically it's racing between the setenv and dconf starting in a thread09:52
njpatel(and doing a getenv)09:52
njpatelso, fun09:52
njpateland gettext obviously does getenv too09:53
apinheironjpatel, I will check it09:53
apinheiroI didn't write that code, was rodrigo09:53
apinheirobut in summary, it should be a g_unset before start the a11y stuff09:53
apinheiroand then a set to restore the status09:53
njpatelapinheiro, so, it's weird:09:53
njpatelin main, we do:09:53
njpatel  g_unsetenv("UBUNTU_MENUPROXY");09:54
njpatel  g_setenv ("NO_AT_BRIDGE", "1", TRUE);09:54
njpatel  g_unsetenv ("NO_GAIL");09:54
njpatel  panel_service_get_default();09:54
njpatel  a11y_init();09:54
njpateland that calls the unsetenv09:54
njpatelget_default() is loading the indicators etc, so they aren't goign to be effected by the unsetenv09:54
njpatelbut, yeah, please have a look. Ideally we wouldn't be doing (un)setenv's that late in the startup09:55
apinheirowell, for what it worths09:55
apinheirowe do that09:55
apinheiroin order to ensure that any child process will have the proper env09:55
apinheiroif this is not required09:56
apinheirowe could just avoid restoring the env on a11y_init09:56
njpatelI can't think it is with indicators, but if you could test that it doesn't cause regressions with the panel, I can make the change quickly in trunk09:57
apinheironjpatel, and afaik, there isn't any panel-service child process that would require a11y support, right?09:57
njpatelnope, none that I can think of09:57
apinheironjpatel, ok, I will move to this then09:57
apinheironjpatel, one question09:57
apinheiroto reproduce it09:57
apinheiroit happens all the times or it is a race condition09:57
apinheiroand just crashes sometimes?09:57
njpatelapinheiro, it's a race so very hard to reproduce10:04
apinheironjpatel, btw, could this also be a issue for unity-3d?10:04
njpatelapinheiro, at this point, I'd like to just test that there are no regressions when removing those two unsetenv calls, we can then send out a release for the people effected to test10:04
njpatelapinheiro, it could but I have yet to see one bug report. That could be due to do the different type of startup with compiz involved etc10:05
apinheironjpatel, ok10:05
apinheironjpatel, looking at the code in detail10:07
apinheirowe can remove   g_unsetenv ("NO_GAIL");10:08
apinheirobut10:08
apinheirowe can't just remove   g_unsetenv ("NO_AT_BRIDGE");10:08
apinheiroat panel_a11y_init10:08
apinheiroas if we don't do that10:08
apinheirothe atk bridge will prevent himself to be loaded10:08
apinheirowhen we load it by hand10:08
apinheironjpatel, one question10:09
apinheirocalling g_unsetenv is a problem if we do that10:09
njpatelmaybe we can move up the panel init to be before the panel_service init?10:09
apinheiroafter _get_default, right?10:09
njpatelright10:09
njpatelso can we move it to before?10:09
apinheirowell, my suggestion was similar10:09
njpatel:)10:10
apinheiroload the bridge before that call10:10
apinheiroand then, a different call to ensure that the a11y object hierarchy include the service10:10
njpatelright10:10
apinheiroI will try that and propose a branch10:11
njpatelthankd10:11
apinheironjpatel, is there a problem if panel_a11y calls panel_service_get_default during the intialization?10:22
njpatelapinheiro, is this after the unsetenv?10:22
apinheironjpatel, yes10:22
njpatelIt should be fine10:23
apinheironjpatel, ok, just trying to reduce the change to be as small as possible10:23
apinheirothanks10:23
apinheironjpatel, after a quick test with orca, it seems to keep working10:27
apinheiroand it is a small change10:27
apinheirojust move panel_a11y_init10:27
apinheiroto be called before10:27
apinheiro  service = panel_service_get_default ();10:27
njpatelapinheiro, okay, I can make that if you want, to avoid merge proposal etc etc10:27
apinheironjpatel, ok10:28
apinheiroalthough for the future, it would be good add a note like this:10:28
apinheiro//Note: panel_a11y_init needs to be done before service_get_default,10:29
apinheiro  // to avoid a race condition with g_unsetenv. Take a look to bug 81769110:29
ubot5Launchpad bug 817691 in unity "[Oneric] unity-panel-service crashed with SIGSEGV in getenv()" [Critical,In progress] https://launchpad.net/bugs/81769110:29
njpatelapinheiro, right, thanks :)10:29
apinheironjpatel, thanks to you10:30
=== Guest63578 is now known as jbache
=== MacSlow is now known as MacSlow|lunch
htorquesmspillaz: hi! is https://launchpadlibrarian.net/80602060/unity_crasher_better.log the crash when closing windows that's already fix comitted?11:41
htorquebug 856305 bug 85601511:42
ubot5Launchpad bug 856305 in unity "SIGSEGV in _XFreeEventCookies () when closing applications" [Undecided,New] https://launchpad.net/bugs/85630511:42
ubot5Launchpad bug 856015 in unity "crash on closing a window" [Critical,Fix committed] https://launchpad.net/bugs/85601511:42
=== MacSlow|lunch is now known as MacSlow
=== yofel_ is now known as yofel
=== Saviq is now known as Saviq_freenode
=== njpatel is now known as njpatel|flu
andyrockJohnLea, to avoid the delay what about guessing the content type using filename13:15
andyrock?13:15
JohnLeaandyrock; hyia13:15
andyrockof course only for "virtual" file13:15
racarrandyrock: Ping? JohnLea mentioned something you said about drag and drop in unity and some awkward delay?13:16
andyrockracarr, hi13:16
andyrockwell in Unity we use g_file_query_info to get the content type of every single file we are dragging13:17
andyrockfor locale files it works well13:18
andyrockbut dragging a browser (chrom* or firefox etc.) image13:18
andyrockg_file_query_info takes too time13:18
andyrockwe can use g_file_query_info to avoid the delay13:18
andyrocksorry13:19
andyrockto avoid the freeze13:19
andyrockbut we can't avoid the delay13:19
andyrockusing g_file_query_info13:19
andyrockthis is all... :)13:19
andyrockI can easily implement this behavior:13:20
racarrHmm. Ok. I will look in to it. (probably not this week...in london for a bit), but im doing some Dnd stuff next week13:20
andyrock1) if the file is a locale one use g_file_query_info13:20
andyrock2) if the file is not in locale guess the mimetype from filename13:21
=== m_conley_away is now known as m_conley
racarrThe thing is, firefox should be saying over XDnd what mime types the source can be...13:22
andyrockracarr, ok... we just uri/list stuff13:23
andyrock*just->get13:23
racarrso I don't think we have to use g_file_query_info at all to determine which applications can support I think13:23
racarrI can't produce any delay though actually even with a 12mb png13:25
racarrbut maybe the internet here is too fast :) I will have to look in to it more later. Thanks :)13:25
andyrockracarr, will you be online for a while?13:25
racarrandyrock: For a while yes. but I am at a sprint atm, so kind of distracted from unity so can't do any too serious looking in to it right now13:26
andyrockracarr, no problem... i just want to get a test and tell you the results13:27
racarrandyrock: Ok, great, thanks :)13:28
andyrockracarr, yw13:28
andyrockracarr, dragging and image using chrom* and using nux to get the dnd data i get:13:41
andyrockhttp://pastebin.ubuntu.com/695120/13:41
andyrockfirefox gives not (at lease using the nux interface) the type but something like x-moz-nativeimage13:45
racarrandyrock: Hmm. I will have to look in to the full code path here, I think something is definitely wrong is there is any delay...13:46
racarrif there is*13:46
=== API is now known as Guest9431
=== Guest9431 is now known as apinheiro
om26ersmspillaz, hi could you tell which crash was fixed with this branch https://code.launchpad.net/~smspillaz/compiz-core/compiz-core.fix_856015/+merge/76501 was it this crash bug 85147214:30
ubot5Launchpad bug 851472 in compiz (Ubuntu) "compiz crashed with SIGSEGV in _XFreeEventCookies()" [Critical,Confirmed] https://launchpad.net/bugs/85147214:30
om26erhtorque, your's is also the above crash I guess ?14:31
htorqueyeah :)14:31
smspillazwho doth ping me14:31
smspillazom26er: no14:32
smspillazom26er: it was a crash that could happen if an application unmapped a window as withdrawn, re-mapped it, and then closed it14:32
om26ersmspillaz, ok, i believe the above crash is also in compiz itself though14:33
htorqueom26er: anothter thing. can you explain what you mean with the 24px in bug 835989? i've seen that report before reporting mine, but didn't quite understand the description.14:38
ubot5Launchpad bug 835989 in unity (Ubuntu) "Launcher - does not hide if revealed from top 24px of the left edge of the screen" [Medium,Confirmed] https://launchpad.net/bugs/83598914:38
om26erhtorque, invoke launcher from the area top-left 24px and leave it without hovering over the launcher14:39
om26erthe bug has a video i think14:39
smspillazom26er: hang on14:39
smspillazuhhh14:40
smspillazXNextEvent crashing?14:40
om26erhtorque, i am going to make a new video for you14:40
smspillazthat's a NoCrash (tm) funciton14:40
smspillazom26er: let me look into what might failing in xlib14:40
om26ersmspillaz, oki doki ;)14:40
smspillazom26er: uhhh, so was xlib recently updated ?14:41
smspillazerr libX1114:41
om26ersmspillaz, no last update six weeks ago14:42
smspillaz:/14:42
om26erhtorque, http://videobin.org/+58l/5n4.ogg14:42
htorqueom26er: hm, but you didn't trigger the unhide in that area? you just left it while it was unhiding, which i suspected was the problem.14:43
htorqueom26er: oh, that crasher has a lot of dupes. i probably should have turned on the update-manager service (else you don't get apport popups). ;-)14:45
om26erhtorque, didnt understand what you mean?14:45
om26erhtorque, ;-)14:45
htorqueom26er: in the clip you added to the bug report you didn't reveal it like in the new one (more like i did in my bug: https://launchpadlibrarian.net/80589264/launcher-stuck.ogv - starting from below the top-left corner then going upwards to the panel area).14:47
om26erhtorque, both seem clearly the same to me14:48
om26erand i can reproduce the both way14:48
om26eralso Trevinho had some thoughts about it as well14:48
htorqueme too. i'll just wait. if this is fixed and i can still make it stuck, i'll just open a new bug. :)14:49
smspillazom26er: ok, I'm going to ask RAOF about that tomorrow. I'm suprised about: event=0x7fffa408d510) considering that its just a pointer to something on the stack14:49
* smspillaz thinks maybe we should allocate an array the size of XPending14:50
om26ersmspillaz, ok, thx14:50
Trevinhoom26er: about that bug I've still to check what we can do14:52
om26erTrevinho, it started just after the BFB was removed14:53
om26er*from panel14:53
Trevinhoom26er: ok14:58
Trevinhoactually I was thinking the same thing14:58
Trevinhochecking now14:58
MacSlowanybody here who knows or goes by the name Victor Eduardo ? please ping me15:01
om26erTrevinho, you might want to hold off jason assigned himself so making you aware to avoid duplicate effort15:02
Trevinhoom26er: I just study the thing quickly now15:04
Trevinhoif I can find something I'll change the bug infos ;)15:04
om26erokay :)15:04
Trevinhoom26er: do you like: http://www.youtube.com/watch?v=3nkNjhbGwTs ?15:22
shibataHi, all.15:29
om26erTrevinho, that looks interesting15:33
om26erTrevinho, can i haz the code for real testing?15:33
shibataCan anyone review merge request for #663776? https://code.launchpad.net/~cosmos-door/unity/fix-preedit-663776/+merge/7535015:34
om26erthen i'd be sure if its a distraction or attraction :D15:34
andyrockgord, in dash keyboard navigation space key and enter should have the same behavior15:42
Trevinhoom26er: the code is still on WIP, i've to push it somewhere... But it's bugged for maximized windows actually15:43
Trevinhohowever the animation is very fast, it shouldn't distract15:43
om26erTrevinho, oh, i'll hold off then though nice work so far15:43
Trevinhoand it's somethig requested on https://bugs.launchpad.net/unity/+bug/69177615:44
ubot5Ubuntu bug 691776 in unity (Ubuntu) "Fade effect when showing the menubar" [Medium,Confirmed]15:44
om26eryes, i know that15:44
Trevinhoom26er: also I guess it wouldn't be too hard to do what should be done according to the design that Mark pointed out: show the menus the more you're near to the panel15:54
om26erTrevinho, guess we can have this part sorted out nicely for the LTS then15:54
* om26er thinks Trevinho is in love with the panel ;)15:55
Trevinhoom26er: I don't love it so much, but it neeeds to be tuned! :)15:57
TrevinhoAnd so, here I am.15:57
andyrockom26er, https://bugs.launchpad.net/unity/+bug/75035816:06
ubot5Ubuntu bug 750358 in unity-2d "Launcher icons needs to be desaturated when Dash is open, and tinted with average wallpaper background colour" [High,Confirmed]16:06
andyrockfix released?16:06
om26erlooking16:06
andyrockom26er, thx16:06
om26erandyrock, not sure about "and gain a tint based on the average wallpaper colour."16:07
om26erfrom the bug report16:07
om26eri guess would be better if that screenshot could be accessed16:08
andyrockwell somethink like the dash16:08
andyrockJohnLea, ^^^16:08
JohnLeaandyrock; yes, basically exactly the same average background colour tinted material that is used for the Dash, Alt-Tab, etc...16:10
JohnLeaom26er ^^^16:10
andyrockwell now it has the same average background color16:10
om26erJohnLea, currently it looks like this http://videobin.org/+58o/5n7.ogg is that what the bug is about?16:12
om26ercan we call it fixed16:12
JohnLeaom26er; yes that looks fixed to me ;-)16:13
om26erandyrock, ^^16:13
om26erJohnLea, thx :)16:13
andyrockom26er, JohnLea thx one bug less... :)16:14
Trevinhoom26er: try this lp:~3v1n0/unity/fading-panelmenu (not tested if compiles :P)16:14
om26erTrevinho, i'll try that now ;)16:14
TrevinhoJohnLea: I've seen that the "bug" about showing the window buttons on pressing alt has been "fixed"... Is that really the designed solution?16:16
JohnLeaTrevinho; can you remember the bug #?16:17
JohnLeaTrevinho; you mean bug https://bugs.launchpad.net/ayatana-design/+bug/83627416:20
ubot5Ubuntu bug 836274 in unity (Ubuntu) "Pressing alt on maximized window does show menu but not window controls" [Medium,Fix committed]16:20
TrevinhoJohnLea: #83627416:21
TrevinhoAh, sorry.. .:P16:22
om26erandyrock, do you have any thoughts about bug 745707 ?16:25
ubot5Launchpad bug 745707 in unity (Ubuntu) "Launcher - Launcher should never autohide when the cursor is positioned over the Launcher" [Medium,Triaged] https://launchpad.net/bugs/74570716:25
andyrockom26er, if i'm not wrong this was a wanted behavior... so should not be so difficult use the old behavior16:25
om26erandyrock, now its not wanted it seems16:26
om26ercurrent behavior is really annoying16:26
andyrockom26er, i know16:26
andyrockassigned to me...16:27
andyrocki should work to an huge branch for device16:28
andyrockbug i should go now16:28
om26erandyrock, super16:28
om26erandyrock, the devices branch would probably be for LTS ?16:28
TrevinhoJohnLea: I asked that since talking with njpatel he told me that it actually was a non-bug (that's why I didn't fix it before)... So I'd need to know how to consider that...16:30
om26eri dont remember using alt+f, e etc for in window menus, what happened when you pressed the letter again, for example alt+f to open the menu and pressing alt+f again, did it close the menu or nothing happen?16:32
didrocksandyrock: it is wanted16:32
didrocksom26er: ^16:32
didrockstook a lot of time to get there16:32
didrocksand it seems the behavior regressed even :/16:33
om26erdidrocks, yes i added my findings to the bug report.16:33
didrocksom26er: basically, the original behavior was:16:34
didrocksom26er: put the mouse cursor in the launcher area (launcher hidden)16:34
didrockspress super to show the launcher16:34
didrocksrelease, the launcher should disappear16:34
didrocksif after you press super, you moved the cursor, the launcher shouldn't disappear16:35
didrocksthen another use case16:35
didrocksif you press on an launcher icon, and don't move the mouse, the launcher should disappear16:35
didrocksbut if you press, and in a 1s timeout, you move the mouse, the launcher shouldn't disappear16:36
didrocks(this is with a window under the launcher of course)16:36
didrocksom26er: makes sense? ^16:36
didrocksthe 1st behavior regressed, I guess it's because of nux events16:36
om26er"if you press on an launcher icon, and don't move the mouse, the launcher should disappear" this is problematic for me :/16:36
Cimi_Trevinho: I would abstract your code a little bit more16:37
Cimi_Trevinho: I would create a basic animation class16:37
om26erdidrocks, it was better in 11.04 for sure (but not ideal for me still)16:38
Cimi_Trevinho: that class will load callback functions on each frame, and will automatically skip frames if needed16:38
Cimi_Trevinho: I'm doing that for overlay scrollbars, for example16:38
didrocksom26er: this was like that in 11.0416:38
Cimi_Trevinho: I think it makes more sense than creating a class for Fade, a class for ... etc etc16:39
didrocksom26er: oh, and I forgot one case, if you press an icon, move the cursor outside of the launcher, there is no 1s timeout16:39
om26erdidrocks, i'll email your messages to andyrock so that he is also aware of the desired behavior16:39
om26erdidrocks, this last case seems not to be an issue in Oneiric16:39
Cimi_http://bazaar.launchpad.net/~ayatana-scrollbar-team/ayatana-scrollbar/trunk/view/head:/os/os-animation.c Trevinho16:40
Cimi_let me know what do you think16:40
didrocksom26er: so the only broken case from the desired behavior right now is "mouse in the launcher area with launcher hidden, press super, don't move -> should hide"16:40
didrocksom26er: thanks:)16:40
didrocksom26er: yeah, only the 1st one is broken16:40
om26erdidrocks, yw :)16:40
didrocksI really bet it's nux sending a "widget enter" events when the launcher move16:41
om26erand webapps dont seem fixed to me with latest bamf, i might be doing something wrong :/16:41
=== Cimi_ is now known as Cimi
didrocksom26er: only with chrome16:42
didrocksom26er: I mentionned it on the bug :)16:42
om26erdidrocks, and not chromium?16:42
didrocksnope :/16:42
om26erdidnt see your comment16:42
didrocksom26er: DBO will work on a patch16:42
* om26er downloads chrome :D16:42
TrevinhoThanks Cimi... I was thinking that too16:43
didrocksom26er: I wasn't that extreme to check it works, I believed DBO when we discussed it and I discovered it didn't work with chromium ;)16:43
Trevinhohowever since my code was just a draft I didn't worked too much on the design16:43
CimiTrevinho: basically, you could translate that class into C++16:43
om26erdidrocks, i'll test as it installs ;-)16:43
CimiTrevinho: then if you want, you could create a fadecontroller which uses the animation class and only works with opacity16:44
TrevinhoAlso I guess I'm moving back to g_timeout, since the nux timer seems too lazy16:44
didrocksom26er: if it doesn't work, blame him! :-)16:44
TrevinhoOk, thanks Cimi.16:44
=== Saviq_freenode is now known as Saviq
om26erdidrocks, will ;)16:44
CimiTrevinho: I don't know how to work well with C++, you're much better than me. Albeit that animation class is pretty solid16:44
CimiTrevinho: if you remove the objects or so, animation stops without segfaulting16:45
CimiI'm pretty happy for that piece of code16:45
Cimismall, light and functional16:45
Trevinhoah, nice :)16:45
TrevinhoI also handled that in a raw way, but it should work16:45
TrevinhoHowever maybe an an animation class which calls an animator object with a special method for doing the requested animation should work I guess16:46
Trevinhobut before writing nice APIs I've to make it work as I want :P16:47
Trevinhoalso C++ is not my favorite place to write, but that we must use :P16:47
Cimi1 class to deal with timings and objects, if you want 1 class for basic and shared animations16:48
TrevinhoOk... Howver I didn't implemented that until now16:48
CimiI know, I just want to optimize your code :-)16:49
Trevinhosince jay told me he would have handled this better in nux in future16:49
Cimidefinitely16:49
Trevinhoyes, thanks Cimi16:49
Cimidealing with animations in this way is pretty hackis16:49
Cimiand it's not so perfectly synced16:49
Cimibecause it goes through gtk main thread16:49
TrevinhoEh, that's our problem16:50
Cimiwell, glib not gtk16:50
Cimimaybe it0s better16:50
Trevinhoyes, of course16:50
Cimidefinitely something it's better to discuss at the UDS :-)16:51
Cimiespecially as we need to plan Nux 2.016:51
Trevinhoyes, I just talked a little with Jay about this16:51
Cimicool16:51
TrevinhoHowever he told me that with the current Nux I have to make redraw my widget at every change in the way I've done I guess16:52
TrevinhoCimi: about the other thing (i.e. the white icons)... Do you have any idea in how we could  improve them?16:53
TrevinhoThe fact is that we should both manage dark and white icons with the same mask16:53
CimiTrevinho: i'd like to see your code16:54
CimiTrevinho: how did you make it to have it correctly rendered for the kbd icon?16:54
TrevinhoCimi: my code doesn't work correctly for themes with dark icons...16:54
Cimioh ok...16:54
TrevinhoBut in that case I just applied a white mask over the icons16:54
Cimiright, got the point16:55
Trevinhousing the ADD method of Nux16:55
TrevinhoPLUS, sorry16:55
Trevinhohowever it's a GL_ONE, GL_ONE mask16:55
Cimimaybe we can do that with cairo, let me see16:55
Trevinhoso I jept cairo out16:55
Trevinhokept*16:55
Trevinhoyes, I guess... but I used nux to avoid to redraw the pixmap at all16:55
Trevinhowe just use a mask over with nux16:56
Trevinhoby the way the main issue is that if we can't catch the dominant color of an icon, we can't apply the right mask16:56
TrevinhoI didn't look to this too much, since I had no time, but I guess that if we can know what kind of icon we have, then we can apply the right mask...16:58
Cimimaybe CAIRO_OPERATOR_IN16:58
TrevinhoJust wondering by the way, I'm not that experienced with cairo...16:58
Cimimmm16:58
Cimiwell, I think I'm wrong16:58
TrevinhoI checked, but in the current code changing just an operator is not enugh16:58
Cimithe issue is that the icon has dark points, and not points with alpha = 016:59
Cimiso, it's a bit harder16:59
TrevinhoOk... I got a solution: ask designers to draw a mono icon :P16:59
htorqueprobably also difficult with the always changing multiload indicator icons?16:59
Trevinhosince we ship that by default, I guess it should be handled correctly17:00
Trevinhohowever Cimi another issue that I underlined in my yesterday's screenshot is that you can't draw an "active" icon... Like the blue envelope at the current state17:00
Cimiyep17:01
om26ermake does not work using trunk http://pastebin.ubuntu.com/695198/17:05
om26eris it complaining for nux trunk?17:05
Trevinhoso it seems17:08
didrocksyeah, it needs latest nux trunk17:10
didrocksbut it can run with older nux17:10
TrevinhoCimi: I've read your lib, it's nice17:25
TrevinhoI guess I could do the same... Also, not to create abstract objects or depending on  function pointers I guess I could use simply signals17:26
Trevinhothank you17:26
TrevinhoCimi: another thing you could add to the anumation is to make it animate until it reaches a defined peek... Like AnimateUtil.... Of course it could be done also using the cb function and checking for the current value, but managin it in the class would make it better I guess.17:30
CimiTrevinho: there's no need to a threshold17:32
CimiTrevinho: you have a float from 0 to 117:33
Cimiyou can now play with it and set your own logic17:33
Cimiit's not like you say "this animation does from 0 to 0.5", it's exactly as saying from 0 to 1 with a different timing17:34
TrevinhoYes, of course... I was just saying this from an API design point of view17:34
Cimiin what my library could be improved is adding apis to control parameters, but I added just what I needed17:34
TrevinhoOk17:34
TrevinhoI also would need to set a starting point....17:34
Trevinhoalso if.. I guess that I can manage that also on the callback17:35
Cimiespecially from the API point of view you should *not* add uneeded APIs, and changing the threshold looks line something unneeded, as you can do the same in the callback functio17:35
Cimiexactly17:35
Cimianimation is simply an abstract class that calls a function periodically, given a RATE, for a defined TIME, and calls the function with a float from 0 to 117:36
Cimiin the callback function you deal with the real stuff, leaving the animation class agnostic17:37
TrevinhoCimi: basically nux::TimerFuctor AddPeriodicTimerHandler would do the same... But I don't know why it's slower17:38
CimiTrevinho: maybe it doesn't skip frames?17:38
TrevinhoI guess it's bugged, but I didn't check the code17:38
Cimiok17:38
TrevinhoMh, no... It seems that calls the cb too late17:38
andyrockom26er, around?18:45
=== Saviq is now known as Saviq_freenode
TrevinhoCimi I've done my new implementation and works well ;)20:29
Cimicool20:29
TrevinhoI basically ported your lib, but using some slight differencies20:29
Trevinhofor example, now i can set the starting point of an animation20:29
Trevinhoto continue an animation interrupted in at a given point20:30
CimiTrevinho: you can do the same with my code20:30
CimiTrevinho: it's something you can handle in the callback function20:31
TrevinhoCimi: I know that...20:31
Trevinhobut I want control it when starting too20:31
CimiI think that starting an animation from a middle point does not make any sense20:31
Cimiit's like scaling an animation20:32
TrevinhoCimi it happens... Think... I'm fading out, then I need to re-fade it in....20:32
Cimiwhat do you want it to decrease the length for example20:32
TrevinhoI must start from the previous alpha value20:32
CimiTrevinho: doing the same in overlay scrollbars20:32
CimiTrevinho: when you hover them in an inactive window20:32
Cimithey are grey -> orange -> grey20:33
TrevinhoCimi: decreasing the lenght is duable, but I need more computations that my animator can do20:33
Cimitry it20:33
Trevinhohowever wait... I push the code in bzr20:33
CimiI need to think a little bit more about that20:37
Cimicause you can always store the weight float from the previous animation, before starting the new one20:37
Cimiso, maybe you're right20:37
Cimior maybe you can do the same with the callback function20:38
Cimiin any case, I don't know if it worth starting an animation from a middle point20:38
Cimiwhat happens to timing? imagine you set 1 second from 0 to 1, if you start from 0.5 will it take 1 second to reach 1? or 0.5?20:39
Cimiin theory I think the animation code should be agnostic20:40
Cimiand the fade callback function should handle this thing20:40
TrevinhoCimi: well... The fact is, as you say, the callback should then store the starting value and use it to check the new value at every callback.20:53
TrevinhoBut I'd prefer  it to do on the base class.20:53
donrihi, can i get back non-global menubar somehow?20:54
CimiTrevinho: the base class is less abstract, then20:55
donrii recall there was some envvar during early devel?20:55
CimiTrevinho: that's why I think it's better to keep it in the callback20:55
CimiTrevinho: otherwise you need to store it everytime, even when it's not needed20:55
CimiTrevinho: so, it's even less optimal20:55
Cimidonri: export UBUNTU_MENUPROXY=020:56
TrevinhoI know, but I've to do compromises :)20:57
Cimianyway, let me see the code20:57
Cimimaybe it's nicer as you say20:57
donrithanks20:58
TrevinhoCimi: lp:~3v1n0/unity/fading-panelmenu21:05
Trevinhothe code in the panel should be better, but this was just my first draft21:06
CimiTrevinho: you're not checking for current running animations when setting rate and duration. I'm not sure wheter they should be stopped or if it's in charge of who calls those functions to stop the animation before21:11
TrevinhoCimi: you're right...21:13
CimiTrevinho: hold on, I'm not sure21:13
TrevinhoSince I wasn't using them, I just focused me on the rest and I just left there the default implementation21:13
CimiTrevinho: I mean, could it be possible that someone wants to reduce the duration?21:13
Cimiin realtime?21:13
Cimibut then, if someone wants that, it will screw the weight21:14
TrevinhoMh, It could be possible... but also stopping the animation and restarting it with different values21:14
Cimias the time diff will immediately change21:14
Cimiso, I'm tempted to say let's stop it21:14
TrevinhoI don't remember if you were stopping them21:14
Cimifrom coding style, I'd use MAX/MIN in Start()21:16
Cimiinstead if progress < 0 -> progress = 021:16
Cimiprogress = MAX (0, progress)21:16
Cimior CLAMP if you want to clamp it21:17
TrevinhoWell, yes but since it's a C-ism.... I was avoidng it21:17
=== m_conley is now known as m_conley_away
CimiOH OK21:17
CimiI am a c++ newbie21:17
Trevinhobut the unity code is not completely clean21:17
Trevinhowe mix everything there21:17
TrevinhoSurely it's not everywhere beautiful to read, but it works :P21:18
andyrockCimi, we know you're a c++ newbie and a python lover ;)21:18
andyrockahahah21:18
* Cimi hits andyrock21:18
CimiTrevinho: I still think the idea of starting an animation in the middle is a bit weird :-\21:19
TrevinhoAbout the fading timings...  I currently set...21:19
Trevinho_fade_in_animator = new Animator(200, 150);21:19
Trevinho _fade_out_animator = new Animator(200, 400);21:19
TrevinhoBut maybe a change every 5ms is too high for fast animations? isn't it?21:19
Cimi200??? °_°21:20
Cimi30 FPS is fine man21:20
Cimidon't kill our CPUs :-)21:21
TrevinhoOhhh ok :)21:21
TrevinhoI want smooth things! :D21:21
CimiTrevinho: your monitor refreshes at 60 FPS21:21
CimiTrevinho: 200 are useless21:21
Trevinhook, you're right :D21:30
TrevinhoCimi: in the bug related to the fading menu entries, Mark said that the wanted design behavior is to show the menus the more you are near to the panel...21:30
TrevinhoIs this still valid?21:31
CimiI can ask him21:31
Cimihe's online21:31
CimiTrevinho: link to bug report?21:31
TrevinhoCause I think that is doable right now...21:31
Trevinhowait21:31
TrevinhoCimi: https://bugs.launchpad.net/unity/+bug/69177621:32
ubot5Ubuntu bug 691776 in unity (Ubuntu) "Fade effect when showing the menubar" [Medium,Confirmed]21:32
CimiTrevinho: do you have an input window near it?21:34
TrevinhoCimi: I don't but, I guess that compiz gives us the mouse position... I've to check... Anyway also maybe slower but working gdk event filter would do the job21:36
CimiTrevinho: I know, but i'd like to avoid that21:36
CimiTrevinho: i'm not keen on tracking mouse position21:37
TrevinhoMh, well... We don't have many other possibilities I guess. An event window that doesn't grab anything should be fine, by the way21:39
CimiTrevinho: let's ignore it for the moment21:45
CimiTrevinho: I'all afk a bit, quite tired...21:45
TrevinhoOk... Thank you Cimi... See ya21:46
Cimiyup ;)21:46
andyrockDBO the indicator menus should be shown at f10 pressed or f10 released?22:10
DBOreleased22:10
LirodonHello22:11
andyrockDBO, can i ask you why? :) I'm curious for no other22:12
andyrockLirodon, hi22:12
DBOandyrock, so if you uhhhh no idea22:12
andyrockDBO btw if i keep the f10 key pressed weird things happen...22:13
DBOyeah thats weird22:13
andyrocklet me give a look to it22:13
LirodonI'm trying to get some traction going on a GRUB redesign22:14
DBOits cycling22:14
DBOits the same thing as holding aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa22:14
DBOlike that22:14
DBOso its just getting fuckloads of "show" calls22:14
Lirodonhttp://i.imgur.com/TgxQv.png i.e. this.22:15
LirodonI was told this would be possible in GRUB222:18
andyrockLirodon, maybe this is not the right place to speak about this22:24
Lirodonandyrock, Isn't Ayatana related to design?22:24
Lirodonor is that just the desktop design?22:24
LirodonCause well, #ubuntu-artwork is inactive, and someone in #ubuntu-devel suggested I try here (even though I personally think that something like this would be a cross between artwork and devel)22:25
andyrockLirodon, i think it is just dekstop design...22:25
LirodonThough, since your work has helped "define" the current look of Ubuntu as a whole, getting input from here can be valuable too22:26
=== Lirodon is now known as Viper550
Viper550I'm gonna try and see if I can start making that for real, I'm downloading the 11.10 beta now22:35
=== yofel_ is now known as yofel

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