From 7baed29551c1f237e5b89ff6cb0ce22c060d95d1 Mon Sep 17 00:00:00 2001 From: mindonwarp Date: Sun, 7 Jun 2026 09:23:21 +0200 Subject: [PATCH] event-editor: Remove dead code Looks like the gcal-time-chooser-row.blp was resurrected from a forgotten .ui file with "blueprint-compiler port". The .ui and .h were not removed with !516 Part-of: --- po/POTFILES.in | 1 - .../event-editor/gcal-time-chooser-row.blp | 36 ----------------- src/gui/event-editor/gcal-time-chooser-row.h | 39 ------------------- src/gui/event-editor/meson.build | 1 - 4 files changed, 77 deletions(-) delete mode 100644 src/gui/event-editor/gcal-time-chooser-row.blp delete mode 100644 src/gui/event-editor/gcal-time-chooser-row.h diff --git a/po/POTFILES.in b/po/POTFILES.in index cdd6711a..905cab20 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -39,7 +39,6 @@ src/gui/event-editor/gcal-schedule-section.blp src/gui/event-editor/gcal-schedule-section.c src/gui/event-editor/gcal-summary-section.blp src/gui/event-editor/gcal-summary-section.c -src/gui/event-editor/gcal-time-chooser-row.blp src/gui/event-editor/gcal-time-zone-dialog.blp src/gui/event-editor/gcal-time-zone-dialog.c src/gui/gcal-application.c diff --git a/src/gui/event-editor/gcal-time-chooser-row.blp b/src/gui/event-editor/gcal-time-chooser-row.blp deleted file mode 100644 index f295f873..00000000 --- a/src/gui/event-editor/gcal-time-chooser-row.blp +++ /dev/null @@ -1,36 +0,0 @@ -using Gtk 4.0; -using Adw 1; - -template $GcalTimeChooserRow: Adw.EntryRow { - EventControllerFocus { - notify::contains-focus => $on_contains_focus_changed_cb(template) not-swapped; - } - - MenuButton { - icon-name: "clock-alt-symbolic"; - valign: center; - tooltip-text: _("Edit Time"); - - popover: Popover { - position: bottom; - margin-top: 12; - margin-bottom: 12; - margin-start: 12; - margin-end: 12; - - $GcalTimeSelector time_selector { - notify::time => $on_time_selected_changed_cb(template) not-swapped; - } - - show => $on_time_popover_shown_cb(template) not-swapped; - }; - - accessibility { - label: _("Edit time"); - } - - styles [ - "flat", - ] - } -} diff --git a/src/gui/event-editor/gcal-time-chooser-row.h b/src/gui/event-editor/gcal-time-chooser-row.h deleted file mode 100644 index 4fc01b08..00000000 --- a/src/gui/event-editor/gcal-time-chooser-row.h +++ /dev/null @@ -1,39 +0,0 @@ -/* gcal-time-chooser-row.h - * - * Copyright (C) 2024 Titouan Real - * - * gnome-calendar is free software: you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * gnome-calendar is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see . - */ - -#pragma once - -#include "gcal-enums.h" - -#include - -G_BEGIN_DECLS - -#define GCAL_TYPE_TIME_CHOOSER_ROW (gcal_time_chooser_row_get_type ()) - -G_DECLARE_FINAL_TYPE (GcalTimeChooserRow, gcal_time_chooser_row, GCAL, TIME_CHOOSER_ROW, AdwEntryRow) - -GcalTimeFormat gcal_time_chooser_row_get_time_format (GcalTimeChooserRow *self); -void gcal_time_chooser_row_set_time_format (GcalTimeChooserRow *self, - GcalTimeFormat time_format); - -GDateTime* gcal_time_chooser_row_get_time (GcalTimeChooserRow *self); -void gcal_time_chooser_row_set_time (GcalTimeChooserRow *self, - GDateTime *date); - -G_END_DECLS diff --git a/src/gui/event-editor/meson.build b/src/gui/event-editor/meson.build index 0ffcd907..2ea30207 100644 --- a/src/gui/event-editor/meson.build +++ b/src/gui/event-editor/meson.build @@ -13,7 +13,6 @@ blueprints = custom_target( 'gcal-reminders-section.blp', 'gcal-schedule-section.blp', 'gcal-summary-section.blp', - 'gcal-time-chooser-row.blp', 'gcal-time-zone-dialog-row.blp', 'gcal-time-zone-dialog.blp', 'gcal-attendees-section.blp',