/srv/irclogs.ubuntu.com/2012/07/16/#ubuntu-app-devel.txt

bretthhow do i catch the event when the user clicks on my appindicator?06:32
dholbachgood morning07:02
bretthseems like there are no signals for appindicator07:04
bretthso to catch the show event, i should listen to the 'map' of the menu inside the appindicator.07:05
bretthdholbach, do you know how i can catch the signal when the user clicks my appindicator?07:09
bretthwatching the 'map' signal on the menu is not working.07:11
dholbachbretth, I'm afraid I don't07:11
dholbachmhall119 or tremolux might know, but they're both in the US, so likely sleeping right now07:12
bretthno good for us in asia.07:13
dholbachof course there's more people who know this, but these are the folks I just found in the channel list07:13
dholbachyou could try #ubuntu-desktop too07:14
bretthubuntu is lacking polish, how could this be? https://bugs.launchpad.net/screenlets/+bug/52215207:23
ubot2Ubuntu bug 522152 in libappindicator "indicator-application does not send signals when a menu is shown/hidden" [Wishlist,Confirmed]07:23
dholbachbretth, it's open-source - I'm sure they'd welcome a fix07:27
dholbachhey aquarius, dpm07:28
dholbachmaybe you can help bretth?07:28
dholbach<bretth> seems like there are no signals for appindicator07:28
dholbach so to catch the show event, i should listen to the 'map' of the menu inside the appindicator.07:28
dholbach<bretth> dholbach, do you know how i can catch the signal when the user clicks my appindicator?07:28
aquariushrm. I didn't know that your app *could* react to the menu being shown (can I ask why if needs to?)07:29
aquarius(er, why *it* needs to)07:30
bretthaquarius, i want to fill it with dynamic data07:30
dpmbretth, I'm lacking a bit of context, but have you had a look at the code samples on http://developer.ubuntu.com/resources/technologies/application-indicators/07:30
aquariusbretth, and you don't want to update the menu when the data changes?07:31
bretthi only want to update the menu if its shown, because there might be alot of updates.07:31
aquariusk07:31
aquariushrm. Am trying to work out which other indicators might do this, to serve as an example.07:32
aquariusthe weather indicator, perhaps?07:32
aquariusah, no, the weather indicator refreshes in the background.07:34
aquariusand you can't connect to your menu's map signal because it's not actually *your* menu that's being mapped, it's dbusmenu's copy of your menu, and dbusmenu doesn't send the map signal back to you (I've just07:42
aquarius...tried it)07:42
Phoenix87bretth: https://bugs.launchpad.net/ubuntu/+source/libappindicator/+bug/52215207:45
ubot2Ubuntu bug 522152 in libappindicator "indicator-application does not send signals when a menu is shown/hidden" [Wishlist,Confirmed]07:45
aquariushttps://bugs.launchpad.net/screenlets/+bug/522152 is relevant here, I think; it's marked as "wishlist07:46
aquariusheh, Phoenix87 is faster than I :)07:46
Phoenix87eheh07:47
Phoenix87bretth: did you try connecting to the menu's draw signal?07:47
bretthPhoenix87, yes07:48
Phoenix87hmm07:49
bretthi tried them all, 'map' 'map-event', 'expose', 'realize'07:49
Phoenix87bretth: so i guess the indicator is not handling all the signals :\07:49
Phoenix87bretth: did you try the same on child items?07:50
bretthnot yet, i'm trying that next07:51
Phoenix87ok07:51
davidcalledpm, hey07:51
Phoenix87bretth: if that fails too you could create a timer thread that checks the visibility of the menu at regular intervals, though this might waste resources unnecessarily :\07:52
bretthmight waste?07:52
dpmmorning davidcalle07:52
bretthit will waste.07:52
aquariusbretth, I imagine that dholbach has already told you this, but the person to talk to is tedg, who will be around in six hours or so07:52
Phoenix87bretth: well you basically have a loop that checks the widget status every, say, 1 millisecond07:53
davidcalledpm, morning, do you know if .extras packages use the myapps description? I believe you told me they did, but apparently they still don't.07:53
bretthok, i'll talk to tedg later.07:53
aquariusbah, don't spin your app every millisecond. I have a battery here :) bretth is already wise enough to not do that :)07:53
dpmdavidcalle, I'm not sure if it was me who told you, but I believe they don't - they use the description in debian/control, only commercial apps in private PPAs use the myapps description, afaik. But mvo can probably confirm that.07:55
davidcalledpm, thanks07:56
dpmnp07:56
misterIs it possible to dynamically update label of a menu item in appindicator?11:08
misterIs it possible to dynamically update label of a menu item in appindicator?11:44
mhall119bretth: AFAIK the only signals you can listen to are the MeniItem's "item-activate" signals13:24
mhall119or the "scroll-event" signal from the indicator itself13:25
mhall119but nothing on clicking the indicator13:25
bretthmhall119, i have a workaround, listen to 'activate' on a submenu13:25
bretthnot quite what i wanted, but it works, although not well.13:26
bretthproblem is two 'activate' events will arrive for each mouse over, so now i have to use a timer to filter the 2nd one out.13:28
hakermaniaHey guys. I just received an email saying that my application needs more information. It says: 'Please respond to this request from our approval team, and then resubmit your application' What does it mean "from out approval team"?15:02
hakermaniaJust add it as a comment while resubmitting the application in the field that it has there?15:02
hakermaniaHmm... Got it15:09
hakermaniaYou just have to go back to your application, add a comment there and resubmit, after uploading another ppa15:10
hakermaniaBye :D15:10
=== achuni__ is now known as achuni
=== coolstar_ is now known as coolstar
=== Phoenix87_ is now known as Phoenix87
luke__I've made an app using python and I need to run a command when the app installs, how should I do this?20:04
mhall119luke__: debian/postinst20:07
mhall119but that's frowned upon20:07
mhall119what do you need to run on install?20:08
luke__'sudo pip install pisa' when I was trying to get the module to install when I was developing, that was what did it, I couldn't apt-get isntall anything that would work.20:08
mhall119if you need another package installed, put it in the "Depends:20:19
mhall119if you need another package installed, put it in the "Depends:" line of your debian/control file20:19
mhall119if it's not in a debian package, but it is in pypi, you'll need to convert it into a .deb package and submit it with your app, otherwise include it in your app's sourcecode20:20
luke__Right, but is there a way to specify a pip package?20:20
mhall119as it is, I see python-pisa in the Precise archives, can you use that?20:20
mhall119no, you can only specify .deb packages20:20
luke__I think I tried that and it didn't work, but I'll give it a go.20:23
mhall119do you know what version of pisa you need?20:29
luke__No, I don't. I tried installing python-pisa but I don't know what I would need to import. I tried import pisa but that gave an import error.20:40
mhall119luke__: try "from sx import pisa3"21:07
luke__Thanks, that seems to be working.21:17
Phoenix87is it possible to prevent a GtkPaned from resizing?21:58
Phoenix87I mean to keep it locked according to the status of, say, a ToggleButton21:59
mhall119Phoenix87: that's a good question for askubuntu.com22:24
mhall119use the application-development tag22:24
Phoenix87mhall119: cheers :)22:24
Phoenix87mhall119: I kind of figured that out. Shall I nonetheless post the question and answer it?22:35
mhall119Phoenix87: it would certainly be helpful to other developers, so yes if you don't mind22:36
Phoenix87mhall119: ok22:37
Phoenix87mhall119: http://askubuntu.com/questions/164468/how-to-prevent-the-handle-of-a-gtkpaned-from-being-moved/164469#16446922:59

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