/srv/irclogs.ubuntu.com/2011/12/27/#ubuntu-app-devel.txt

=== JackyAlcine is now known as Alcine
=== Alcine is now known as jalcine
coolstar-pcHow do I prevent Unity from trying to put my app's menu at the top of the screen, as it fails, and my app is almost useless without that menu.03:43
=== jalcine is now known as JackyAlcine
jo-erlendcoolstar-pc, why does it fail?05:22
jo-erlendbut you can provide an environment variable when launching the application in order to deactivate global menu. I don't remember exactly what it's called, though.05:23
jo-erlendcoolstar-pc, UBUNTU_MENUPROXY=0 command. For instance, "UBUNTU_MENUPROXY=0 gcalctool" will run the calculator without integrating its menu with the top panel.05:27
=== jalcine is now known as JackyAlcine
coolstar-pcjo-erlend: Is there a way to have it in the python code?05:46
jo-erlendyou could set that variable from your main method, for instance.05:46
jo-erlendor, at least I think so. I'm not entirely sure, actually.05:46
jo-erlendit probably only affects subprocesses, so it's possible that your main code would have to set the environment variable using something like os.putenv("UBUNTU_MENUPROXY", "0"), then run your application as a subprocess and exit.05:51
coolstar-pcok. I'll try that05:52
jo-erlendbut if there's a problem with how the menubar works with your application, then I would recommend that you investigate what's causing it. Perhaps you're doing something wrong in your app, or that there's a bug in the menubar implementation? In both cases, you should try to fix the problem instead of avoiding it.05:54
coolstar-pcjo-erlend: It might be because i'm putting the menubar in an icon at the right of the toolbar (like chrome), and Unity is trying to put it at the top05:55
jo-erlendok... Then my suggestion would be that if UBUNTU_MENUPROXY is "0" or not set, then you show that icon. Otherwise, you let Ubuntu use its global menu. It is a bad idea to design your application to break with its environment.06:02
coolstar-pcjo-erlend: I developed my App in Ubuntu 10.10, and I saw that when running in Unity, the app doesn't show the menu icon, but in KDE or XFCE it shows.06:04
coolstar-pcIt works fine in Ubuntu 10.1006:04
jo-erlendthe _icon_ is hidden?06:04
coolstar-pcUnity tries to move the icon to the top apparently, and fails06:04
jo-erlenduh..06:04
jo-erlendit sounds to me like you're doing something wrong.06:05
umpirskyHi developers. I have problem adding appindicator to my PyGTK app. When I place this https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators#Python_version into my __init__.py, before gtk.main(), it works, but when I put it in my main window finish_initializing() method, it does not get showed.07:25
umpirskyIf you look at http://bazaar.launchpad.net/~quickly-committers/quickly/trunk/view/head:/data/templates/ubuntu-application/project_root/python_lib/Window.py#L72 they suggest to put it in indicator.py07:26
umpirskyI don't have idea how that file should look like.07:26
umpirskyAnd why it works only in __init__.py07:27
umpirskyHi. Can someone point me to some website/blog/wiki where I can read what are the best practices for creating theme dependent appindicator icons? I found nothing on https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators and https://wiki.ubuntu.com/CustomStatusMenuDesignGuidelines.09:29
umpirskyBasicly I'm lost. I' not sure what icons I can rely on, and if I create my own, how should they look and how to determine active theme e.t.c.09:30
umpirskyIt says "09:32
umpirskyIt says "Themable panel icons – you can set a specific icon to be a panel icon for an indicator: this should make it easier for creating single colour panel icons for light and dark themes." but it does not say how to do it?09:33
=== JackyAlcine is now known as jalcine

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