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