summaryrefslogtreecommitdiff
path: root/applets/clock
AgeCommit message (Collapse)AuthorFilesLines
2023-07-11Clock applet/wayland: position calendar window same as in x11Luke from DC2-83/+195
* Clock applet/wayland: position calendar window same as in x11 - Wayland/clock: fix calendar window rendering when moved Ensure the calendar window cannot be "stretched" across the screen if the panel or the applet is moved while the calendar is showing
2023-06-28Fix distribution of applet service filesColomban Wendling1-1/+1
Fix distribution of the applet service files sources when building from an in-process-configured build. This fixes `make distcheck` and tarballs in builds configured with `--with-in-process-applets=all` (or actually any in-process applet). The issue was that the .service.in file was referenced indirectly in EXTRA_DIST, and the variable listed there was only filled in a conditional. Automake is not able to resolve this and see it still should distribute the reference of that variable, even if set conditionally. Fix this by always setting the variable properly, even if it's only used for out-of-process builds.
2023-05-17tell dconf-edit about relocatable schemas (#1355)Denis Gorodnichev1-10/+0
* tell dconf-edit about relocatable schemas * self fix for incorrect and duplicated records remove duplicated schemas for currect path remove incorrect schemas for current path * remove clock applet hack * expose mate_panel_applet_settings_new to introspection add "transfer full" annotation to make this method available throught introspection
2023-03-27Clock Applet: Update date/time and weather after resume from sleep modeGordon Norman Squash1-0/+103
Before this commit, the Clock Applet was unaware of when the system resumed from sleep mode (e.g. suspend or hibernate). This meant that, if the user suspended the system and then woke it up some time later, the clock might not show the real current time, but instead would continue to show the time at which the system was suspended for up to a minute after the system woke up. This could be confusing to the user if they peered up at the clock immediately after, say, opening their laptop lid. This commit connects to ConsoleKit or (if available) systemd-logind via D-Bus, and listens for a signal that indicates when the system wakes up from sleep mode. When the system does wake up, the Clock Applet updates the date/time immediately, and also updates all the weather/temperature readings if possible. Note that if logind is missing, ConsoleKit2 is required for this feature to work; the original ConsoleKit lacked the signal required to implement this feature. This should not be a problem since it is unlikely that anyone would even consider using the original ConsoleKit in this day and age.
2022-06-28clock: Fix memory leakColomban Wendling1-1/+2
2022-03-18clock: cast from function call of type 'gdouble' to non-matching typerbuj1-3/+3
2022-01-02clock: fix memory leakrbuj1-0/+2
2021-12-20Fix some -Wsign-compare warningsrbuj1-5/+5
2021-12-20Remove unnecessary cast in g_signal_connect* callrbuj3-23/+19
2021-12-19Use dashes instead of underscores in signal namesrbuj1-13/+13
2021-12-19clock: gtk_entry_set_alignment in clock.uirbuj2-3/+3
2021-12-19clock: gtk_entry_set_width_chars in clock.uirbuj2-3/+3
2021-12-19clock: Upgrade clock.uirbuj1-294/+340
2021-12-19clock: Define _clock_get_widget instead of using one sentence methodrbuj1-7/+2
2021-12-19clock: simplify temperature_unit_changed and speed_unit_changedrbuj1-22/+23
2021-12-19clock: fix temperature_unit_changed and -Wsign-compare warningsrbuj1-7/+13
2021-12-19Use GLib's new g_clear_signal_handler() function to simplify coderbuj1-2/+10
2021-12-16Use g_clear_pointer() and g_clear_object()rbuj6-66/+23
2021-12-11Use a blank line at mostrbuj7-14/+0
2021-07-28Fix clock applet add location crashzhuyaliang2-3/+3
2021-02-07Redundant NULL check before freeing a variablerbuj3-73/+27
2021-02-04build: Use PACKAGE_URL variablerbuj1-1/+1
2021-01-16Update copyright to 2021rbuj1-1/+1
2020-12-11remove function calls to mate_panel_applet_set_background_widgetmbkma1-3/+0
keep mate_panel_applet_set_background_widget for compatibility
2020-09-07Remove variableScope warnings reported by cppcheckrbuj6-31/+21
cppcheck --enable=all . 2> err.txt grep variableScope err.txt
2020-08-05clock-face: Use gdk_pixbuf_new_from_resource_at_scalerbuj3-60/+2
2020-08-01clock: assignment to 'GSList *' from incompatible pointer type 'GList *'rbuj1-2/+2
2020-08-01clock: Use single-linked lists for locationsrbuj5-45/+45
2020-08-01clock: sort locations by time reverse and namerbuj1-1/+17
2020-08-01clock: merge sorting and reversing node list of selected locationsrbuj1-2/+7
2020-07-29clock: Fix GError double freeTomas Bzatek4-6/+1
Let the GError ownership on the async finish method call.
2020-07-29clock: Properly free rsvg handlesTomas Bzatek1-1/+3
2020-07-29clock: Fix leaking GtkListStoreTomas Bzatek1-4/+4
The gtk_tree_view_set_model() adds its own reference.
2020-07-29clock: Fix list iterationTomas Bzatek1-11/+12
Iteration over a linked list should be done over a side control variable and list head needs to be preserved for proper list free.
2020-07-29clock: Fix leaking cairo surfaceTomas Bzatek1-0/+1
2020-07-08clock: Simplify notebook scroll-event callbackrbuj1-40/+35
2020-07-05Avoid using single-line cpp commentsrbuj2-4/+5
2020-07-05Use '#include <config.h>' instead of '#include "config.h"'rbuj3-3/+3
2020-03-02Do not collect the translation for Iconrbuj1-1/+1
2020-01-12Update copyright to 2020raveit651-1/+1
2019-12-13Clock applet: Fix string comparisonClement Lefebvre1-2/+5
2019-12-13clock applet: add a call to ATK to provide the current displayed timeJonathan Michalon1-2/+7
2019-11-15fix mate-panel can not find mo fileWu Xiaotian1-1/+1
2019-11-11migrate from intltool to gettextWu Xiaotian2-10/+11
2019-10-09Fetch clock formats using LC_TIME (as opposed to LANGUAGE)Clement Lefebvre1-0/+17
This is a port of https://github.com/linuxmint/cinnamon-desktop/commit/7cd7c008e05acf36efd87446256d28a8b89d187a Which fixed https://github.com/linuxmint/cinnamon-desktop/pull/132 This commit fixes the same issue in the MATE clock applet.
2019-09-16clock-face: fix code formatingraveit651-310/+310
- replace tabs with spaces - fix a few indentation - reduce leading spaces (8 --> 4)
2019-09-14clock: avoid deprecated g_type_class_add_privateWu Xiaotian6-111/+104
2019-07-09[clock-applet] Add scroll interface tabs with mouse wheelLaurent Napias1-1/+70
2019-07-05Remove trailing whitespacesLaurent Napias6-13/+13
2019-06-20Add supported platform values to *.mate-panel-applet filesWilliam Wold1-0/+1