/srv/irclogs.ubuntu.com/2010/03/02/#ayatana.txt

=== MacSlow is now known as MacSlow|lunch
=== MacSlow|lunch is now known as MacSlow
NafaiQuestion regarding i10n, as far as the translation mechanism is concerned, N_("Close") is different from GTK_STOCK_CLOSE, right?14:40
Nafaijcastro: So today, I'm following up with pitti's comments on my brasero changes and then gnome-bluetooth, etc14:44
Nafaijpetersen: You around?14:44
jpetersenNafai, yes14:44
jcastrorock and roll!14:44
jpetersenHello :)14:44
jcastroNafai: did you split up vino btw?14:45
NafaiYes14:45
Nafai(did I forget to mention that in my status report?)14:45
jcastrodunno that was yesterday, sorry I forgot14:45
Nafaiheh :)14:45
Nafaiyou've slept since then, I hope14:46
jcastroheh, yeah14:46
NafaiI have a couple problems.  In order to remove the icons from the app indicator menu for brasero, I changed the GtkActionEntry to not use GTK_STOCK_CANCEL for the id but to just use N_("Cancel") for the string14:50
Nafai(The patch is here: https://bugs.launchpad.net/ubuntu/+source/brasero/+bug/497853/comments/6)14:50
ubot4Launchpad bug 497853 in brasero (Ubuntu Lucid) (and 2 other projects) "Support application indicators (affects: 1)" [Wishlist,Incomplete]14:50
jcastrompt: when you get a chance please update, log out and back in and check gnome-power-manager's label things in the menu and let us know what you think.14:51
NafaiBut then that messes up the translations14:51
NafaiBut I'm not sure how to remove the icons if I use GTK_STOCK_CANCEL for the id in the GtkActionEntry14:51
Nafaijpetersen: Any ideas?14:51
NafaiI need to go run some errands for a while (yay more doctor stuff), but I'll check back14:59
jpetersenNafai, hm I do not have a really good idea for that14:59
Nafaiok :(14:59
jpetersenI will be offline for an hour will be back later16:06
* Nafai is back16:24
* hyperair wonders if anyone else frequently killall's notify-osd16:33
qensetedg: Have you had the time to look at my mail lately?16:36
qensehyperair: never needed, actually16:36
qensememory leaks?16:36
tedgqense: Hmm... no, I'm not sure which e-mail you're talking about.16:37
hyperairqense: yes. =(16:37
tedgqense: Did I miss one?16:37
qensetedg: I think so.16:37
hyperairqense: my uptime is only 6h this round.16:37
qensetedg: I sent it to the first e-mail address on the list on your Launchpad profile.16:37
qenseMaybe it got spammed.16:37
qenseShall I sent it again?16:37
tedgqense: Found it.  Sorry... looking now.16:38
qensetedg: ok16:38
qensehyperair: Did you report a bug for that behaviour?16:39
hyperairqense: i think i did.16:39
hyperairqense: a long long time ago....16:39
hyperair(in a galaxy far far away)16:40
qenseIt may still get fixed, I just got an update for GNOME Pilot that fixed a bug with a number in the 100,000.16:40
hyperairqense: i think it's related to the images passed to notify-osd.16:41
hyperairqense: the higher res pictures you pass to it, the faster it leaks.16:42
qenseweird, what images are you receiving then?16:42
hyperairqense: and i've got a lot of high-res album art16:42
qensethat could be the cause of it16:42
qensevalgrind!16:42
hyperairqense: have you ever stuffed a gobject/glib using program into valgrind before?16:43
hyperairqense: you get a million and one errors and warnings and you can't even tell what's wrong and what's right anymore16:43
qensehyperair: Frankly, I've never used valgrind before.16:43
tedgqense: Yeah, the issue is that you're trying to send the enums over dbus -- which really doesn't work.16:43
qensehyperair: Report them alL!16:43
qensetedg: not even a tiny bit?16:43
qense:(16:43
tedgqense: The values need to be sent over dbus as strings, and then translated back.16:43
tedgqense: Yeah, one of the reason is that it doesn't match the KDE spec.16:44
tedgqense: Which is all strings.16:44
hyperairqense: nobody in the right mind is going to stare at the million and one false positives there are16:44
tedgqense: We could of course send ints if we weren't matching that spec.16:44
tedgqense: But we can't send GType enums as the dbus bindings aren't smart enough to turn those into ints.16:44
qensethat's a shame16:44
tedgqense: So for the parts that touch dbus, they need to be int/strings.16:44
qensetedg: tedg: The thing is that everywhere in the AppIndicator class they should be of the correct type, otherwise the bindings for C# don't work properly.16:45
tedgqense: Yeah, we're getting better GLib Dbus bindings in the next rev of Glib -- but that's another 6 months off (at least)16:45
tedgqense: So can we hide the "dbus parts" of the class from C#?16:45
tedgqense: Like make the bindings not have some of the signals in them.16:46
qensetedg: the issues with the bindings are mostly in the set_ and get_property methods16:46
tedgqense: Can those be wrapped in some clever way?16:48
qensetedg: Do you really need the set_ and get_ property methods to save and return strings?16:48
qenseOtherwise we would let get_property() translate the string to the correct type and return that.16:49
tedgqense: Yes, those are the functions that dbus calls to get the properties.16:49
qenseThen we have a problem16:49
qensethe C# bindings call those as well16:49
tedgCan the C# bindings translate the enum values into strings?  It seems some sort of polymorphism should help.16:50
tedgSo you could still set the value, it'd just translate using the g_* values when it's needed.16:50
qensetedg: That is only possible to do if most methods of the bindings would be written manually and added to the .custom file, which would mean you'd have to maintain two libraries instead of one. If we can get everything to be generated using the .metadata file, which is what I'm working on, it's just a matter of running the Makefile and everything gets generated just fine.16:52
qenseMoreover, overriding the Fallback and Unfallback methods requires the inheritance of the whole class.16:53
qenseIf you want to do that you either need to specify the arguments of the constructor in the .metadata file, which is when GAPI expects them to be saved in the type you're giving.16:53
qenseOtherwise you need to manually write a constructor.16:54
qenseand maintain it16:54
tedgHmm, so then in Mono could we ditch the idea of the enums entirely, and let people just use strings through some sort of const.16:56
tedgYou wouldn't get the benefit of the enum, but we'd make it easier to maintain.16:57
qensetedg: That way we'd only have to implement two custom type definitions.16:57
qenseWhich is doable.16:58
NafaiHi jpetersen17:19
jpetersenHi17:19
NafaiSo I need some advice on this: https://bugs.launchpad.net/ubuntu/lucid/+source/brasero/+bug/497853/comments/817:22
ubot4Launchpad bug 497853 in brasero (Ubuntu Lucid) (and 2 other projects) "Support application indicators (affects: 1)" [Wishlist,Incomplete]17:22
Nafaijcastro, mpt ^17:22
NafaiHere's the deal.  With the GtkStatusIcon, when you click it once burning is done, it closes.  So, do replicate behavior, I have changed the Cancel menu item to Close in the App Indicator17:24
NafaiThe translation issue is that I have use N_("Close") instead of GTK_STOCK_CLOSE so the icon wouldn't show17:25
NafaiAnd I wonder what the help string should be17:27
jpetersenMaybe it could help to only display images in app indicator when the "always-show-image" property is TRUE for the GtkImageMenuItem17:29
jpetersenbut that probably than does not display some images which should be shown else17:29
* Nafai nods17:29
Nafaitedg suggested we handle this in each app right now17:30
NafaiAnd so I'm struggling to figure that out17:30
jpetersenYes17:30
NafaiFor example, my next task is to hide the menu items in gnome-bluetooth17:30
NafaiI really don't want to mess with the glade file and would rather do it at runtime (minimize changes to go upstream)17:30
NafaiThere are menu items with the icon-name property set17:31
NafaiWould I just turn it off by setting the icon-name property to "" or NULL?17:31
jpetersenYes that should help usually17:31
NafaiOk, that's what I'll try17:31
mptNafai, in a user testing session right now, I'll look at it in a moment17:33
Nafaimpt: thanks17:33
Nafaijpetersen: Darn, one of the problems with gnome-bluetooth is that it uses stock-id in some cases :(17:33
jpetersenNafai, yes stock-id is annoying in that case17:34
Nafaibecause that forces an icon because it becomes a GtkImageMenuItem, right?17:34
jpetersenone could try gtk_image_menu_item_set_image (item, NULL)17:36
NafaiI'll see what that does17:37
=== MacSlow is now known as MacSlow|capoeira
=== kenvandine is now known as kenvandine[busy]
=== kenvandine[busy] is now known as kenvandine
seb128jcastro, jpetersen: gnome-settings-daemon uploaded to lucid now18:37
jcastro\o/18:41
* mpt finally gets some time to look at Nafai's bug19:03
Nafaithanks19:03
mptah, right19:03
mptThis is one of the applications that shouldn't be in the panel at all19:03
Nafaioh19:03
mptBut we have money to burn, so... :-)19:04
Nafaiso much for what I've done :)19:04
mptlet's see19:04
mptCompletely not your fault at all19:05
mpthm19:05
mptLooking at the patch, you have a "Cancel" item and then a "Close" item?19:05
NafaiYes19:06
Nafaicancel for when the burn is in place, and then when it is done, close19:06
mptWhat is the difference?19:06
Nafai(only one is shown at a time)19:06
mptoh19:06
Nafaithis mirrors the dialog19:06
mptIs that what the notification area item did too?19:06
Nafaiit didn't change the item19:07
Nafaibut when you left clicked, it closed the dialog and went away19:07
Nafaiit had a right-click menu19:07
mptWhat did the right-click menu have in it?19:08
NafaiShow and cancel19:08
jcastrompt: we could use feedback on the power manager changes that landed today too19:09
mptNafai, and what happened to the notification area menu when the burn was done?19:10
Nafaino changes19:11
mptNafai, so it still had a sensitive "Cancel" item that did nothing?19:11
NafaiI think so, let me verify19:11
mptdon't waste a disc on my account :-)19:12
mptNafai, how about, instead of making the whole thing disappear when you choose "Close", make the whole thing disappear (but leave behind the window) as soon as the job is complete?19:13
NafaiI can burn to iso, so no biggie19:13
NafaiYes, no menu changes19:13
mptso we're effectively fixing a bug in Brasero no matter what we do19:14
Nafaiyeah19:14
mptNafai, if you remove the whole menu when the burn finishes you don't need to add a new item.19:14
Nafaicorrect19:15
Nafaimpt: automatically remove the app indicator, and then make sure the dialog is visible?19:18
mptNafai, no need to make sure it's visible, there's no hurry19:19
mptmaybe request attention on it19:19
Nafaiok19:19
Nafaiwell, you can show and hide the dialog from the menu, which is what I mean by make visible19:20
Nafainot necessarily bring to foreground19:20
mptoh, right19:20
mptyes19:20
mptjcastro, I've installed them, but haven't had time to restart yet sorry19:21
jcastrompt: no worries, I was mulling if the same idea applied to the rhythmbox one would be a good idea19:21
Nafaithanks for the advice mpt19:22
mptjcastro, Rhythmbox would be another example of one that would be counterproductive to port for Lucid19:22
mptyou're welcome Nafai19:22
mptjcastro, oh, but that's mostly done isn't it19:22
mptThat's why there's people complaining about the tooltip19:23
mptSorry, forgot that, it seems like ages ago :-)19:23
jcastrompt: at this rate you're basically saying that porting nothing to app indicators is a good idea19:23
Nafai:(19:24
mptjcastro: gnome-control-center, vino, ekiga, gnome-settings-daemon, gnome-gmail-notifier, xchat all make sense to port19:25
hyperairoh hey so mpt agrees with me19:26
hyperairre tooltips19:26
hyperairgnome-control-center has an application indicator? what does it use it for?19:27
mptjcastro, a second class should be adjusted to not use the notification area at all19:27
mptjcastro, and a third class (e.g. Tomboy) should be ported eventually, but appindicator doesn't have the special stuff they need yet (e.g. grid layout)19:27
mpthyperair, Rhythmbox is in the third class -- not necessarily a tooltip, perhaps a better mechanism ;-)19:28
hyperairmpt: what do you mean third class?19:29
hyperairmpt: and i'm speaking from banshee's point of view, which should essentially be the same as rhythmbox in this area.19:29
mpthyperair, ^^^19:29
jcastrohyperair: gnome-cc uses it for the typing break thing19:29
hyperairah typing break.19:29
hyperairi've never used that before. perhaps i should give it a run..19:29
* hyperair flexes left wrist19:30
hyperairmpt: third class meaning a better mechanism than a tooltip?19:30
mpthyperair, maybe19:31
hyperairmpt: er wait, what are these classes referring to?19:31
mpthyperair, categories of applications that have been using the notification area.19:31
hyperairah19:32
mptwe have two goals19:32
mpt(1) reduce the number of them19:32
mpt(2) make the remainder behave consistently19:32
mptWe get #2 by making them a single set of menus19:32
mptWe're not doing so well with #1 at the moment.19:33
hyperairmpt: what i don't really agree with is the complete removal of tooltips. i understand that it would be desirable to make them all follow a consistent interface, but menus have text buttons. these are icons without text.19:33
hyperairmpt: in other words, these are more like toolbar icons that have dropdown menus when clicked.19:34
mptI think it would be useful to brainstorm different ways of showing the track info19:36
mptIt's kind of crazy that music players have been showing it in three different ways19:36
hyperairthree?19:37
mpt1 in the player window itself, 2 in notification bubbles, 3 as a tooltip in the notification area19:37
hyperairi know of the tooltip, what are the other two?19:37
hyperairah.19:37
hyperairwell i think 2 and 3 have their own reasons.19:37
hyperair1 as well19:37
hyperairit wouldn't make sense to not show the track in the player window.19:38
hyperairnotification bubbles are transient and show a change of track19:38
hyperairand tooltips are so you don't have to open the big player window to check the currently playing track, after the notification bubbles have expired.19:38
mptAny two of them you could merge, with a bit of work19:39
hyperairi don't see how #1 could be merged with any of the other two.19:39
mpt(1) and (2) could be merged by making a pseudo-notification-bubble that appeared in exactly the same place, and with exactly the same layout, as the information in the window wherever the window happens to be19:40
hyperair#2 and #3 could be merged, by forgoing notify-osd style popups and showing that tooltip for a brief period when changing.19:40
mptexactly19:40
hyperairi don't see how #1 and #2's merge can be even considered a solution.19:40
hyperairexactly in the same place19:41
hyperairconsidering player windows can move all over the place, your notification bubble is going to also move all over the place19:41
hyperairand it's going to obstruct whatever the user is doing19:41
mptnotification bubbles already obstruct some people wherever they are :-)19:41
hyperairnotify-osd minimizes that.19:41
mptbut yeah, it would be more likely nearer the center of the screen19:42
mptThis is all just brainstorming, not saying any of these are brilliant ideas19:42
hyperairheh19:42
hyperairright19:42
hyperairmpt: there was also the issue about mouse feedback on the notification area icon/app indicator, although that is much less of an issue than the tooltip.19:43
Nafaiwhat do you mean by mouse feedback?19:45
mptditto19:45
hyperairNafai: middle click to play/pause.19:45
hyperairscroll to change track.19:46
Nafaioh, I see19:46
hyperairmouseover for too-er wait, that's tooltips.19:46
NafaiI never realized that the old rhythmbox thingy allowed that :)19:46
hyperairi don't speak for rhythmbox. i speak for banshee.19:46
hyperairtbh i can't be assed about what happens to rhythmbox really =p19:47
Nafaioh, sorry19:47
hyperairi'm not sure whether rhythmbox allowed that though19:47
hyperairit might have19:47
hyperairi know amarok did during the kde3 days.19:48
hyperairi'm not sure if it still does.19:48
hyperaireven exaile allows it somewhat19:48
hyperairi think exaile does volume though19:48
=== chaotic_ is now known as chaotic
=== chaotic_ is now known as chaotic
Nafaijpetersen: Around still? (I realize it is late there :))20:46
NafaiOr anyone else that might know GtkBuilder or gtk menus in general20:47
NafaiI'm having a hard time getting a reference to the menu items I want so I can turn off their icon and I could use some guidance20:48
=== sabdfl1 is now known as sabdfl
jpetersenNafai, hi21:30
NafaiHi jpetersen21:31
jpetersenNafai, which application is it?21:31
Nafaignome-bluetooh21:31
Nafaignome-bluetooth21:31
NafaiSo it uses this glade file: http://git.gnome.org/browse/gnome-bluetooth/tree/applet/popup-menu.ui?id=GNOMEBT_V_2_29_9121:31
Nafaier, gtkbuilder file21:31
Nafaiand then builds the menu: http://git.gnome.org/browse/gnome-bluetooth/tree/applet/main.c?id=GNOMEBT_V_2_29_91#n36121:31
Nafaiif I try getting at the menu item using gtk_builder_get_object (xml, "preferences"), it returns the GtkAction, not the GtkMenuItem21:32
NafaiAnd I don't know how to get at the menu item21:32
jpetersenNafai, ah yes I think you need to get the ui-manager with gtk_builder_get_object (xml, "bluetooth-applet-ui-manager");21:34
NafaiAh, I didn't notice the ui manager there21:35
jpetersenand than the widget with gtk_ui_manager_get_widget21:35
Nafairight21:35
NafaiI think I can do that.  Thanks :)21:35
jpetersenthe path in gtk_ui_manager_get_widget is something like "/bluetooth-applet-popup/preferences" than :)21:36
jpetersenyour welcome :)21:36
jpetersenI will leave now21:36
jpetersengood night :)21:36
ryanpriorIs anybody working to patch Gwibber to handle Google Buzz before Lucid?21:50
jcastrothe 21:56
jcastroAPIs aren't public yet afaik21:57
sanderqdhttp://code.google.com/apis/buzz/ seems you can only retrieve updates, and post them from another connected site21:57
=== MacSlow|capoeira is now known as MacSlow

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