bschaefer | thumper: ping | 01:03 |
---|---|---|
thumper | bschaefer: pong | 01:39 |
bschaefer | thumper: so I am pretty sure if found out exactly where fix this dash problem | 01:43 |
thumper | bschaefer: awesome | 01:43 |
thumper | bschaefer: do tell :) | 01:43 |
bschaefer | about to log out and test really quick (1 line of code change) | 01:43 |
bschaefer | thumer: under DashController under window set up window_->SetPathToKeyFocusArea() | 01:43 |
bschaefer | thumper: ^ | 01:44 |
bschaefer | let me log out to confirm | 01:44 |
thumper | :) | 01:44 |
thumper | ok | 01:44 |
bschaefer | thumper: yup worked. I would have figured it out yesterday but for some reason I thought BaseWindow was below the View class | 01:46 |
bschaefer | thumper: also the only reason clicking was working on start up also was because it SetKeyFocusArea on mouse_over_area, otherwise it wouldn't work with | 01:47 |
bschaefer | either* | 01:47 |
thumper | bschaefer: so this is purely a nux fix? | 01:47 |
bschaefer | thumper: nope, unity | 01:47 |
bschaefer | nux gets left alone | 01:48 |
bschaefer | let me get a branch up so you can see | 01:48 |
thumper | oh? | 01:48 |
thumper | ok | 01:48 |
bschaefer | thumper: well the fix I had in nux was bad and would get called all the time and you only need it to be called once | 01:50 |
bschaefer | thumper: I thought it was in nux at first because it showed the same problems as the quick list bug | 01:51 |
thumper | ok | 01:52 |
bschaefer | thumper: apologies on taking so long to fix this, trying to reduce my work load else where...but at lease it's fixed :) | 01:54 |
bschaefer | (hopefully :) ) | 01:55 |
thumper | that's cool | 01:55 |
thumper | is the branch up? | 01:55 |
bschaefer | yup getting the link now | 01:55 |
bschaefer | https://code.launchpad.net/~brandontschaefer/unity/fix-860805 | 01:55 |
bschaefer | thumper: now just to figure out how to test this... | 01:58 |
thumper | yeah :) | 01:59 |
bschaefer | I was thinking when this function isn't called and you use super the end_of_key signal is emited | 01:59 |
thumper | ok... | 02:00 |
bschaefer | on start up, so possibly setting up a listener for that and fake a key stroke | 02:00 |
thumper | do you get the same behaviour on the stand alone dash? | 02:00 |
thumper | or is that all different? | 02:00 |
bschaefer | hmm, I haven't tried it on the stand alone dash | 02:00 |
thumper | my guess is that it is likely to be different | 02:01 |
thumper | as it is created and focused differently | 02:01 |
thumper | so testing this is a challenge | 02:01 |
bschaefer | hmm yeah, also there was a function that could not find the area | 02:01 |
bschaefer | in nux, that I believe is public | 02:02 |
bschaefer | (going to look for it) | 02:02 |
bschaefer | FindKeyFocusArea | 02:03 |
bschaefer | hmm it's not public though | 02:03 |
thumper | is it protected? | 02:03 |
bschaefer | yeah, it is over ridden a few times and is public in Area | 02:04 |
bschaefer | so it returns a NULL if it can't find the area | 02:04 |
thumper | if it is public in Area, then you can call it | 02:04 |
bschaefer | yeah | 02:05 |
bschaefer | (was looking and typing since it is virtual there are multiple ones) | 02:05 |
bschaefer | so we should be able to set up the dash then call this and check if it returns NULL after window_->SetPathToKeyFocusArea() is called | 02:07 |
bschaefer | the standalone_dash is pretty different... | 02:12 |
thumper | yeah... thought it might be | 02:14 |
bschaefer | well I will start playing around with it | 02:17 |
bschaefer | also I have a couple files in nux that I initialized some variable. Theres also some in unity from that log file you gave me | 02:18 |
thumper | ok | 02:19 |
thumper | cool | 02:19 |
bschaefer | thumper: just realized that wont work anyway since we dont have the event which FindKeyFocusArea takes as an argument | 02:45 |
Andy80 | finally the proper Unity configuration for me :) - fixed Launcher + 36 pixel icons ;) | 03:01 |
thumper | bschaefer: can we fake it? | 03:15 |
thumper | bschaefer: sorry, was on the phone | 03:16 |
bschaefer | thumper: sorry I ran to the store, umm we should be able too | 03:32 |
bschaefer | thumper: Ill make a function that does that, but I am slightly worried still because the Dash Controller isne't getting called which is where SetPathToKeyFocusArea() gets called | 03:33 |
bschaefer | thumper: I could possibly re write it using the DashController instead of just the DashView | 03:36 |
Andy80 | good night to everyone | 03:37 |
bschaefer | thumper: ugg, it actually just needs the event type, key sym and key state which are very easy to fake | 03:51 |
bschaefer | thumper: ie. it doesn't actually need the full event | 03:51 |
thumper | bschaefer: cool | 04:06 |
bschaefer | thumper: actually some bad news it looks like the function I was looking at is in WindowCompositor but it is private in that class | 04:07 |
thumper | which method | 04:08 |
bschaefer | same name | 04:09 |
bschaefer | FindKeyFocusArea | 04:09 |
bschaefer | but it's different then View and Area | 04:09 |
bschaefer | ie. it is not overriding it | 04:09 |
bschaefer | overloading* | 04:10 |
thumper | bschaefer: can you give me some file and line numbers? | 04:11 |
bschaefer | yeah. It is in nux/Nux/WindowCompositor.cpp around line 807 | 04:12 |
bschaefer | thumper: that function is what returns NULL if it can't find the focus_area, | 04:13 |
* thumper pokes | 04:13 | |
bschaefer | I wonder if we could write most of this function in unity... | 04:14 |
bschaefer | nevermind, _view_window_list is private and doesn't get returned anywhere | 04:15 |
thumper | bschaefer: lets go back, what did you change? | 04:17 |
bschaefer | ok, in unity under DashController::SetupWindow() | 04:19 |
bschaefer | window_->SetPathToKeyFocusArea() | 04:19 |
bschaefer | was added in that function | 04:19 |
bschaefer | thumper: ^ | 04:20 |
* thumper pokes some more | 04:22 | |
bschaefer | SetPathToKeyFocusArea() is in nux/Nux/Area.cpp line 950 | 04:22 |
bschaefer | thumper: | 04:22 |
thumper | bschaefer: it seems that SetPathToKeyFocusArea() is called internally from the window compositor in nux | 04:24 |
bschaefer | yeah | 04:24 |
thumper | bschaefer: from SetKeyFocusArea | 04:25 |
bschaefer | thumper: yup | 04:25 |
thumper | bschaefer: shouldn't we then be calling that instead of SetPathToKeyFocusArea? | 04:25 |
thumper | which seems weird | 04:26 |
thumper | as that is called from ShowDash | 04:26 |
bschaefer | thumper: hmm, well it doesn't get to the SetPathToKeyFocusArea when called in unity | 04:26 |
thumper | I feel it is probably due to line 237 in dashcontroller.cpp | 04:26 |
thumper | view_->default_focus() is probably wrong | 04:27 |
bschaefer | thumper: i removed that line and tried it | 04:27 |
thumper | where is that set I wonder | 04:27 |
thumper | hmm... it doesn't get there normally? | 04:28 |
thumper | I can see why the author thought it should | 04:28 |
bschaefer | thumper: yeah, the only reason clicking on the dash works right away | 04:29 |
bschaefer | thumper: is because it SetKeyFocusArea for mouse_over_area in WindowCompositor | 04:29 |
bschaefer | thumper: so it kinda works by accident because calling that invokes the SetPathToKeyFocusArea() | 04:30 |
bschaefer | thumper: which is why this bug seemed so inconsistent and weird... | 04:31 |
thumper | bschaefer: but do you agree that nux::GetWindowCompositor().SetKeyFocusArea(view_->default_focus()); should work? | 04:31 |
bschaefer | yeah I thought it should.. | 04:31 |
thumper | did you try stepping through the debugger? | 04:31 |
bschaefer | thumper: no, haven't used one in a long time | 04:31 |
thumper | bschaefer: ah... gdb is a wonderful thing | 04:32 |
thumper | bschaefer: especially since you have to use a vt | 04:32 |
thumper | bschaefer: since you are breaking into the window manager :) | 04:32 |
bschaefer | thumper: vt? not ringing a bell for some reason | 04:32 |
thumper | ctrl-alt-F1 | 04:32 |
bschaefer | thumper: haven't been using that | 04:33 |
thumper | before you do that | 04:33 |
thumper | you have to go ctrl-alt-F7 to get back :) | 04:33 |
bschaefer | thumper: yup, I call that tty | 04:33 |
bschaefer | thumper: well for some reason my VM hates that mode so I cant use it haha | 04:33 |
thumper | which mode? | 04:34 |
bschaefer | thumper: 1-6 | 04:34 |
bschaefer | F1-F6 | 04:34 |
thumper | oh, you are using a vm? | 04:34 |
bschaefer | thumper: yup, I am currently looking for a laptop right now but have to wait a little | 04:34 |
* thumper nods | 04:34 | |
bschaefer | thumper: but got 3d working with out to much fuss | 04:35 |
bschaefer | thumper: but I was taught that debuggers were evil for learning | 04:36 |
bschaefer | thumper: so I have stuck with print statements and reading code haha | 04:36 |
thumper | I'd agree with that, in general | 04:36 |
thumper | but they are great for debugging | 04:36 |
bschaefer | thumper: haha, hence the name :) | 04:36 |
bschaefer | thumper: yeah a lot of time I use print statements like a debugger would be doing anyway, like mem address and values | 04:37 |
bschaefer | thumper: but I will dl gdb and start learning that as it looks like the tool you use? | 04:38 |
bschaefer | thumper: guess it's built in, and I am guessing this is the logger nux uses | 04:39 |
thumper | what do you mean? | 04:39 |
bschaefer | well all the calls to LOGGER | 04:39 |
thumper | gdb is the gnu debugger, so part of build-essential I think | 04:39 |
thumper | yeah, I wrote that | 04:39 |
bschaefer | i am guessing gets sent to the gdb | 04:40 |
bschaefer | cool! Yeah I see those and didn't really know where that was getting sent to, so just used a printf instead :) | 04:40 |
bschaefer | thumper: i am also still getting use to how large everything is, code wise...there is so much code | 04:41 |
thumper | bschaefer: it gets sent to std::cout or std::cerr, I can't remember | 04:41 |
thumper | no, the logging is independent to gdb | 04:42 |
* thumper goes afk for person at door | 04:42 | |
bschaefer | thumper: hmm, a little bit of a digress. I am wondering if FindKeyFocusArea in Area would still return NULL if it cant find the area... | 04:43 |
thumper | bschaefer: so... let me see if I can get this straight | 04:55 |
bschaefer | thumper: well it's protected in the nux::View class | 04:56 |
thumper | bschaefer: when unity starts for the first time, the text input doesn't have focus if you push the super key to get the dash? | 04:56 |
thumper | bschaefer: is that the underlying issue? | 04:56 |
bschaefer | thumper: yes | 04:56 |
thumper | ok... | 04:56 |
thumper | what I'd do is to start compiz with gdb and add a breakpoint | 04:56 |
thumper | since you can't really do that... | 04:56 |
thumper | hang on, what is your VM running on? | 04:57 |
thumper | you may be able to start gdb in the host | 04:57 |
thumper | and connect over tcp to the VM | 04:57 |
thumper | to debug | 04:57 |
bschaefer | windows | 04:57 |
thumper | is it your machine? | 04:58 |
bschaefer | yeah | 04:58 |
thumper | have you heard of mingw? | 04:58 |
bschaefer | nope, but can dl it | 04:58 |
thumper | that can give you gdb on windows | 04:58 |
thumper | see if you can do a little research | 04:58 |
thumper | on gdb over tcp | 04:58 |
thumper | to see if you can get it working | 04:58 |
thumper | it'll make some things much easier | 04:58 |
thumper | I'll see if I can get unity running under gdb again | 04:59 |
thumper | and debug the process | 04:59 |
thumper | and stop at that location | 04:59 |
thumper | and step through | 04:59 |
thumper | see what's happening | 04:59 |
thumper | but | 04:59 |
bschaefer | thumper: alright thanks. I will be getting flash drive soon to run ubuntu off until i get a laptop | 04:59 |
thumper | now it is dinner time | 04:59 |
bschaefer | thumper: alright enjoy! | 04:59 |
thumper | caio | 04:59 |
azrad | hi i'm a noob ubuntu 11.10; i was messing around with compiz and messed up my desktop; i removed compiz and unity; and now i'd like unity back; but i can't seem to figure out how to do that | 05:30 |
azrad | i tried adding it from the ubuntu software center but well it didn't seem to change my desktop; | 05:31 |
azrad | now i think i'm using gnome | 05:32 |
thumper | azrad: if you start ccsm, add the unity plugin | 05:34 |
thumper | smspillaz: can you help azrad? | 05:34 |
azrad | so install compiz? | 05:35 |
thumper | is it not installed? | 05:36 |
thumper | if you have unity installed, you'd have compiz installed | 05:36 |
azrad | no i said i removed them both | 05:36 |
thumper | so go and install ubuntu-desktop | 05:37 |
azrad | ok i'm doing that | 05:38 |
bschaefer | thumper: got mingw set up with ssh and running unity --advance-debug and it looks like it's working | 05:38 |
bschaefer | thumper: so Ill look into get the break point set up for that process if you haven't already | 05:38 |
thumper | bschaefer: I haven't | 05:39 |
bschaefer | thumper: alright, gives me time to learn gdb :) | 05:39 |
* thumper walks away again | 05:40 | |
bschaefer | thumper: Go eat! (surprised you were back haha) | 05:40 |
azrad | brb | 05:41 |
azrad | thumper: ah that did the trick; thankyou very much | 05:44 |
=== rodrigo__ is now known as rodrigo_ | ||
=== rodrigo__ is now known as rodrigo_ | ||
Andy80 | 'morning | 09:00 |
TheCowboy | Where can I find the docs for libindicator for python? | 09:07 |
TheCowboy | http://developer.ubuntu.com/api/ubuntu-11.04/GIR/python/AppIndicator-0.1.html | 09:07 |
TheCowboy | doesn't work | 09:07 |
TheCowboy | Found the link on: https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators#Libraries | 09:08 |
mhr3_ | TheCowboy, here http://developer.ubuntu.com/api/ubuntu-11.04/python/AppIndicator-0.1.html | 09:13 |
TheCowboy | ty | 09:14 |
jo-erlend | is there any keyboard shortcut to move a window between monitors? | 09:17 |
glatzor | ping ronoc | 11:24 |
ronoc | glatzor, yep | 11:25 |
glatzor | hello ronoc you are working on the indicator session service? | 11:28 |
glatzor | I am the author of aptdaemon, AFAIK we haven't met yet. | 11:29 |
ronoc | glatzor, no I dont think we have, how's it going ! I am not working onthe session service I'm afraid this cycle, | 11:29 |
glatzor | ronoc, aptdaemon nowadays provides the PackageKit dbus API. So it could make sense porting indicator session service to PackageKit | 11:30 |
ronoc | glatzor, so the session service should talk straight to package kit instead of the apt dbus interface ? | 11:30 |
glatzor | ronoc, right. aptdaemon now supports PackageKit UpdatesChanged signal. | 11:30 |
glatzor | ronoc, currently you perform an UpgradeSystem simulation after each transaction AFAIK. | 11:31 |
ronoc | glatzor, i could not get any consistent behaviour out of the apt dbus api for O | 11:31 |
ronoc | glatzor, yes that's right | 11:31 |
glatzor | ronoc, just feel free to ask if you need anything by aptdaemon. I am quite open to new use cases | 11:32 |
glatzor | ronoc, in the future aptdaemon will emit the UpdatesChanged signal when it is a good idea to ask query updates. | 11:33 |
glatzor | to query for updates | 11:33 |
glatzor | ronoc, So I have to leave now. sorry. But I will poke you in the next days again :) | 11:36 |
ronoc | glatzor, grand, anytime | 11:36 |
ronoc | glatzor, ok we should talk at some point about the whole interaction, I was having difficulties last cycle to say the least with that api design / stability | 11:39 |
=== rodrigo__ is now known as rodrigo_ | ||
=== MacSlow is now known as MacSlow|lunch | ||
=== MacSlow|lunch is now known as MacSlow | ||
Andy80 | too silence... time for a breaking question :) | 14:58 |
MrChrisDruif | Break it | 14:58 |
Andy80 | Saviq: what do you think about starting some tests of Unity-2D and Qt5? Is it too early? (the question is for everyone of course) | 14:58 |
Andy80 | Qt5 (a very preview release) can already be built, and it runs on N9/N950. We could build it on Ubuntu, package it and make it available trough a PPA. Then we could try to buuild the actual Unity-2D against it and start taking notes about the necessary changes required. | 15:01 |
angelo-c | hi all | 22:19 |
angelo-c | can anyone help me with bug 773841 | 22:19 |
ubot5 | Launchpad bug 773841 in unity-place-files (Ubuntu) "\\192.168.1.x opens http:\\192.168.1.x in firefox as opposed to smb://192.168.1.x in nautilus" [Low,Confirmed] https://launchpad.net/bugs/773841 | 22:19 |
andyrock | angelo-c, help to fix? | 22:19 |
angelo-c | I'm in trouble with launch_default_for_uri because it doesn't work with | 22:19 |
angelo-c | not mounted volumes. | 22:19 |
angelo-c | I talked about this strangeness with gtk developer on gtk+ dev irc | 22:20 |
angelo-c | channel, and they explained me that the function is not intended to open | 22:20 |
angelo-c | not mounted volumes. | 22:20 |
angelo-c | They only way I found to open an uri like ssh:// or smb:// is to open | 22:20 |
angelo-c | with nautilus using GLib.Process.spawn_async. | 22:20 |
andyrock | mmm.... | 22:20 |
andyrock | so launch_default_for_uri | 22:20 |
andyrock | doesn't work for not mounted volumes right? | 22:20 |
andyrock | and you don't know on which volume the uri is... | 22:21 |
angelo-c | you can test yourself using gnome-mount, it uses the same launch_default_for_uri function | 22:21 |
andyrock | so you cannot mount the volume by yourself | 22:21 |
andyrock | right? | 22:21 |
angelo-c | gnem-open sorry | 22:22 |
angelo-c | gnome-open sorry again | 22:22 |
angelo-c | the bug involves unity-len-files that is not a gui application, so I cannot use i gtkmount diaolog to mount the volume | 22:22 |
andyrock | but you can use a gmount... | 22:23 |
andyrock | :) | 22:23 |
angelo-c | gmount? | 22:23 |
tedg | TheMuso, Sorry, I missed your ping yesterday. | 22:23 |
tedg | TheMuso, Yes, I think it should be a new property. | 22:23 |
tedg | TheMuso, Make sure to put it in the defaults list. I don't know that there should be a default value as much as to set the type. | 22:24 |
andyrock | yeah.... http://developer.gnome.org/gio/2.31/GMount.html | 22:24 |
andyrock | angelo-c, ^^^ | 22:24 |
angelo-c | sorry, I was not clear | 22:25 |
andyrock | nautilus and unity launchbar use this to mount a volume... | 22:25 |
angelo-c | I cannot use gmount because it involves using a gtk mount operation that I cannot use because the daemon is a non gui app | 22:25 |
TheMuso | tedg: Sorry, the defaults list and type? | 22:27 |
TheMuso | tedg: Not sure what you mean by those. | 22:27 |
andyrock | angelo-c, gvolume and gmount doesn't open any dialog box... | 22:27 |
andyrock | angelo-c, you are Italian? | 22:27 |
TheMuso | Ok, I thought adding a property would be the way to go. | 22:28 |
angelo-c | I have to open dialog boxes, mounting an ssh volume should ask for a username and password, if you enter nautilius ssh://127.0.0.1 it opens a dialog | 22:28 |
angelo-c | yes, I'm italian, is so recognizable? | 22:29 |
angelo-c | :) | 22:29 |
andyrock | angelo-c, I'm italian too ;) | 22:29 |
angelo-c | great, can we speak in Italian? | 22:30 |
TheMuso | tedg: nvm I think I understand, I'll try to catch you later if I have more questions. | 22:33 |
tedg | TheMuso, cool | 22:33 |
TheMuso | Ok thanks. | 22:35 |
TheCowboy | Anyone have any thoughts on how to implement an indicator/widget for adjusting the screen brightness? | 23:11 |
TheMuso | TheCowboy: You would need to leverage UPower at the backend to adjust brightness, if thats possible. I think UPower is responsible for reading any light sensors and adjusting the brightness based on the readings, but I am not sure if there any APIs to allow other apps to change brightness, as its usually something a user would do with their monitor controls/brightness keys on their device. | 23:25 |
alamedia_ | hi everybody, I put ubuntu 11.10 on as rock but no sounds, could u help me? | 23:32 |
TheCowboy | TheMuso, thanks, will take a look at that (one reason for wanting this is that for older Thinkpads there's a basically unfixable bug which doubles the step in the controls) | 23:50 |
TheMuso | TheCowboy: Ah ok. | 23:58 |
TheMuso | TheCowboy: In terms of older thinkpads, how old? | 23:58 |
hyperair | i don't think it's only for older thinkpads | 23:59 |
hyperair | my thinkpad is less than a year old, but i think it doubles the step | 23:59 |
TheMuso | ah ok. | 23:59 |
hyperair | the xbacklight controls were added recently in the 3.1 kernel. | 23:59 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!