/srv/irclogs.ubuntu.com/2010/01/14/#ayatana.txt

bratschejono: You can either do it when you create the indicator, with app_indicator_new()00:03
bratscheOr with app_indicator_set_icon()00:03
jonobratsche, what to I pass set_icon?00:04
jonobratsche,  a path to an icon?00:05
bratscheNo, the icon name.00:06
jonohmmm 00:06
jonohow can I find out an apps icon name?00:06
bratscheThere's some icon naming spec somewhere.. tbh I don't really know where is a proper list of these names. :/00:06
jonoahhh its ok00:06
RAOFjono: The .desktop file is generally a good place.00:06
jonoI have it00:06
jonook solved that00:07
jonobratsche, ok, right now I have:00:08
jonoself.statusicon.connect('popup-menu', self.on_icon_popup, self.menu)00:08
jonoI need to port this over to appindicator00:08
bratscheOh damn, people use Python?  Ugh.00:09
bratsche:)00:09
jonoheh00:09
jonoI tried: self.menu.connect('popup-menu', self.on_icon_popup) and no luck00:10
jonoI just want to trigger the popup-menu signal00:10
jonoI guess there needs to be an appindicator signal for this00:12
jonoas it maps to the gtkstatusicon00:12
bratscheI think you can emit the signal yourself, but I don't know the Python fu for it.00:12
bratscheBut I think you can do g_signal_emit_by_name (self.menu, "popup-menu",....)00:13
jonohmmm00:13
jonoI basically want to run a method when the icon is clicked on00:13
jonoso I would need to detect when it is clicking on00:14
bratscheOh, when someone clicks on the indicator?00:14
jonoyes00:14
jonomaybe I could use set-focus-child00:14
jonoI basically want to regenerate the menu whenever it is clicked00:14
jonoas it has dynamic items00:15
bratscheOh shit.00:15
bratscheHmm.00:15
bratscheI don't think you can do that right now.00:15
jonoballs00:15
bratscheLet me think for a sec.00:15
jonothanks :)00:15
bratscheI think one option is that you could dump a menu with every menuitem to the indicator, and then hide the menuitems dynamically.  But I don't think there's currently any event proxy for that popup-menu event so you'd need to hide the menuitems at runtime as they change.00:17
jonoit seems like I just need to ask ted to add this00:18
bratscheYeah probably.00:18
jonook, thanks pal00:18
jonoGetting Things GNOME is most of the way there :)00:18
bratscheNice!00:19
jonobratsche, ok, I emailed him about it00:23
jonothanks!00:23
bratscheSure dude, any time :)00:24
=== MacSlow is now known as MacSlow|lunch
=== MacSlow|lunch is now known as MacSlow
=== beuno is now known as beuno-lunch
=== chaotic_ is now known as chaotic
=== beuno-lunch is now known as beuno
vishdjsiegel1: hi.. the solution for the .RUN file was trivial [or i think so] we can keep the terminal from auto-closing? is that tugh?17:23
vishtough*17:23
djsiegel1vish: I don't think it's a good paper cut17:23
djsiegel1(1) it doesn't affect most Ubuntu users17:23
djsiegel1(2) changing it will break behavior for many sys admins who have written scripts17:24
djsiegel1many people may depend on terminals closing themselves17:24
djsiegel1we could break that, and then support calls would explode from users with exited terminals filling up their screens :)17:24
vishok , ;)17:25
djsiegel1but I agree it's a good feature for GNOME Terminal to implement -- keep open17:25
djsiegel1I've needed it in the past17:25
vishdjsiegel1: yeah , thats why i didnt set a milestone :)17:25
djsiegel1And you can confirm paper cuts without milestoneing them17:25
djsiegel1looks like we have way more than 10 paper cuts queued up for round-1017:25
vishdjsiegel1: thats for now , on purpose...17:26
djsiegel1ok17:26
vishdjsiegel1: i'v been trying to get some folks fix bugs on milestone 10 , so if they fix it we are good..17:26
djsiegel1ok, cool17:26
jonotedg, bratsche, take a look at http://pastebin.ubuntu.com/356738/20:36
jonoits a simple python script that creates an app indicator20:36
jonothe problem is that when I wrap the indicator code in a class and create an object and create it, it doesnt work20:37
jonoif I just run the indicator code without the class it works fine20:37
jonoany idea why?20:37
jonothe class runs ok, the constructor is run20:37
bratscheBecause it's written in Python, and God has already killed all the available kittens for the day.20:37
* bratsche clicks20:38
jonohaha20:38
jonobratsche, tedg I think it might be a bug, as the class is running20:38
jonoaha, just the man20:39
jonoDBO, can you look at  http://pastebin.ubuntu.com/356738/20:39
jono its a simple python script that creates an app indicator20:39
jono the problem is that when I wrap the indicator code in a class and create an object and create it, it doesnt work20:39
jono if I just run the indicator code without the class it works fine20:39
jono any idea why?20:39
jono the class runs ok, the constructor is run20:39
DBOlooking20:39
jonothanks20:39
jonoI added a quick test to create and show a gtk window in the constructor and it showed, so the gtk mainloop is running20:40
jonoI want to get this snippet in python-snippets :)20:40
DBOinteresting problem jono20:48
jonoDBO, odd, eh?20:48
DBOI wonder if python is gcing it20:51
DBOnope20:52
jonoDBO, gcing?20:53
DBOgarbage collecting20:53
DBOoh wait20:53
DBOgot it20:54
DBOyou got bit by garbage collection20:55
DBOjono, http://pastebin.ubuntu.com/356741/20:55
jonoDBO, what is different?20:56
DBOthe self's20:56
jonooh they are self20:56
jonowhy does that matter?20:56
DBOit stores the variables as class level instead of method20:56
DBOso your constructor was ending, and then the items were being collected20:56
jonooh right20:57
jonogotcha20:57
jonothanks!20:57
jonohmm still not working20:57
* DBO double checks20:58
DBOworks fine here20:58
DBOi see an ubuntu icon20:58
DBOand 4 menu items20:58
jonooh it does work20:58
DBOok good20:59
jonothanks DBO!20:59
DBOnp21:00
mrmcq2uwhy has rgba been ripped from the ppa?21:06
tedgmrmcq2u: My guess would be that it's gone into the main distro... but I bet kenvandine would know.21:08
* kenvandine reads back21:09
mrmcq2uwell a new version of gtk has been pushed into lucid but I saw nothing about rgba in the changelog21:09
jonoApplication Indicator example added to python-snippets :)21:09
kenvandinemrmcq2u, oh... i don' tknow... ask bratsche21:10
kenvandinelatest patch he gave me removed it21:10
mrmcq2uthats odd21:10
tedgjono: Cool!21:11
mrmcq2uwas hoping to test it with murrine from git which required a later version of gtk than the one previously supplied in the ppa21:11
jonotedg, :)21:14
kenvandinebratsche, i assume you have the story on that?21:15
bratscheHang on a minute21:25
jonotedg, jcastro http://www.jonobacon.org/2010/01/14/application-indicators-rocking-the-house/21:32
tedgjcastro: https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators#Custom%20Fallbacks21:35
jcastrotedg: thanks21:35
jcastroI'll fix the spelling21:36
tedgjcastro: I really wanted to link to the fallback and unfallback functions in that last file... but I can't figure out how to do that with Loggerhead. :(21:36
tedgjcastro: Thanks :)21:36
bratschemrmcq2u: I reverted some of those changes for now.  I need to focus on one thing at a time, and that was getting in the way.21:43
bratschemrmcq2u: It is still something that's planned, but I don't know any specific timetables for it right now.21:43
mrmcq2uright21:45
mrmcq2uplanned for lucid though right?21:45
bratscheOh I think I was misreading some of this.  Yeah, a new version of gtk went into Lucid that doesn't have this patch.. but a new version went into the Desktop PPA that has an updated version of the patch, and this is hopefully going into Lucid soon.21:55
bratscheThe new revision in the desktop PPA doesn't have the rgba stuff, because I don't have time to debug some stuff at the moment.21:56
bratscheWhether it goes into Lucid or into M I don't know yet, depends on time.  There's other stuff that needs working on.  But it is still planned, I just can't answer yet when it's going in.21:58
bratscheWe need a bot to entertain us in this channel.22:10
tedgbratsche: Oh, I thought that was your job! ;)22:23
=== kenvandine_ is now known as kenvandine
kwwiibratsche: did you see my email about csd?22:42

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