/srv/irclogs.ubuntu.com/2011/06/02/#ayatana.txt

=== Saviq is now known as Saviq_afk
=== Saviq_afk is now known as Saviq
=== Saviq is now known as Saviq_afk
=== Saviq_afk is now known as Saviq
=== Saviq is now known as Saviq_afk
=== _LibertyZero is now known as LibertyZero
didrocksgood morning07:58
oSoMoNgood morning08:04
=== zyga-afk is now known as zyga
=== Saviq_afk is now known as Saviq
=== gabon_ is now known as gabon
andyrockjcastro, hi jorge13:07
jcastrohi andyrock!13:21
andyrockjcastro, welcome back13:23
andyrockjcastro, can i tag a bug as a bitesize one?13:23
=== gabon_ is now known as gabon
jcastroandyrock: by all means!13:47
jcastroandyrock: did you see I made a template?13:47
jcastrohttps://wiki.ubuntu.com/Unity/FilingBugs#Canned "Call for Help" Template13:48
jcastrothat way you can add some guiding information to a bug report13:48
andyrockjcastro, thx13:50
=== bregma_ is now known as bregma
=== kenvandine_ is now known as kenvandine
=== m_conley_away is now known as m_conley
andyrockDBO, i need mouse position in Launcher.cpp but cannot use GetMouseX and GetMouseY, can i get mouse position using nux?14:34
DBOandyrock, _mouse_position.x/y14:35
andyrockDBO, i try to explain14:36
andyrockDBO, first of all: https://bugs.launchpad.net/unity/+bug/76933514:36
ubot5Ubuntu bug 769335 in unity (Ubuntu) "Launcher tooltips sometimes don´t show" [Low,In progress]14:36
andyrockDBO, well in my opinion the problem is here:14:36
andyrock/ as the leave event is no more received when the place is opened14:37
andyrock    self->SetStateMouseOverLauncher (false);14:37
andyrockin void Launcher::OnPlaceViewHidden (GVariant *data, void *val)14:37
andyrockif the mouse is over the launcher when the place view is hidden14:38
andyrockwe have to call self->SetStateMouseOverLauncher (true);14:39
andyrockusing GetMouseX/Y we cannot say if the mouse is over the launcher when the place view is hidden14:40
DBOah yeah that is a problem14:40
DBOso to fix this what I think we need to do is not make places grab the mouse internally to nux14:41
DBOso mouse events still kinda go around normally14:41
andyrockDBO, ok...14:42
DBObasically this problem should just magically go away when we change the mouse grab strategy in nux14:43
andyrockDBO, so I can not help it :)14:46
DBOmore or less :/14:46
=== rodrigo__ is now known as rodrigo_
Andy80hi :)15:11
dcordesHi15:12
dcordescan somebody have a look at bug 791852 ?15:12
ubot5Launchpad bug 791852 in unity-2d "unity-2d: does not parse QT_GRAPHICSSYSTEM env var" [Undecided,New] https://launchpad.net/bugs/79185215:12
Andy80nerochiaro: ping15:19
nerochiaroAndy80: ciao15:19
Andy80nerochiaro: ciao :)15:20
Andy80nerochiaro: I'm trying to work to bug #715611 and I've a couple of question, do you have any spare minutes?15:20
ubot5Launchpad bug 715611 in unity-2d "[launcher] Trash icon should indicate when it has deleted elements" [Medium,Confirmed] https://launchpad.net/bugs/71561115:20
nerochiaroAndy80: sure, go ahead15:21
Andy80nerochiaro: first of all, I've an idea of how to implement it... don't know if you have followed my comments on the bug... shortly I think I'm going to use QFileSystemWatcher to see if the trash folder is changed and maybe list files to see if it's empty or not15:22
Andy80what do you think about it?15:23
nerochiaroAndy80: it can work, but have you looked at how Unity implements it ? (i have not, but maybe they use some other APIs from gnome that make it simpler)15:24
Andy80nerochiaro: I've given a look to this http://bazaar.launchpad.net/~unity-2d-team/unity-2d/trunk/view/head:/launcher/UnityApplications/trash.cpp15:24
Andy80nerochiaro: but I want to be clear... I WON'T use any function starting with g_ ;)15:25
Andy80it looks like a copy-paste from unity-3d code15:25
Andy80for many functions we could have coded in pure Qt with lot less code15:25
Andy80maybe there could be a signal sent to dbus that says something about it....15:26
nerochiaroAndy80: well, the problem with the trash is that it's not just one folder, if i understand gnome documentation correctly15:27
Andy80nerochiaro: yep, I've read specs yesterday. It's basically a folder with deleted files and another folder with a list of deleted files information15:28
Andy80nerochiaro: we just need to know if the trash is empty or not15:28
Andy80to decide which icon to display15:29
nerochiaroAndy80: there can be multiple trashes (for example one for each partition), and there's a GIO API to view them as a single unified trash. i understand your desire to avoid mixing QT with C code, but it will acutually save you time to use g_ functions in this case I think15:30
* Andy80 cries :°°°15:31
nerochiaroAndy80: http://developer.gnome.org/gio/unstable/ch27.html#id494961 and http://www.ramendik.ru/docs/trashspec.html are useful15:32
Andy80but... using that API I can neither use the QFileSystemWatcher method... it would not work15:32
nerochiaroAndy80: no, you have to use GIO APIs there, with the trash:// URL. i understand it's not pretty but the fact is that we are a QT application on top of a gnome system, so sometimes you need to call into gnome APIs15:33
Andy80nerochiaro: ok, I'll use that API then. Another question: the icon is simply set returning the "Icon" method with "return "unity-icon-theme/user-trash";" ? So I would need to change that returning value?15:35
nerochiaroAndy80: yes, depending if the trash is empty or full. and where in your code you detect when it changes from empty to full you probably want to emit the signal that tell that the icon has changed so that QML can request the new one15:36
Andy80nerochiaro: what is the other icon name? and... does already exist that signal to emit or do I have to define it?15:37
nerochiaroAndy80: looking into it15:37
nerochiarooSoMoN: please have a look at the discussion with Andy80 so far, in case you have other comments15:38
nerochiaroAndy80: there's an "iconChanged" signal you can emit when it changes15:40
Andy80nerochiaro: cool!15:40
oSoMoNnerochiaro: looks good to me, it looks like Andy80 is on track to fix the bug :)15:40
Andy80ok, let me manage some basic stuff first (I still have to try recompiling unity-2d without any modify, then I want to try to add the first stub of code ecc.....)15:43
nerochiaroAndy80: if you just want to change the icon, you can use http://developer.gnome.org/gio/unstable/GFile.html#g-file-query-info to query for the standard::icon attribute of the trash:// "file"15:43
nerochiarothis will give you the icon that you can return from the icon() method of LauncherItem15:43
nerochiaroAndy80: and use http://developer.gnome.org/gio/unstable/GFileMonitor.html on trash:// to see check when files are added and removed to it and emit the signal that iconChanged()15:45
Andy80nerochiaro: I'll give a look at it, just give me some minutes... the 28°C in my room are not helping me to concentrate :D15:45
nerochiaroAndy80: i think i have given you all the clues I had :) take your time (and some water ;))15:45
Andy80nerochiaro: isn't better to use directly this to check if something is added/deleted http://developer.gnome.org/gio/unstable/ch27.html#id494961 ?15:45
andyrockDBO, about the "tooltip bug"...15:47
DBOyeah?15:47
andyrockwe can use something like this:15:48
andyrockself->SetStateMouseOverLauncher (pointerX < self->GetAbsoluteGeometry ().x + self->GetGeometry ().width &&15:48
andyrock                                     pointerY >= self->GetAbsoluteGeometry ().y);15:48
andyrockand when nux grab pointer startegy change15:48
DBOyep that should work as a temporary fix15:48
andyrockwe'll remove it15:49
andyrocki have to add a fixme comment?15:49
DBOyeah15:50
nerochiaroAndy80: ah yes, good point15:50
nerochiaroAndy80: actually, isn't it the same thing i suggested ? ;)15:51
Andy80nerochiaro: yes it is! for that reason I could not understand why you suggested me two different things :)15:51
NafaiDBO!  ltns!15:54
nerochiaroAndy80: that is for monitoring. i also suggested you how to properly get the icon for full/empty trash15:54
Andy80nerochiaro: yeah, that is the other thing I've to do of course )15:55
Andy80:)15:55
njpatelcdbs, what do you want done with https://code.launchpad.net/~bilalakhtar/unity/make-compilation-strict/+merge/62073?16:17
Andy80nerochiaro: trying some code inside trash.cpp.... the compilation of trash.cpp passes but later some tests in launchermenutest fail. Do I have to add anything in the testsuite for each method/function I add?16:22
nerochiaroAndy80: not really sure. agateau added them IIRC16:23
Andy80mmm...16:23
Andy80I need to understand how these tests work or this will block the compilation of code, damn it -.-16:31
Andy80ok... found how to avoid compilation error (for the moment)16:44
OmegaAndy80: Pff, it's 32°C here all year round :P17:19
Andy80Omega: where :) ?17:23
OmegaAndy80: close to the equator, tropics :>17:31
Andy80wow :)17:32
OmegaI'm not complaining though, it's nice.17:33
Andy80I hope at least you're close to the sea! so you can swim sometimes17:33
OmegaI do! I was at the beach yesterday!17:33
OmegaAruba, we have really nice beaches.17:33
Andy80oh Aruba! like the name of one our national ISP :D17:34
OmegaHah!17:34
Andy80not only a tropical paradise if I remember well... also a fiscal paradise :D17:34
OmegaHah :>17:34
OmegaSo, you're in italy I assume17:34
Andy80ahahaha yes ;)17:35
* Andy80 wonders why when we talk about not paying taxes, people always think to Italy :D17:35
* Omega thought italy because of the ISP called aruba :P17:36
Andy80a question: I cannot access a Qt/class property from a C function inside a Qt class?17:44
Andy80(very cryptic question I know... maybe it would be better if I pasted the code somewhere....)17:44
DBOandyrock, I am reviewing your tooltip work now18:13
DBOis there anything you want me to look at closer?18:13
DBOalso, I dont really know who you are, so I would love to hear your FOSS history :)18:14
DBOlike to know who I am reviewing and all18:14
andyrockDBO, i am Andrea Azzarone18:14
DBOis that italian?18:15
andyrockyes...18:16
DBOwe have several italians working on Unity, dont know what it is about Italy that generates such fine programmers18:16
andyrockdo you remember the man who stole you the function to change launcher icon size? :)18:17
DBOoh man, feel like an idiot now18:17
DBOmy brain just placed you18:17
DBOsorry about that18:17
andyrockdon't worry... you rock :)18:18
DBO(you should have seen how long it took me to figure out njpatel == AWN guy)18:18
DBOthe tooltip branch works excellently18:18
DBO1 second is too long18:18
DBOI am going to make it 500ms18:19
DBOmerging away :)18:19
andyrockDBO = The Jason = Docky :)18:19
andyrockThanks...18:19
andyrockin a comment mark said 1 second... i dont'know18:19
DBOhes silly18:20
DBO1 second sounds short18:20
DBObut its actually a REALLY long time18:20
andyrockI agree18:22
andyrockI only run 'orders' :)18:22
DBOI like to change see stuff and see how hard I get smacked18:23
DBOits fun18:23
DBOandyrock, two branches landed in 30 seconds, well played18:24
andyrockDBO, thx! is a plesure for me18:25
DBO3 branches18:27
andyrockthe last merge proposal is a very old one! :)18:29
jcastroyeah!18:43
jcastrohttp://wiki.documentfoundation.org/ReleaseNotes/3.4#GUI18:43
jcastroman18:47
jcastrohttp://www.omgubuntu.co.uk/2011/06/drag-and-drop-google-docs-uploader18:47
jcastroDBO: check that out18:47
DBOseen it :)18:48
jcastro"The big change in this version is that the launcher icon now supports drag n’ drop uploading of documents to Google Docs, and opens newly uploaded file automatically as a ‘web app’."18:48
jcastrothat's just HOT.18:48
jcastroDBO: hey, if you can explain to trevino better how you want that webapp matching bug fixed I would love you18:48
DBOwill do shortly18:48
OmegaDBO: some people still don't know you're deebeeoh20:07
DBOi fly under the radar20:07
OmegaAlso, that reminds me, jcastro, when's the team AMA coming? :>20:08
jcastroprobably midcycle20:08
jcastroit would be boring to do it now20:08
OmegaYeah, that's what I just thought too20:11
Omeganeeds more controversy, so it's more fun20:11
NafaiDBO: perhaps you could help me!20:40
DBOmaybe20:40
DBOwhats up?20:40
NafaiI'm trying to write a patch to Unity to pop up a launcher's quicklist when you hit Super + Control + Number20:41
Nafaibut I can't get keyboard navigation working20:42
Nafaihttps://code.launchpad.net/~nafai/unity/quicklist-shortcut20:42
jcastrofyi, alt-f1, then arrow key down, and then right  arrow will do a quicklist shortcut20:46
jcastrothough you probably already know that20:46
Nafaiyeah20:48
NafaiI wanted something more direct :)20:48
_alazarHi everybody, does anyone know if the unity launcher will always be panel like? I mean, docky (for example) is toggleable, between panel and dock. Will it be possible with the u' launcher?21:51
Saviq_alazar: you mean right/left edge vs. bottom edge? I believe I've seen some code (at least in unity-2d) that signalled support for any of the edges22:13
Saviqbut don't hold me on that22:14
Andy80nerochiaro: it (almost) WORKS!!!! :D22:17
=== m_conley is now known as m_conley_away
NafaiI think I scared DBO away22:18
DBOfailure to ping22:18
DBOuhm22:18
DBOreading backlog22:18
DBOhmmm interesting problem there22:19
DBOlet me get back to you on that22:19
_alazarSaviq: No no, I mean the launcher now goes from edge to edge, just like selecting the panel option in docky. But, I want unity to act more like a dock, not a panel (fixed size that grows when there are more icons inside), like a no-panel docky.22:20
Saviqah understood, I don't think that the current design has that in store22:21
Andy80guys I need your help for a very common task I suppose (at least for you): I've to test some changes to the unity-2d launcher, but if I launch the version I've compiled, the old one is still in memory. If I kill the old one in memory it's launched again.. in this way I've always two launchers running (both the old and the new version) and I cannot test the new one properly. How can I manage this?22:22
NafaiDBO: np :)22:23
SaviqAndy80: either disable the launcher autostart in gnome-session-properties22:26
Saviqor remove "Autorestart" or whatever the key is in /usr/share/app[...]-launcher.desktop22:27
Andy80Saviq: it's not visible in gnome-session-properties22:28
SaviqAndy80: ah it might be a requirement in gconf22:29
Saviqso try in gconf-editor in /desktop/gnome/session or similar22:29
Saviqcan't remember the exact key22:29
Andy80let me see..22:31
Andy80uhm...nope can't find it22:32
Saviqthen go to /usr/share/applications/22:32
Saviqfind the launcher .desktop file22:32
Saviqand comment out / remove the autorestart line22:32
Andy80but.... maybe I've another idea: since I'm modifying the original source code and debian/ is present... isn't there a way to rebuild the .deb packages and install them?22:32
Saviqyeah, but that's probably not efficient when testing22:33
Saviqyou can always reinstall the original package to get the file back22:33
Andy80ok... I try putting the Autorestart to false22:34
Saviqyup, but you'll have to restart your session22:34
Saviqit's X-GNOME-AutoRestart22:34
Andy80Saviq: oh ok! I restart my session.... how do I know that it fill start at least the first time? without it I won't be able to launch anything if it fails to start22:36
Saviqit will22:36
Saviqthat's X-GNOME-Autostart for you22:36
Andy80Saviq: ok, now X-GNOME-AutoRestart=false22:37
Andy80Saviq: I can't see Autostart in the same file, but I assume the default is to true (I hope)22:38
Saviqno it's not22:39
Saviqbut it should be there22:40
Saviqah no, it's started by the session22:40
Andy80yeeeeeeeeeeeeeeeeeeeeeahhhhhhhhhh22:40
Andy80it woooooooorks ^___^22:41
Saviqgood22:41
Andy80bug #715611 almost fixed :P (need to test again!!!)22:41
ubot5Launchpad bug 715611 in unity-2d "[launcher] Trash icon should indicate when it has deleted elements" [Medium,Confirmed] https://launchpad.net/bugs/71561122:41

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