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

jonosmspillaz, you around?03:58
smspillazjono: not really, whats up ?04:58
jonosmspillaz, just noticing a lot of Compiz crashes over the last few days05:09
didrocksgood morning05:43
smspillazjono: crashes in unity or compiz?05:44
smspillazjono: remember that if unity crashes compiz goes with it :)05:44
jonosmspillaz, I suspect maybe Unity05:45
smspillazok :)05:45
jonobut surely compiz should survive a unity crash?05:45
smspillazjono: nope05:45
jonowhy not?05:45
smspillazjono: it's a plugin that's loaded at runtime and runs inside the compiz process05:45
jonoright, but doesn't compiz provide safeguards for bad plugins?05:45
smspillazjono: it's impossible05:45
jonoa shitty GEdit plugin doesnt take down GEdit :-)05:45
jonoright05:46
smspillazGEdit plugins are written in python which provide exception safety05:46
smspillazcompiz plugins are in C++05:46
jonoI am just noticing random crashes05:46
jonoI filed a few bugs, particularly when apport caught them05:46
jonobut it feels like stability took a hit since the last Unity update05:46
smspillazif you mess up and cause a segmentation fault in C++ attempting to handle the signal results in undefined behaviour05:46
smspillazjono: we'll get on to them don't worry :)05:47
jonogotcha05:47
jonothanks smspillaz05:47
jonoyou guys are doing a great job05:47
smspillaznp05:47
jono:-)05:47
smspillazoh05:47
smspillazand05:47
smspillazI fixed the stacking bug YAY05:47
smspillazgosh that was a nightmare05:47
smspillazlet us never speak of that again05:47
jonohaha nice!05:48
=== agateau_ is now known as agateau
oSoMoNgood morning07:54
Saviqhello07:58
=== API is now known as Guest61674
=== Guest61674 is now known as apinheiro
=== Jens is now known as Guest3312
Andy80hi09:26
ephanhey Andy8009:27
Andy80Kaleo: let's suppose I've to add and manage a double click event to the Unity-2D panel. Is it better to add it here: http://bazaar.launchpad.net/~unity-2d-team/unity-2d/oneiric/view/head:/panel/applets/appname/appnameapplet.cpp or here http://bazaar.launchpad.net/~unity-2d-team/unity-2d/oneiric/view/head:/libunity-2d-private/src/unity2dpanel.cpp ? I'm trying to fix this bug #73649109:32
ubot5Launchpad bug 736491 in unity (Ubuntu) "Panel Titlebar double click is emitted for any mouse button" [Low,In progress] https://launchpad.net/bugs/73649109:32
Andy80nerochiaro: question valid for you too ^_^ p.s: good morning :)09:32
KaleoAndy80: good morning09:44
Andy80Kaleo: good morning :)09:44
KaleoAndy80: http://bazaar.launchpad.net/~unity-2d-team/unity-2d/oneiric/view/head:/panel/applets/appname/appnameapplet.cpp09:45
Andy80Kaleo: uhm... I tried to do it, but even if AppNameApplet is a Unity2dPanel (that is a QWidget itself), it looks like it doesn't have the mouseDoubleClick event :\ I try to committ+push the code so you can see better...09:56
=== zyga is now known as zyga-afk
KaleoAndy80: ok10:02
Andy80Kaleo: here you have http://bazaar.launchpad.net/~andreagrandi/unity-2d/panel-doubleclick-bug-736491/revision/71510:07
ubot5Ubuntu bug 715 in apt-file (Ubuntu) "missing dependency on curl" [Medium,Fix released]10:07
Andy80ubot5: shut up! :P10:07
SaviqAndy80: I'm actually trying to get back on https://bugs.launchpad.net/unity-2d/+bug/661049 - maybe we should join forces10:10
ubot5Ubuntu bug 661049 in unity-2d "Dragging downwards from the menu bar or double clicking on the menu bar should un-maximise the window" [High,In progress]10:10
davidcalleHi kamstrup, is "model.flush_revision_queue()" in lenses supposed to work ? Doesn't seem to do anything from a python lens.10:12
kamstrupdavidcalle: whether it does anything depends a bit on how it's invoked :-)10:13
kamstrupdavidcalle: Dee.SharedModel will send all changes on DBus when ever control returns to the mainloop10:13
kamstrupso if you very often return to the mainloop chances are that it does nothing because the revision queue has already been send10:14
Andy80Saviq: sure! If you already have some code please push it. It should be just a matter of fixing what I've already written, maybe I've defined it in the wrong place. Unmaximizing the window is easy, we can use the WindowHelper class. I just need to understand how to manage the double click properly :P10:14
kamstrupdavidcalle: but if you do some blocking IO scanning 1000 files building a model without ever going out to the mainloop unity wont see the changes before all 1000 items has been added10:14
kamstrupdavidcalle: so if you want to notify unity after the first 50 has been added and then later send the rest of the 950 rows then insert a flush_revision_queue() after 50 items10:15
kamstrupthis will increase the responsiveness the user experiences in the dash10:15
kamstrupbut is not strictly necessary10:16
kamstrupjust changes how fast changes are propagated to unity10:16
Andy80Kaleo: p.s: the error I get is this one: unity-2d-panel: [WARNING] Object::connect: No such signal AppNameApplet::mouseDoubleClickEvent(QMouseEvent*) in /home/andrea/Documents/development/unity-2d-panel-doubleclick-bug-736491/panel/applets/appname/appnameapplet.cpp:20810:16
davidcallekamstrup, I'm adding a flush_revision_queue after populating the model with a part of the sources I'm querying. But I could be doing it wrong.10:17
kamstrupdavidcalle: so if you're updating you model by looping over some data set, then calling flush_rev_q(), and returning control to the mainloop - then it doesn't make a difference10:18
SaviqAndy80: take a look at my merge request here https://code.launchpad.net/~saviq/unity-2d/unmaximize-on-drag/+merge/6102810:19
kamstrupdavidcalle: as the rev queue will be flushed anyway automatically10:19
KaleoAndy80: AppNameApplet is not a QWidget10:19
SaviqAndy80: I got it working more or less, but had to refactor it and never got to it in the end until today10:19
KaleoAndy80: scrap that10:20
KaleoAndy80: I am talking crap10:20
SaviqAndy80: and since there was some changes in unity-2d since that time, it needs to be rewritten a bit10:20
KaleoAndy80: it seems Saviq is _the_ person to talk to on this particular topic :)10:20
Saviqsee Aurelien's comments on that mr, too10:21
davidcallekamstrup, thanks for the explanation.10:21
Saviqhttps://bugs.launchpad.net/bugs/735205 is sooo annoying...10:21
ubot5Ubuntu bug 735205 in unity-2d "[window management] Alt tab does not switch to the desired application but instead set the urgency flag on the window" [Critical,Confirmed]10:21
Andy80Kaleo: ok let me give a look to his merge request :)10:21
Andy80Saviq: oh you're also managing thr drag event... mmmm.... well it's out of my knowledge then :P I see too much code... I mean, I did think it was just a matter of managing the doubleclick and use the unmaximize() method of WindowHelper but maybe is more complicated. I'll drop my branch then, is it ok?10:24
KaleoSaviq: it shall be your first bug fix ;)10:25
SaviqKaleo: hopefully10:25
SaviqAndy80: yeah, drags are a bit more complicated, but what you can do to speed things up, is find where it's best to hook up to the events in the new codebas10:26
Saviqe10:26
Saviqwhere I _think_ the events should go is the MenuBarWidget usually, and sometimes the label, when there is no menubar due to incompatibility10:27
Andy80Saviq: but you cannot doubleclick the menu usually.... at least on Unity 3D you cannot... you have to double click in the zone not covered by window title or menu10:28
SaviqAndy80: yes, but that's still the MenuBarWidget, AFAIK10:28
Andy80Saviq: so why did you modify the appnameapplet.cpp ?10:29
Saviqbut I might be wrong in that, and need to find that out to get that working10:29
SaviqAndy80: because the MenuBar is initialized there and also to handle the other case - when there's no menu bar10:30
Andy80Saviq: first obvious question: is your code working or is it just a concept?10:30
Saviqit was working10:30
Andy80ok10:30
Saviqback in 3.010:30
Saviqit needs rewriting now and finding a better place to handle the events10:30
Andy80Saviq: we can have a single SLOT, but if appname and appmenu are two separate widget we need to catch both doubleclick events, we cannot do it just in one of two10:32
SaviqAndy80: yes, and that's where the mentioned eventFilters come in10:32
Andy80Saviq: oh, I missed it, sorry :) let me read the code better...10:33
Saviqwe need a separate class, say TitleBarHelper, that will implement eventFilter(QObject *, QEvent *)10:33
SaviqAndy80: read Aurelien's comments first10:33
Saviqthat filter will then get installEventFilter()ed on the relevant widgets10:34
Saviqand that should be it10:34
Andy80Saviq: I'll give it a look better after lunch :)10:48
Saviqk10:49
Kaleoapinheiro: https://bugs.launchpad.net/unity-2d/+bug/846441 any idea?10:53
ubot5Ubuntu bug 846441 in unity-2d "Repeated indicators in unity-2d panel when second screen added" [High,Incomplete]10:53
apinheiroKaleo, reading10:53
apinheiroKaleo, ups10:54
apinheiroTimeout error10:54
apinheiroSorry, something just went wrong in Launchpad.10:54
apinheirowell, it seems that I can read it10:54
apinheiroKaleo, unity-2d uses the panel-service as well?10:55
Kaleoapinheiro: yes10:55
apinheiroso the a11y support there is the one implemented at unity,right?10:55
Kaleoapinheiro: I did not mean to ping you actually :)10:55
apinheiroKaleo, ;)10:55
apinheirook10:55
Kaleoapinheiro: for the panel yes :)10:55
KaleoTrevinho: https://bugs.launchpad.net/unity-2d/+bug/846441 any idea?10:56
ubot5Ubuntu bug 846441 in unity-2d "Repeated indicators in unity-2d panel when second screen added" [High,Incomplete]10:56
apinheiroso then I will forgot that, and going lunch10:56
Kaleoapinheiro: disfruta10:56
=== apinheiro is now known as apinheiro_lunch
apinheiro_lunchKaleo, thanks10:56
=== MacSlow is now known as MacSlow|lunch
=== zyga-afk is now known as zyga
=== MacSlow|lunch is now known as MacSlow
=== mterry_ is now known as mterry
=== apinheiro_lunch is now known as apinheiro
mterrysmspillaz, heyo.  Last Friday we were talking about bug 732997, and you thought it may have been fixed by trunk.  I just tested, and it's not12:56
ubot5Launchpad bug 732997 in unity "Cannot open a window that starts iconified" [Low,Confirmed] https://launchpad.net/bugs/73299712:56
mterrysmspillaz, there's a test case in the bug for ease-of-testing12:56
smspillazmterry: hm ok13:08
smspillazmterry: I fixed it last cycle, maybe the fix got dropped somewhere13:08
hichamany progress on upstreaming ubuntu menu proxy patch ?13:48
agateauhey, looking at bug #821290, it seems to affect unity 3d as well. Can anyone confirm this?14:08
ubot5Launchpad bug 821290 in unity-2d "[panel] Unable to access menus with Alt accelerator keys." [High,Confirmed] https://launchpad.net/bugs/82129014:08
Andy80Saviq: finally I had time to read all comments, but... I don't understand the "event filter" stuff... I mean, is there already a class in Unity-2d or is it something Qt related?14:08
SaviqAndy80: doc.qt.nokia.com/stable/eventsandfilters.html#event-filters14:08
Saviqadd a http:// to that14:08
Andy80Saviq: ok, so if I understand well, from a single point you want to intercept both events for appname and menuwidget, is it right?14:10
Saviqyes, that's the idea14:10
Saviqto abstract an event handler / filter14:10
Andy80ok14:16
apinheirojaytaoko, you here?14:49
jaytaokoapinheiro: hello14:49
apinheirojaytaoko, hello, just a question14:49
apinheirosome time ago you added the signal:14:50
apinheiro    sigc::signal<void, BaseWindow*> sigVisibleViewWindow;14:50
apinheiroand his "hidden" equivalent14:50
apinheiroin order to know when any window is shown14:50
apinheirobut, I tried to connect to it and I don't receive anything14:50
jaytaokoapinheiro: right14:50
apinheiroafter a grep on nux code14:50
apinheiroI didn't find a emission of this signal14:50
apinheirojaytaoko, is this signal implemented?14:50
jaytaokoapinheiro: let me check...14:51
apinheirojaytaoko, ok thanks14:51
kamstrupnjpatel: at your leisure I have some review work for you :-) https://bugs.launchpad.net/ubuntu/+source/unity-2d/+bug/83802314:52
ubot5Ubuntu bug 838023 in unity "[dash] Application category filters is sorted according to their english names, even when another language is used" [Medium,In progress]14:52
kamstrupnjpatel: another fruit from the updated architecture for the lenses :-D14:53
jaytaokoapinheiro: you are right, the signals are not emitted.14:55
apinheirojaytaoko, urgh, ok14:55
apinheirowell, I will create a bug for that14:56
njpatelkamstrup, lol, I was looking at the same bit in the .lens file thinking "damn, did I forget to port this to the new stuff?" :D14:56
jaytaokoapinheiro: however, these signals are implemented on BaseWindow themselves: sigVisible and sigHidden14:56
apinheiroand workaround that14:56
apinheiroin order to use that on the next cycle14:56
apinheirojaytaoko, yes, but in order to use them14:56
apinheiroyou need the specific BaseWindow instance14:56
jaytaokoapinheiro: right!14:56
apinheiroI wanted to use that signal to get when a new BaseWindow appears14:56
apinheiroin order to add them to the list of active windows14:57
njpatelkamstrup, oh, filters!14:57
njpatelkamstrup, ignore me14:57
jaytaokoapinheiro: I believe I can fix the problem...14:57
apinheirojaytaoko, really? I don't want to compromise the current cycle, taking into account where we are right now14:59
njpatelkamstrup, both approved15:00
jaytaokoapinheiro: it is alright, there are just 2 lines to add... then you can be free to use the signal in this cycle if you want15:00
apinheirojaytaoko, ok, thanks15:02
jaytaokoapinheiro: I have pushed the changes to nux trunk. You may now connect to these signals: GetWindowCompositor().sigVisibleViewWindow and GetWindowCompositor().sigHiddenViewWindow15:14
apinheirojaytaoko, as I said Im  already connected to those signals ;)15:21
apinheirojaytaoko, thanks15:21
apinheiroI will test them right now15:21
jaytaokoapinheiro: let me know how it goes15:22
KaleoTrevinho: since your patch from last week in Unity 2D we get a crash regularly: https://bugs.launchpad.net/ubuntu/+source/unity-2d/+bug/84683615:24
ubot5Ubuntu bug 846836 in unity-2d "unity-2d-panel crashed with SIGSEGV in IndicatorsWidget::onEntryRemoved()" [Critical,In progress]15:24
apinheirojaytaoko, it is working, thanks15:42
apinheironjpatel, one question about the name on the BaseWindow15:43
apinheiroare they used?15:43
apinheirocould I use that name as the accessible name of the Window?15:43
njpatelapinheiro, sure15:43
njpatelno, not used really15:43
apinheironjpatel, so no problem if I change the current name of the  Launcher window, right?15:44
apinheiroright now is "LauncherWindow"15:44
njpatelapinheiro, nope, DBO ?15:44
apinheiroI should also mark that name to be translatable though15:44
jaytaokoapinheiro: don't use "BaseWindow" this name could change15:47
apinheirojaytaoko, what do you mean? I shouldn't use the class "BaseWindow" or I shouldn't use that name?15:48
apinheirobecause about the class, I0m already using it15:48
jaytaokoapinheiro: I mean the name "BaseWindow" :-D15:48
apinheirojaytaoko, ok, no problem15:48
apinheiroI want to use the name to give the window a meaningful name15:49
apinheirosomething like "Panel", "Launcher" "Quicklist"15:49
apinheiroso when the window is being activated any orca user could listen "Launcher Window"15:49
apinheiroat this moment Im setting the name manually on the a11y object15:49
jaytaokoapinheiro: well you can if you want, but all I meant to say is that I have been thinking at a new name for "BaseWindow", because I don't think the name is quite right15:50
apinheiroit would be easier to just use the name from BaseWindow itself15:50
apinheiroyeah, and for the user listening "BaseWindow" should be also not really meaningful15:50
jaytaokoapinheiro: feel free to do so, nut just understand that the class name "BaseWindow" may change. but that won't affect the BaseWindow code15:51
apinheirojaytaoko, ok thanks15:53
kamstruplamalex: at your leisure https://code.launchpad.net/~kamstrup/unity-lens-music/sorted-filters/+merge/7503016:00
kamstruplamalex: i wans't sure though if the current ordering was hard coded by design, so feel free to ignore - but it was definitely a bug for the apps lens :-)16:02
lamalexkamstrup, i just copied the mockups16:07
apinheironjpatel, jaytaoko I have just realized that in the end you use the name of the basewindow16:16
apinheiroEnableInputWindow(true, "Dash",16:16
apinheiroit seems that on nux is used to know the window to activate, so I guess that also to search16:16
apinheirocould you confirm that?16:16
jaytaokoapinheiro: let me check...16:17
apinheirothe issue is that if this is true, I can't use that name, as the use case is to be shown to user16:18
apinheiroso need to be a translatable string16:18
apinheiroso I couldn't replace16:18
apinheiro  window_ = new nux::BaseWindow("Dash");16:18
apinheirofor16:18
apinheiro  window_ = new nux::BaseWindow(_("Dash"));16:18
jaytaokoapinheiro: right unity uses the name of the base window, like "Dash", "launcher"...16:22
apinheirojaytaoko, ok, I will discard the idea of use current BaseWindow name as the accessible name then16:23
apinheirojaytaoko, thanks16:23
jaytaokoapinheiro: however, I am not sure that latter in in the code there is a comparaison of strings to look for a BaseWindow name16:24
apinheirojaytaoko, ok, anyway just in case, for the moment I will  not use that name16:29
jaytaokoapinheiro: I need to check with DBO...16:29
DBOI'll be here in a minute16:30
apinheirojaytaoko, ok, anyway not a big issue right now, as normally if you open a window, usually one of the objects inside the window get the focus16:30
apinheirothe window just provide more information about the context16:30
=== yofel_ is now known as yofel
lamalexwhat's the envar to set to debug glib runtime warnings/criticals?16:39
TrevinhoKaleo: I'll give a look to these bugs17:07
TrevinhoKaleo: are you already working on the bug related to the crash?17:12
lamalexcan i get a review? https://code.launchpad.net/~alexlauni/unity-lens-music/846013/+merge/75044 1 line change17:14
AlanBellis there an example of a python based lens with packaging for oneiric?18:12
davidcalleAlanBell, there will be one soon. Tomorrow night I hope.19:56
davidcalleAlanBell, do you want me to point you to the branch when it's done?20:01
jonodavidcalle, howdy20:14
jonohow is the lens coming along?20:14
davidcalleHey jono20:16
davidcalleTake a look http://img.ly/8fPQ20:17
jonodavidcalle, nice!20:18
davidcalleI'm cleaning the code tonight, will push the branch tomorrow.20:19
jonodavidcalle, sounds great!20:19
AlanBelldavidcalle: that would be great20:58
AlanBellI think I am seeing a fairly major fail with the screensaver and unity, not sure who is at fault and where to file the bug21:25
AlanBellif I leave the dash open and wander off until the screensaver cuts in the dash stays on top of the screensaver and the screensaver login window is behind the dash and can't be typed in21:26
jonoAlanBell, I think that would be a Unity bug21:36
* AlanBell files bug 84833621:39
ubot5Launchpad bug 848336 in unity (Ubuntu) "screensaver is behind the unity dash so impossible to unlock" [Undecided,New] https://launchpad.net/bugs/84833621:39
AlanBellwhy is the system settings thing not a lens?21:40
davidcalleAlanBell, I would say: because it closes after a click. IMHO it would be a pain when you want to configure different settings;21:41
AlanBellum, but it does close after a click!21:43
AlanBelloh, no it doesn't quite21:43
AlanBellthe thing just looks like it should have been a lens but someone didn't get the memo22:03

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