/srv/irclogs.ubuntu.com/2013/05/11/#ubuntu-desktop.txt

=== linuxturtle_ is now known as linuxturtle
=== xnox_ is now known as xnox
=== jjardon is now known as jjardon_
=== mfisch` is now known as mfisch
=== Aww is now known as Guest31351
=== Guest31351 is now known as Aww
=== mimico_ is now known as mimico
=== maxb_ is now known as Guest5273
=== infinity_ is now known as infinity
=== Pendulum_ is now known as Pendulum
=== mimico_ is now known as mimico
=== linuxturtle_ is now known as linuxturtle
=== Tm_Tr is now known as Guest41838
robrucyphermox, still need me to file that SRU? or did you get do it already?03:45
=== jjardon is now known as jjardon_
=== Guest41838 is now known as Tm_Tr
=== geser_ is now known as geser
=== Riddelll is now known as Riddell
Laneymlankhorst: impressive10:05
Laneymeanwhile i got some spds and spent a lot of time falling off / being scared that i would fall off10:05
darkxst_Laney, spds are the best ;)11:54
darkxst_I cant ride without them anymore ;)11:54
darkxst_mind you I can barely walk either after todays epic11:55
bashrcTo display notifications should I be using pynotify in 13.04?11:58
mlankhorstLaney: ah I'm on a normal bike, my muscles are lagging behind my heart/lung machine though, I need to do more excercise at high near my limits :/12:58
bashrcAre pynotify and MessagingMenu mutually exclusive?13:33
=== tkamppeter_ is now known as tkamppeter
bashrcDoes anyone know if pynotify should be used on 13.04.  It seems to be somehow mutually exclusive with MessagingMenu.14:59
bashrcIs pynotify still relevant in 13.04, or am I just chasing something that's out of date again?15:04
mitya57bashrc: pynotify was deprecated long time ago :)15:18
bashrcheh15:18
mitya57you should use either libnotify via gobject-introspection or python-notify215:18
bashrcso what is the new hotness?15:18
bashrcthere is something called gi.repository in UnityMail15:19
bashrcbut no documentation for it15:19
mitya57yeah, that's gobject-introspection15:19
mitya57https://live.gnome.org/GObjectIntrospection15:20
bashrcBy looking at UnityMail and some chatlogs, I figured out how to implement the messaging menu, but initiating notoifications remains elusive15:20
bashrchttps://wiki.ubuntu.com/MeetingLogs/devweek1208/libmessagingmenu15:21
mitya57notifications are very simple:15:21
mitya57from gi.repository import Notify15:21
mitya57n = Notify.Notification(title, text, icon)15:21
mitya57n.show()15:21
mitya57... and that's all15:21
bashrcok that looks easy15:22
mitya57you can use None if you don't need text or icon15:22
mitya57https://pypi.python.org/pypi/notify2 works in a very similar way, and it doesn't require a dependency on gobject-introspection15:23
mitya57(but it needs D-Bus instead)15:23
bashrcI've no idea what D-Bus is15:23
mitya57http://www.freedesktop.org/wiki/Software/dbus15:24
bashrcok15:25
bashrcwhat are the icon types for Notify.Notification ?15:32
bashrcwith pynotify I was using notification-message-email15:32
=== mlankhor1t is now known as mlankhorst
mitya57bashrc: it's icon name, string15:42
mitya57'notification-message-email' should work15:43
bashrcok15:44
bashrcare you sutre the function is Notify.Notification?15:47
bashrc*sure15:48
bashrcI'm getting an error which indicates that Notify.Notification takes 0 arguments15:50
bashrcTypeError15:51
LeartSHi Guys. Could someone look and approve/disapprove this patch? https://code.launchpad.net/~andyrock/unity/fix-dnd-alttab15:54
LeartSIt's a fix for bug 111939, 6 years old, fixed on metacity and mutter but not compiz / unity15:55
ubot2`Launchpad bug 111939 in unity (Ubuntu) "Alt-Tab - Not possible to alt-tab during a drag-and-drop operation" [Medium,In progress] https://launchpad.net/bugs/11193915:55
ubot2`Launchpad bug 6 in Launchpad itself ""next 10 entries" at bottom of page" [Medium,Invalid] https://launchpad.net/bugs/615:55
LeartSpoor ubot2` , he tought 6 was a bug :(15:56
mitya57bashrc: ah, sorry, you should use Notify.Notification.New(...)15:59
mitya57err, .new (lowercase)15:59
bashrcok16:00
bashrcnew Notify.Notification?  I just get an invalid syntax error16:03
mitya57LeartS: try asking on Monday on #ubuntu-unity, there will be more chance you'll find someone who can do that16:03
mitya57bashrc: Notify.Notification.new(...)16:03
bashrcah, sorry16:03
LeartSok mitya57, thanks :)16:04
bashrc"you must call notify_init() before showing"16:05
mitya57bashrc: ah, I forgot that you should call Notify.init(your_app_name) before anything else16:06
bashrcby jove I do believe it works.  Messaging menu and notifications.16:08
bashrcBut, like Columbo, there just one more thing that's bothering me.  On the messaging menu when you select a mailbox entry is there a function which can be called based upon that event?16:09
mitya57bashrc: yes, for example unity-mail does self.mmapp.connect('activate-source', self.on_mm_item_clicked)16:10
bashrcok.  And that applies to the mailboxes in addition to the server entry?16:11
mitya57bashrc: IIRC in libmessaging-menu there's no distinction between "server" and "client" entries — everything is called "sources"16:13
bashrcoh I see16:13
mitya57maybe larsu knows better16:13
bashrcSo I think that covers the Unity integration. Thanks for your assistance.16:14
mitya57you are welcome16:15
=== VD is now known as Guest47623
=== mimico_ is now known as mimico
bashrcIs there any programatic way to set a keyboard shortcut to open an application?  Can it be done in a .desktop file?17:46
=== attente_ is now known as attente
=== Ursinha-afk is now known as Ursinha
LeartSbashrc: when the application is not running? I hope not..18:39
=== thumper is now known as Guest11243
=== Guest11243 is now known as _thumper_
=== _thumper_ is now known as thumper
=== tkamppeter_ is now known as tkamppeter
=== Ursinha is now known as Ursinha-afk
=== Pendulum_ is now known as Pendulum
=== ayan_ is now known as ayan
=== mimico_ is now known as mimico
=== mchro- is now known as mchro
=== tkamppeter_ is now known as tkamppeter
=== mchro- is now known as mchro
=== Trevinho_ is now known as Trevinho

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