Code Monkey home page Code Monkey logo

Comments (8)

slytomcat avatar slytomcat commented on June 15, 2024

Thaks for report.

It seems not a big issue:

  • the Gtk.MenuItem(()) shold be Gtk.MenuItem(label=()) and
  • set_icon - > set_icon_full

I'll fix it soon.

from yandex-disk-indicator.

slytomcat avatar slytomcat commented on June 15, 2024

... or You can do it yourself - any push requests are appreciated!

from yandex-disk-indicator.

MikePooh avatar MikePooh commented on June 15, 2024

=) you meant pull requests. I will do this!

This warnings were detected when workaround about absence of indicator icon in system tray. It shows the standard system icon in the tray and doesn't changes after calling:
self.ind.set_icon(self.icon[status]) in updateIcon(self, status) function.
I was trying to change self.ind.set_icon(self.icon[status]) to self.ind.set_icon_full(self.icon[status], "") but no success. May be missing some packages, but no other warnings...

from yandex-disk-indicator.

slytomcat avatar slytomcat commented on June 15, 2024

Have you fixed the issue with absence of indicator icon in system tray?
What was a problem?

from yandex-disk-indicator.

MikePooh avatar MikePooh commented on June 15, 2024

Проблему решить не удалось. Вместо летающей тарелки показывается шестеренка. Индикатор не меняется в зависимости от состояния. Всегда показывается шестерёнка. После установки почему-то не было файлов иконок в папке .config/yd-tools.. Но даже после ручного их туда добавления проблема не решилась. Немного подебажил, все пути правильные. Функция self.ind.set_icon(self.icon[status]) не меняет индикатор. Хотя она вызывается и ей передается правильный путь к существующим файлам. Может пакетов каких-то не хватает и поэтому AppIndicator3 не правильно интерпретируется системой?

Problem is not solved. There is a gear instead of UFO. Indicator is not changing depends on condition. Gear is always shown. There was no icons in .config/yd-tools.. folder after installation. But problem doesn't solve even after manual copy. Debug revealed that all paths are correct. self.ind.set_icon(self.icon[status]) function doesn't change the indicator however it passed the correct paths to existed files. Maybe I am missing some packages and that's caused AppIndicator3 wrongly interpreted by the system?

from yandex-disk-indicator.

slytomcat avatar slytomcat commented on June 15, 2024

В папке ~/.config/yd-tools/icons/ после установки иконок и не должно быть. Стандартные ставятся в /usr/share/yd-tools/icons/, а в ~/.config/yd-tools/icons/ можно сохранить свои, кастомизированные.

По идее почти все картинки в GTK (по крайней мере иконки) рисуются через PixBuffer, и уже он должен отрисовывать или ругаться если ему не найти чем отрисовывать. Но в деталях что там может не хватать я не копался. В моих экспериментах шестренки выскакивали только при несуществующих путях отданных в set_icon или неподдерживаемых форматов изображений (я пробовал анимированный GIF туда подсунуть).

from yandex-disk-indicator.

slytomcat avatar slytomcat commented on June 15, 2024

Штатные либы для прорисовки через PixBuff лежат всей кучей (практически для всех видов изображений) в пакете libgdk-pixbuf, который должен быть прописан (каскадно) в зависимостях GTK.

from yandex-disk-indicator.

slytomcat avatar slytomcat commented on June 15, 2024

Это закрою.
Все Deprecated методы убрал.

from yandex-disk-indicator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.