Commit Graph

52 Commits

Author SHA1 Message Date
Hans de Goede
029b282457 Fix "Source.notify() has been moved to ..."" error
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>
2020-02-22 22:24:51 +01:00
Hans de Goede
aa682804aa Fix 'reference to undefined property "_delegate"' warning
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>
2020-02-22 22:22:50 +01:00
Hans de Goede
f1e0d04631 Fix "Some code tried to set a deprecated GObject property." warning
Recent versions of St.Label no longer have an expand property, so stop
trying to set it.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2020-02-22 22:22:50 +01:00
Hans de Goede
0580b73fa4 Remove fullscreen notification option
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>
2020-02-22 22:22:50 +01:00
Hans de Goede
89a04a36fb Fix indendation
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>
2020-02-22 22:22:50 +01:00
Hans de Goede
f02770da31 Fix TeaTime not working with gnome-shell 3.35.90 and newer
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>
2020-02-22 22:22:50 +01:00
Hans de Goede
5cb25b44eb Fix vertical squashing of the panel icons
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>
2019-05-07 10:35:15 +02:00
Zener
1beccddc5a Merge remote-tracking branch 'origin/master' 2019-04-10 06:16:31 +02:00
Zener
e94ef7f5bc combatiblity for gnome-shell 3.32 (maybe break for earlier versions) 2019-04-09 12:52:38 +02:00
Peter Liebetraut
1a30460f4c Use 'global.display' when 'global.screen' is not available (fixes tea cup animation for gnome 3.30) 2019-03-27 21:40:37 +01:00
Krystian Garbaciak
7afe38b3b3 Add "Stop Timer" menu option. 2018-03-18 13:05:25 +01:00
Olaf Leidinger
ce26373bd7 Clean-up globals and eliminate warnings on Gnome-3.26 2017-11-21 21:33:14 +01:00
Olaf Leidinger
2a053cf4ea Implement HiDPI scaling 2017-11-21 01:29:57 +01:00
Olaf Leidinger
790f5cf928 Simplify translation infrastructure 2017-11-20 23:22:15 +01:00
Jürgen Spitzmüller
907fab139e Keep l7n local (#40)
Keep l7n local, fixing issue issue #37
2017-11-20 22:56:44 +01:00
Olaf Leidinger
2d2fc839fa js-beautified source code 2017-11-03 20:52:04 +01:00
oleid
eccb722095
Merge pull request #34 from kelunik/master
Fix vertical alignment, fixes #30
2017-11-03 17:43:21 +01:00
Niklas Keller
349ab15145 Fix vertical alignment, fixes #30 2017-02-27 20:45:54 +01:00
Martin Kourim
c779410071
remove old countdown when new is selected 2016-12-09 20:28:32 +01:00
chuma
d26caaf67e St.Table no longer exists in gnome-shell 3.18, changing to a BoxLayout 2016-01-15 14:38:31 -05:00
Olaf Leidinger
b6fca8e138 add padding for textual countdown 2015-02-22 13:02:38 +01:00
Olaf Leidinger
fa2c7007fa read and use padding from current theme 2015-02-22 12:53:14 +01:00
Olaf Leidinger
5fc207df2b merge drawing into abstract class 2015-02-22 11:58:37 +01:00
Olaf Leidinger
5153e81064 decrease drawing frequency; should fix high CPU usage (#16) 2014-10-21 21:42:13 +02:00
Olaf Leidinger
2bb0c6a768 use new internal teapot icon 2014-10-15 00:57:39 +02:00
Olaf Leidinger
3e6ad50e37 fix theme color issues and textual coutdown layout 2014-10-14 22:10:49 +02:00
Olaf Leidinger
93c04e30d9 added audible alarm using gstreamer 2014-08-03 19:23:19 +02:00
Olaf Leidinger
241a3dc475 workaround for leading zeros causing failure in string to int conversion in older gnome-shell versions 2014-06-23 22:59:58 +02:00
Olaf Leidinger
c2ba4cf037 remove timer-set notification 2014-02-28 11:04:16 +01:00
Olaf Leidinger
c171ebf3d2 initial version of textual countdown 2014-02-19 00:26:03 +01:00
Olaf Leidinger
ac4f9ec30b remove unused constant to make the extension work on wheezy 2014-02-18 21:40:38 +01:00
Olaf Leidinger
01bde6e6db Make it work on newer shells again 2013-11-05 22:58:22 +01:00
Olaf Leidinger
8f8bc616af Initial support for good old GNOME 3.4 2013-11-05 22:37:04 +01:00
Olaf Leidinger
d165e98b5b calculate time step 2013-11-05 11:46:58 +01:00
Olaf Leidinger
a6a3095e56 use monitor constraint only if it is defined in the shell (GNOME >3.4) 2013-11-05 02:32:46 +01:00
Olaf Leidinger
bb91e2a5c7 Work around bug on my gnome-3.10 which makes the cup stuck at x=width/2, y=0 2013-11-05 02:21:13 +01:00
Olaf Leidinger
b9b8d358b3 remove unnecessary complexity for elder gnome-shell 2013-11-04 20:23:08 +01:00
Olaf Leidinger
4129d0f968 fix the fix for older gnome-shells 2013-11-03 22:54:06 +01:00
Olaf Leidinger
a113f7a859 Hopefully make it work for gnome-shell 3.8 and older 2013-11-03 22:30:50 +01:00
Olaf Leidinger
bde371701f rebased to master 2013-11-03 18:19:40 +01:00
Thomas Liebetraut
1b3facb701 hg graft commit "Added temporary custom timer entry to the menu" 2013-11-03 18:01:44 +01:00
Olaf Leidinger
e0152332c2 add entry for applet settings 2013-11-03 17:57:07 +01:00
Olaf Leidinger
4fffb16ced make brewing time right-aligned 2013-11-03 17:24:02 +01:00
Olaf Leidinger
ad02c03059 update translations 2013-11-03 13:49:26 +01:00
Olaf Leidinger
3fee302396 trying to centre tea cup 2013-11-03 13:48:07 +01:00
Olaf Leidinger
8fc62efb59 make it work for Gnome 3.10 2013-11-03 12:23:48 +01:00
Olaf Leidinger
74f2f1703b fixed warning when loading image file 2013-11-02 17:17:15 +01:00
Thomas Liebetraut
2bb068379e hg graft commit "Added fullscreen notification (original teatime applet style)" 2013-11-02 16:27:32 +01:00
Thomas Liebetraut
ab482a81cf Use gettext domain autodetection (from metadata.json) and don't split strings where appropriate. 2013-11-02 12:53:18 +01:00
Olaf Leidinger
f2070f9725 Proper initialisation of translations 2013-10-31 10:46:02 +01:00