gnome-control-center/panels/common
Felipe Borges 2cf5b90cce common: Check for valid GDateTime object before comparing
Avoids the critical below at runtime
11:14:36.7796                   **[873815]:CRITICAL: cc_util_get_smart_date: assertion 'date != NULL' failed
11:14:36.7802                   **[873815]:CRITICAL: cc_util_get_smart_date: assertion 'date != NULL' failed

Which comes from the location panel passing a NULL date object.

\#0  _g_log_abort (breakpoint=1) at ../shell/cc-log.c:72
        debugger_present = 1
\#1  0x000000000045c3c4 in cc_log_write
    (log_level=10, log_domain=0x7ffff7d592eb "GLib", log_message=0x234c400 "g_date_time_difference: assertion 'begin != NULL' failed", fields=0x7fffffffd740, n_fields=4, user_data=0x0)
    at ../shell/cc-log.c:315
        log_str = 0x234b8d0
        stream = 0x7ffff5dbb4e0 <_IO_2_1_stderr_>
        can_color = 1
\#2  0x000000000045c4f5 in cc_log_handler (log_level=G_LOG_LEVEL_CRITICAL, fields=0x7fffffffd740, n_fields=4, user_data=0x0) at ../shell/cc-log.c:348
        log_domain = 0x7ffff7d592eb "GLib"
        log_message = 0x234c400 "g_date_time_difference: assertion 'begin != NULL' failed"
\#3  0x00007ffff7c9f534 in g_log_structured_array () at /lib64/libglib-2.0.so.0
\#4  0x00007ffff7ca4f57 in g_log_default_handler () at /lib64/libglib-2.0.so.0
\#5  0x00007ffff7c9be29 in g_logv () at /lib64/libglib-2.0.so.0
\#6  0x00007ffff7c9c193 in g_log () at /lib64/libglib-2.0.so.0
\#7  0x00007ffff7c787fa in g_date_time_difference () at /lib64/libglib-2.0.so.0
\#8  0x000000000059c186 in cc_util_get_smart_date (date=0x0) at ../panels/common/cc-util.c:124
        today = 0x2350130
        local = 0x2350100
        span = 10791504
\#9  0x00000000004f8a20 in add_location_app (self=0x1dee1c0, app_id=0x232fef0 "org.gnome.Calendar", enabled=1, last_used=459618461810) at ../panels/privacy/cc-location-page.c:209
        data = 0xffffda80
        app_info = 0x2341c50
        t = 0x0
        row = 0x2348280
        w = 0x234fe00
        icon = 0x2345310
        last_used_str = 0x0
        desktop_id = 0x7fffcc034c30 "DL\310\375\a"
\#10 0x00000000004f8db4 in update_perm_store (self=0x1dee1c0, permissions=0x7fffcc04e2c0, permissions_data=0x7fffcc04ee80) at ../panels/privacy/cc-location-page.c:282
        enabled = 1
        last_used = 459618461810
        iter = {x = {140736616260288, 2, 0, 6386038, 140736616096608, 36922576, 16, 3579507750, 140737488345904, 140737350561909, 33733184, 36922576, 140737488345936, 140737350702366, 36922576, 3278251457363369984}}
        key = 0x232fef0 "org.gnome.Calendar"
        value = 0x7fffcc04e090
\#11 0x00000000004f8f4e in on_perm_store_lookup_done (source_object=0x1e24040, res=0x202ba40, user_data=0x1dee1c0) at ../panels/privacy/cc-location-page.c:324
        error = 0x0
        ret = 0x7fffcc04eef0
        permissions = 0x7fffcc04e2c0
        permissions_data = 0x7fffcc04ee80
