bretth | how do i catch the event when the user clicks on my appindicator? | 06:32 |
---|---|---|
dholbach | good morning | 07:02 |
bretth | seems like there are no signals for appindicator | 07:04 |
bretth | so to catch the show event, i should listen to the 'map' of the menu inside the appindicator. | 07:05 |
bretth | dholbach, do you know how i can catch the signal when the user clicks my appindicator? | 07:09 |
bretth | watching the 'map' signal on the menu is not working. | 07:11 |
dholbach | bretth, I'm afraid I don't | 07:11 |
dholbach | mhall119 or tremolux might know, but they're both in the US, so likely sleeping right now | 07:12 |
bretth | no good for us in asia. | 07:13 |
dholbach | of course there's more people who know this, but these are the folks I just found in the channel list | 07:13 |
dholbach | you could try #ubuntu-desktop too | 07:14 |
bretth | ubuntu is lacking polish, how could this be? https://bugs.launchpad.net/screenlets/+bug/522152 | 07:23 |
ubot2 | Ubuntu bug 522152 in libappindicator "indicator-application does not send signals when a menu is shown/hidden" [Wishlist,Confirmed] | 07:23 |
dholbach | bretth, it's open-source - I'm sure they'd welcome a fix | 07:27 |
dholbach | hey aquarius, dpm | 07:28 |
dholbach | maybe you can help bretth? | 07:28 |
dholbach | <bretth> seems like there are no signals for appindicator | 07: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 |
aquarius | hrm. 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 |
bretth | aquarius, i want to fill it with dynamic data | 07:30 |
dpm | bretth, 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 |
aquarius | bretth, and you don't want to update the menu when the data changes? | 07:31 |
bretth | i only want to update the menu if its shown, because there might be alot of updates. | 07:31 |
aquarius | k | 07:31 |
aquarius | hrm. Am trying to work out which other indicators might do this, to serve as an example. | 07:32 |
aquarius | the weather indicator, perhaps? | 07:32 |
aquarius | ah, no, the weather indicator refreshes in the background. | 07:34 |
aquarius | and 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 just | 07:42 |
aquarius | ...tried it) | 07:42 |
Phoenix87 | bretth: https://bugs.launchpad.net/ubuntu/+source/libappindicator/+bug/522152 | 07:45 |
ubot2 | Ubuntu bug 522152 in libappindicator "indicator-application does not send signals when a menu is shown/hidden" [Wishlist,Confirmed] | 07:45 |
aquarius | https://bugs.launchpad.net/screenlets/+bug/522152 is relevant here, I think; it's marked as "wishlist | 07:46 |
aquarius | heh, Phoenix87 is faster than I :) | 07:46 |
Phoenix87 | eheh | 07:47 |
Phoenix87 | bretth: did you try connecting to the menu's draw signal? | 07:47 |
bretth | Phoenix87, yes | 07:48 |
Phoenix87 | hmm | 07:49 |
bretth | i tried them all, 'map' 'map-event', 'expose', 'realize' | 07:49 |
Phoenix87 | bretth: so i guess the indicator is not handling all the signals :\ | 07:49 |
Phoenix87 | bretth: did you try the same on child items? | 07:50 |
bretth | not yet, i'm trying that next | 07:51 |
Phoenix87 | ok | 07:51 |
davidcalle | dpm, hey | 07:51 |
Phoenix87 | bretth: 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 |
bretth | might waste? | 07:52 |
dpm | morning davidcalle | 07:52 |
bretth | it will waste. | 07:52 |
aquarius | bretth, 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 so | 07:52 |
Phoenix87 | bretth: well you basically have a loop that checks the widget status every, say, 1 millisecond | 07:53 |
davidcalle | dpm, 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 |
bretth | ok, i'll talk to tedg later. | 07:53 |
aquarius | bah, don't spin your app every millisecond. I have a battery here :) bretth is already wise enough to not do that :) | 07:53 |
dpm | davidcalle, 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 |
davidcalle | dpm, thanks | 07:56 |
dpm | np | 07:56 |
mister | Is it possible to dynamically update label of a menu item in appindicator? | 11:08 |
mister | Is it possible to dynamically update label of a menu item in appindicator? | 11:44 |
mhall119 | bretth: AFAIK the only signals you can listen to are the MeniItem's "item-activate" signals | 13:24 |
mhall119 | or the "scroll-event" signal from the indicator itself | 13:25 |
mhall119 | but nothing on clicking the indicator | 13:25 |
bretth | mhall119, i have a workaround, listen to 'activate' on a submenu | 13:25 |
bretth | not quite what i wanted, but it works, although not well. | 13:26 |
bretth | problem 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 |
hakermania | Hey 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 |
hakermania | Just add it as a comment while resubmitting the application in the field that it has there? | 15:02 |
hakermania | Hmm... Got it | 15:09 |
hakermania | You just have to go back to your application, add a comment there and resubmit, after uploading another ppa | 15:10 |
hakermania | Bye :D | 15: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 |
mhall119 | luke__: debian/postinst | 20:07 |
mhall119 | but that's frowned upon | 20:07 |
mhall119 | what 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 |
mhall119 | if you need another package installed, put it in the "Depends: | 20:19 |
mhall119 | if you need another package installed, put it in the "Depends:" line of your debian/control file | 20:19 |
mhall119 | if 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 sourcecode | 20:20 |
luke__ | Right, but is there a way to specify a pip package? | 20:20 |
mhall119 | as it is, I see python-pisa in the Precise archives, can you use that? | 20:20 |
mhall119 | no, you can only specify .deb packages | 20:20 |
luke__ | I think I tried that and it didn't work, but I'll give it a go. | 20:23 |
mhall119 | do 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 |
mhall119 | luke__: try "from sx import pisa3" | 21:07 |
luke__ | Thanks, that seems to be working. | 21:17 |
Phoenix87 | is it possible to prevent a GtkPaned from resizing? | 21:58 |
Phoenix87 | I mean to keep it locked according to the status of, say, a ToggleButton | 21:59 |
mhall119 | Phoenix87: that's a good question for askubuntu.com | 22:24 |
mhall119 | use the application-development tag | 22:24 |
Phoenix87 | mhall119: cheers :) | 22:24 |
Phoenix87 | mhall119: I kind of figured that out. Shall I nonetheless post the question and answer it? | 22:35 |
mhall119 | Phoenix87: it would certainly be helpful to other developers, so yes if you don't mind | 22:36 |
Phoenix87 | mhall119: ok | 22:37 |
Phoenix87 | mhall119: http://askubuntu.com/questions/164468/how-to-prevent-the-handle-of-a-gtkpaned-from-being-moved/164469#164469 | 22:59 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!