/srv/irclogs.ubuntu.com/2012/11/20/#ubuntu-unity.txt

cariveriyea . pretty funny. at least I could logout normally.00:00
bschaefercariveri, if you mess up the current build you can remove the locally built one by rm ~/.compiz-100:01
bschaeferthen doing a unity00:01
cariveriok. Launcher::RenderIconToTexture() <-- how do I manipulate the position? if thats done, then drawing my subIcon could be easy.00:05
bschaefercariveri, it uses Base position, soo it depends on what is doing the renderering, which is why you see 0,0 for the geo x,y00:06
cariveriok. Im trying to mess around a bit more.00:12
cariveriok. I manipulated all the zeros and ..nothing happened.00:16
bschaeferwell...which zeros?00:17
cariverialmost all of them. ;)00:17
bschaeferhaha00:17
cariveristill inside the Launcher::RenderIconToTexture00:17
bschaeferhmm,   GfxContext.QRP_Color(0,00:18
bschaeferthose zeros didn't change anything?00:18
bschaeferand the geo00:18
bschaefer  nux::Geometry geo(0, 0, texture->GetWidth(), texture->GetWidth());00:18
bschaefernote, this RenderIconToTexture takes an icon and makes a box for the icon texture00:19
bschaeferwhich then the launcher places00:19
bschaefer(so changing those 0s' will just mess with the textures position in this box that will be placed in a spot the launcher determines)00:19
cariverigod bless just drawing another Launcher is easy here :) man why did I study computer science if dont get this done!00:20
bschaeferlook at00:21
bschaeferline 1922 in Launcher00:21
bschaeferyou see the nux::Geometry(bkg_box.x, (*rev_it).render_center.y - 3, bkg_box.width, 2)00:21
* bschaefer thinks this could be where that 'box' gets placed00:21
bschaefercariveri, haha, this isn't computer science as much...(believe me, this graphics stuff is hard)00:22
* bschaefer has a CS degree00:22
cariveriby the why your line numbers dont match mine :) but I did find the  - 300:24
bschaefernice...you were using unity/5.0 right?00:25
bschaeferor turnk00:25
cariveri5.000:25
bschaeferthats why :)00:25
bschaeferso the nux::Geo is just a rectangle00:26
bschaefer(x, y, width, height)00:26
cariveriit must be possible to do this Paint2DQuadColor step again with offset and other Icon, but I cant see how.00:27
bschaeferyes, you will need to setup your own "Draw" function...00:28
bschaeferso you will have to create your own little "launcher"00:28
bschaeferhmm00:28
bschaeferyou would have to do a lot of work with that htough00:28
bschaeferthough*00:28
cariverimaybe this is not the way to go.00:29
cariveriDidnt you say there is a possible to pass the LauncherIcon to the Quicklist?00:29
bschaeferthe LauncherIcon opens the Quicklist00:31
bschaeferif you right click it, look under LauncherIcon00:31
bschaeferRecvMouseClick00:32
bschaeferan Activate00:32
bschaeferand*00:32
cariveriyes. and if the LauncherIcon had a subIcon (or list) how would I insert it to those entries?00:32
bschaeferto the quicklist?00:33
cariveriyes. ql_item = new QuicklistMenuItemLabel(menu_item (Icon here in stead?) , NUX_TRACKER_LOCATION)00:33
cariveriI could create a QuicklistMenuItemICON class. those have a Draw() function.00:34
bschaeferyou'll have to figure out how it is added...I looked into that...00:34
bschaeferonce00:34
* bschaefer doesn't know much about how quicklist get their list00:35
bschaeferi know it uses dbus00:35
cariveriit all does not matter, If ...00:36
bschaeferfigure out who makes a QuickListMenuItem00:36
cariveriwell, the OpenQuicklistMenu is fair enough. it adds in the items.00:38
cariveribut its entries are very simple. the Item's draw functions simply draw text. and I dont know how to draw the LauncherIcon then either :(00:39
bschaeferyou'll still have to figure out how the icons use the IconRenderer00:40
bschaeferand the RenderIconToTexture00:40
bschaefer(possibly inherit from the launch?)....that file is huge though and it might assume a few to many things...00:41
cariverithats why modularization is a very nice thing. A dummy as I could come and reuse a draw function! :)00:41
bschaeferso you'll have to figure out how to make a minimalist launcher, that can hold, activate, (possibly drag/drag, possibly quicklist)...00:42
bschaeferand render00:42
bschaeferbut I need to get some of my own work done, good luck on the work!00:42
cariveriyes sure. thanks anyway.00:42
cariverimaybe youve got an email adress of this matrix' author for me?00:43
bschaefermatrix?00:43
cariverithere must be a designer of this code.00:43
cariverisomeone who had a first thought on the structure.00:43
bschaeferyou mean the Launcher? He no longer works on unity00:44
cariveriNot even available for questions?00:44
bschaeferhmm im not sure what his current email address is anymore00:45
bschaeferhis name is on top of that file00:45
cariverijason hmm. canonical.com.00:46
cariverimaybe I give it a try.00:46
bschaeferhe doesn't work for canonical anymore00:46
cariveriso that wont work.00:46
cariveriok. I feel like giving up for today.00:51
cariveribut thank you ver ymuch for all your time00:51
bschaeferyour welcome, sorry I couldn't have helped more...feel free to email me more questions00:53
bschaeferand I should have more time to help out in a few days00:53
cariverivery nice. Ill retry certainly.00:54
cariveriwhere do I email'?00:54
bschaeferbrandon.schaefer@canonical.con00:54
bschaefercom*00:54
carivericool.00:55
cariveriso have a good night! I really need to sleep.00:56
bschaefergood night!00:56
=== fenris is now known as Guest34244
=== fenris is now known as Guest9079
kortsimy launcher icons often disappear, but after a re-login they are again just fine however, I would not like to logout every time this happens so is there a way of re-loading the launcher without a logout/login?08:37
Squarismis it safe to step unity version in say ubuntu 12.04?08:45
=== mmrazik is now known as mmrazik|lunch
=== _salem is now known as salem_
=== mmrazik|lunch is now known as mmrazik
ppdhi, from a programmers point of view: What is the "right" way to do fullscreen gtk apps and keep unity's tandard on screen keyboard (onboard) stil above the gtk application? Or is there no such way?11:45
=== dandrader is now known as dandrader|afk
=== mdeslaur_ is now known as mdeslaur
=== dandrader|afk is now known as dandrader
=== gatox is now known as gatox_lunch
=== mmrazik is now known as mmrazik|otp
=== dandrader is now known as dandrader|lunch
MCR1didrocks, sil2100: Hi :) Are you here ?14:25
didrocksMCR1: in a call :)14:26
MCR1I got 2 lp:compiz MPs with multiple *very-minor* speed and memory usage improvements I would like to see some comments on:14:27
MCR11. https://code.launchpad.net/~mc-return/compiz/compiz.merge-performance-do-not-assign-values-that-are-never-used/+merge/13515014:27
MCR12. https://code.launchpad.net/~mc-return/compiz/compiz.merge-performance-improvements-prevent-unnecessary-operations-if-we-return/+merge/13480514:28
MCR1I vote for every little improvement possible to be made, but others have differing opinions on that...14:29
MCR1Thinking about mobile performance I think no optimization can be small enough to not be made...14:30
=== mmrazik|otp is now known as mmrazik
sil2100MCR1: here, but on lunch right now ;)14:41
MCR1sil2100: Enjoy your meal then && please ping me later ;)14:43
=== gatox_lunch is now known as gatox
MCR1smspillaz: Oh, Sam - Hi :) I did not know that you are online also... 8-) Please judge on these 2 branches above ^^14:56
MCR1smspillaz: Zhx :)14:56
MCR1aehm Thx14:57
sil2100Back!15:02
MCR1sil2100: Then you can join the discussion (which seems to be heating up) ;)15:04
sil2100Discussion?! Where ;)?15:05
MCR1please look @ the 2 MPs I posted above ^^ ;)15:05
MCR1sil2100: & Welcome back !15:06
sil2100Let me check that15:07
MCR1thx15:07
mvoTrevinho: I noticed that you set yourself as reviewer for lp:~mvo/unity/sc-launcher-integration-fixes - thats great - please note that I'm happy to tweak the approach as needed, its a first iteration and I'm not too familiar with the unity codebase etc. I am right now looking at making it a bit nicer c++ (i.e. not changing _bamf_app directly but using a setter). alternatively we could move the logic out and add a additional dbus call like "Cha15:28
mvongeLauncherByID" or something that would switch from the temp desktop file to the real desktop file15:28
bregmais anyone looking at the constant test suite failures in the unity-team-staging PPA?15:49
didrocksbregma: not that I know of, I pinged yesterday about the it15:55
didrocksdidn't get the time to investigate though :/15:55
Trevinhomvo: ah, I didn't see this mention... Sorry, however...16:00
Trevinhomvo: I was thinking that SoftwareCenterLauncherIcon::GetActualDesktopFileAfterInstall could be improved16:00
mvoTrevinho: totally, happy to implement any suggestions, first iteration etc16:00
Trevinhomvo: it would be better if the daemon would send: the desktop-id of the app16:01
Trevinhoso that you can just use GetDesktopPathById to retrive the desktop file16:01
mvoTrevinho: oh, I need to look how the Id is generated, note that the desktop file is not available yet when the install starts. i.e. its just a temporary one generated to fill in until the app is actually installed, then the temp one is replaced with the real one16:02
Trevinhomvo: yeah.. However the .desktop id is generated using an algorithm you can also check in our implementation of DesktopUtilities::GetDesktopID16:03
Trevinhomvo: basically what you do is fine, but you're using the "__" as path separator, while the desktop-id protocol define that just using a dash means that the .desktop file is in a sub-folder16:04
Trevinhomvo: ie, a kde app can be kde4-kate.desktop16:04
Trevinhothat would mean that it's under /u*/sh*/apps*/kde4 ...16:04
Trevinhoor ~/.local in case user already customized it :)16:04
mvoTrevinho: sweet, good to know. I will update accordingly16:04
Trevinhomvo: another thing.. instead of adding FRIEND_TEST(TestSoftwareCenterLauncherIcon, DesktopFileTransformTrivial); and making unity directly depending on gtest when building, just mock the class in the tests so that you cana ccess to protected members (or, just add a friend  class TestSoftwareCenterLauncherIcon; definition in the header)16:06
mvoTrevinho: nice, thanks. I wll address that as well16:09
Trevinhomvo: per se it wouldn't even needed to exchange the bamf-app... Just updating the icon-uri would be enough... The problem is that if the .desktop file is in temp and gets removed after install, we'll go into troubles...16:10
mvoTrevinho: that is exactly the issue why I exchange it16:11
mvoTrevinho: plus exchanging it means that the desktop file points to the one that belongs to the actual deb package, so when the deb gets removed, the icon gets auto removed from the launher too16:11
mvoTrevinho: what would not be the case if it would permanently point to the one that got created by software-center for the transaction16:12
Trevinhomvo: yeah... and also libunity will work with it: i.e. launcher icon progress bars and such16:12
Trevinhomvo: yeah... I see the point...16:12
Trevinhomvo:  probably bamf will eventually support the ability of changing a .desktop app, but this is quite tricky considering how is currently designed.16:13
mvoTrevinho: right, the branch as its now seem to be working for my tests, i.e. exchaning bamf_app_ and updating remove_uri  does the trick afaict16:14
mvoor is there something I overlooked?16:15
Trevinhomvo: yeah... Consider that the RemoteUri is now the only thing that is used both to save the icons in the launcher and to show the libunity decorations..16:15
Trevinhono, that's fine... .desktop file is used poorly, but needed as well to run the app and for the applications shortcuts16:16
mvoTrevinho: great, I will address the points you mentioned now and will write into the MP when I'm done. thanks again for your feedback16:17
Trevinhomvo: yw...16:20
=== dandrader|lunch is now known as dandrader
=== dandrader is now known as dandrader|afk
=== dandrader|afk is now known as dandrader
NightManI just want to say that I am quitting Ubuntu. The Unity UI is a piece of shit.18:59
timetopatHello all,  I would like to learn about contributing to ubuntu's unity project.  I followed the steps to compile and install nux and unity.  When I run the code to compile and install nux, all goes well.  But unity's script says nux is not installed.  What did I do incorrectly?19:39
=== mmrazik is now known as mmrazik|afk
=== salem_ is now known as _salem

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