\#12 0x00007ffff7e9082c in g_task_return_now () at /lib64/libgio-2.0.so.0
\#13 0x00007ffff7e944c3 in g_task_return () at /lib64/libgio-2.0.so.0
\#14 0x00007ffff7efe88b in reply_cb () at /lib64/libgio-2.0.so.0
\#15 0x00007ffff7e9082c in g_task_return_now () at /lib64/libgio-2.0.so.0
\#16 0x00007ffff7e944c3 in g_task_return () at /lib64/libgio-2.0.so.0
2024-03-27 13:13:13 +00:00
..
cc-common-language.c common: Use g_auto for variables 2018-06-07 01:08:07 +00:00
cc-common-language.h common: sharing: Replace ifdefs with #pragma once 2018-06-01 21:41:34 +00:00
cc-hostname-entry.c general: Use g_clear_handle_id to remove GSources 2024-02-06 09:22:07 +00:00
cc-hostname-entry.h common: Make CcHostnameEntry use CcHostname to access hostnamed 2024-01-30 13:34:10 +00:00
cc-hostname.c common: Introduce CcHostname 2024-01-30 13:34:10 +00:00
cc-hostname.h common: Introduce CcHostname 2024-01-30 13:34:10 +00:00
cc-illustrated-row.c illustrated-row, split-row: Add widget name and css class 2023-03-28 13:52:12 +00:00
cc-illustrated-row.h common, multitasking: Introduce CcIllustratedRow 2023-02-14 13:31:23 -03:00
cc-illustrated-row.ui illustrated-row: Use correct property to scale down image 2023-10-10 12:39:39 +00:00
cc-language-chooser.c Remove unnecessary visibility change 2023-03-29 14:26:55 +13:00
cc-language-chooser.h Use GtkDialog instead of HdyDialog 2020-07-20 08:04:28 +02:00
cc-language-chooser.ui general: Add placeholder text to various search entries 2023-04-21 12:40:42 +00:00
cc-language-row.c region: Fix creating rows for locales without country 2022-05-26 19:05:16 +00:00
cc-language-row.h common: Split out CcLanguageRow from CcLanguageChooser 2021-02-01 04:02:22 +00:00
cc-language-row.ui common: Rename 'check' to 'check_image' 2021-02-23 10:28:22 -03:00
cc-list-row-info-button.c common: Fix name of internal InfoButton get/set functions 2023-05-31 21:34:03 +00:00
cc-list-row-info-button.h common: Introduce CcListRowInfoButton widget 2023-05-16 13:32:21 +00:00
cc-list-row-info-button.ui common: Replace info-symbolic icon with info-outline-symbolic 2024-03-11 15:06:26 +00:00
cc-list-row.c common: Remove switch feature to CcListRow 2023-06-30 09:06:56 +00:00
cc-list-row.h common: Remove switch feature to CcListRow 2023-06-30 09:06:56 +00:00
cc-list-row.ui cc-list-row: Add use-underline property 2023-11-13 09:55:36 +00:00
cc-permission-infobar.c common: Handle when CcPermissionInfobar doesn't have a GPermission 2023-07-12 15:57:06 +00:00
cc-permission-infobar.h common: Port to GTK4 2021-12-14 22:34:21 -03:00
cc-permission-infobar.ui common: Handle when CcPermissionInfobar doesn't have a GPermission 2023-07-12 15:57:06 +00:00
cc-split-row.c split-row: Add :compact property 2023-08-25 08:00:43 +00:00
cc-split-row.h split-row: Add :compact property 2023-08-25 08:00:43 +00:00
cc-split-row.ui cc-split-row: Add use-underline property 2023-11-06 17:46:25 +00:00
cc-time-editor.c common: Fix time entry for RTL languages 2023-05-26 01:03:45 +00:00
cc-time-editor.h common: Port to GTK4 2021-12-14 22:34:21 -03:00
cc-time-editor.ui common: Port to GTK4 2021-12-14 22:34:21 -03:00
cc-time-entry.c common: Connect signal handlers in swapped form 2023-06-07 09:12:54 +12:00
cc-time-entry.h common: Port to GTK4 2021-12-14 22:34:21 -03:00
cc-util.c common: Check for valid GDateTime object before comparing 2024-03-27 13:13:13 +00:00
cc-util.h panels: cc-util: a smart date time 2022-10-25 23:49:16 +00:00
cc-vertical-row.c Replace all occurrences of 'gtk_widget_show' 2023-03-29 14:26:55 +13:00
cc-vertical-row.h common, multitasking: Introduce CcIllustratedRow 2023-02-14 13:31:23 -03:00
cc-vertical-row.ui common, multitasking: Introduce CcIllustratedRow 2023-02-14 13:31:23 -03:00
common.gresource.xml common: Replace info-symbolic icon with info-outline-symbolic 2024-03-11 15:06:26 +00:00
gnome-control-center.rules.in common: Add polkit rules for modem management 2021-08-13 19:25:41 +00:00
gnome-settings-bus.h common: Port to GTK4 2021-12-14 22:34:21 -03:00
gsd-device-manager.c common: Query Virtual core pointer for currently used tablet 2023-12-20 20:57:52 +01:00
gsd-device-manager.h common: Add GsdDevice API to tell whether 2 devices are grouped 2020-09-04 21:46:19 +00:00
gsd-input-helper.c common: Port to GTK4 2021-12-14 22:34:21 -03:00
gsd-input-helper.h common: Remove unused X11/XI1/XI2 API 2019-08-08 15:18:07 +00:00
hostname-helper.c trivial: Replace g_memmove by memmove 2020-02-02 12:25:42 -03:00
hostname-helper.h common: sharing: Replace ifdefs with #pragma once 2018-06-01 21:41:34 +00:00
info-outline-symbolic.svg common: Replace info-symbolic icon with info-outline-symbolic 2024-03-11 15:06:26 +00:00
meson.build common: Introduce CcHostname 2024-01-30 13:34:10 +00:00