Merge branch master from zeners/gnomeshell-teatime:
* remember running timer
* po/update_strings
* show remaining time in Stop Timer menu item, if graphical style is in use
Now that we install our icon in the standard icon search path, there
is no need to mess with the icon search path; and since 3.36.0
imports.gi.Gtk.IconTheme.get_default() returns null causing TeaTime to
no longer works. Removing the unnecessary messing with the icon search
path fixes this.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
With all the recent changes to fix warnings about using deprecated
APIs I'm pretty sure that the code will no longer work with something
like GNOME 3.10 or the even older 3.4. Drop all the code which
specifically deals with older version.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Fix "Source.notify() has been moved to Source.showNotification() this code
will break in the future" error. Note this is done with a check for
showNotification being a function to preserve compatibility with GNOME-3.34.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Set _delegate (used for DnD) even though we do not enable DnD, this fixes
a couple of 'reference to undefined property "_delegate"' warnings getting
logged.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Unfortunatly gnome-3.35.9x has dropped ClutterTexture, so this needs to
be completely rewritten, lets just remove it for now.
Note patches re-introducing this are welcome.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
After the "Fix TeaTime not working with gnome-shell 3.35.90 and newer"
commit, a bunch of blocks no longer have correct indentation.
These blocks were left as is on purpose to make the diff of that commit
easier to read.
This commit fixes the indentation of these blocks. This commit makes no
changes other then the indentation changes and as such contains no
functional changes.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit contains the minimum amount of changes for TeaTime to mostly
work with gnome-shell 3.35.90 and newer.
There is one big remaining issue after this, the fullscreen notifications
are not working anymore. Fixing this unfortunately is non trivial,
so I plan to remove it in a separate commit.
There are also some JS warnings, I will fix those in separate commits.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
The teapot and especially the progress circle icon in the panel are
squashed with GNOME-3.32. The problem appears to be that the padding
which we are requesting gets applied not only to the surface-size
which we are being passed (which is 20 px wide for our 24 px size),
but gets applied a second time using scaling squashing the image
and making the progress circle non round.
This commit fixes this by removing the padding, as gnome shell
automatically adds plenty of padding and directly requesting 20x20 as
surface size, which results in a 20x27 surface as we are given the full
height of the panel as height, but our own padding code takes care of
that.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>