Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: minimalni aplikace ktera spusti appmenu-gtk  (Přečteno 1283 krát)

karlitos

  • Stálý člen
  • **
  • Příspěvků: 1057
  • Bioinformatics - solutions in-silico
    • homepage
minimalni aplikace ktera spusti appmenu-gtk
« kdy: 26 Ledna 2011, 20:27:06 »
Zdravim

Hledam zpusob jak zneviditelnit menu v Gtk-aplikacich. Coz lze krasne udelat pomoci appmenu-gtk programu ktery je vyvijeny pro Unity prostredi pro netbooky. Problem je ze je treba jeste mit v panelu indicator-applet ktery pak samotne skryvani menu (a jejich zobrazeni v panelu) aktivuje.

Toho se da docilit ruznymi workaroundy jako dat indicator applet do gnome-panelu na ktery dat autohide s prodlevou zobrazeni 999999999 sekund. Nebo spustit unity-panel-service pri prihlaseni. Radsi bych to ale poresil ciste ... tak jsem zacal otravovat v ayatana mailing listu a oni mi kupodivu odpovedeli :
Citace
You could make a "mock registrar" in DBus that would tell all the
applications that there menus are being registered, but then ignoring
them.  All of them just register to a well-known name in DBus.
appmenu-gtk would then think the menus are being used and hide them in
the application.

Or you could make your own menu module.  The way that the appmenus work
is that GTK loads a module (appmenu-gtk) which controls the exporting of
them over DBus.  You could make your own module that just always hid the
menus.

Citace
I don't think you'll need to use a full mock for this, as that would be
for testing your Python program.  What you'll need to do is implement
this interface in a small program:


http://bazaar.launchpad.net/~indicator-applet-developers/indicator-appmenu/trunk/view/head:/src/application-menu-registrar.xml

The methods don't need to do anything heavy.  Just be there so that the
clients can call them and not get errors.

A ja se priznam ze vubec nevim ktera bije. Snazim se nejak zabyvat Pythonem a PyGTK ale tady ubec nechapu "CO" mam udelat na co se zamerit  ???

Tak kdyby measpon nekdo s dvolenim nakopnul CO mam googlovat ... bych bych vazne moc rad.

diky K
Lenovo ThinkCentre A61 912073G
Athlon X2 5000+ 4GB RAM Nvidia Geforce 9500GT
Linux Mint 9 Isadora , Win7 64Bit

 

Provoz zaštiťuje spolek OpenAlt.