summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/strings.ts2
-rw-r--r--src/utils/widgets.ts7
2 files changed, 2 insertions, 7 deletions
diff --git a/src/utils/strings.ts b/src/utils/strings.ts
index 4786c6b..77608e8 100644
--- a/src/utils/strings.ts
+++ b/src/utils/strings.ts
@@ -9,3 +9,5 @@ export const pathToFileName = (path: string, ext?: string) => {
const dir = path.slice(start, path.lastIndexOf("/")).replaceAll("/", "-");
return `${dir}-${basename(path, ext !== undefined)}${ext ? `.${ext}` : ""}`;
};
+
+export const capitalize = (str: string) => str.charAt(0).toUpperCase() + str.slice(1);
diff --git a/src/utils/widgets.ts b/src/utils/widgets.ts
index e0e512d..9fb1e29 100644
--- a/src/utils/widgets.ts
+++ b/src/utils/widgets.ts
@@ -72,13 +72,6 @@ export class MenuItem extends astalify(Gtk.MenuItem) {
}
@register()
-export class Calendar extends astalify(Gtk.Calendar) {
- constructor(props: ConstructProps<Calendar, Gtk.Calendar.ConstructorProps>) {
- super(props as any);
- }
-}
-
-@register()
export class FlowBox extends astalify(Gtk.FlowBox) {
constructor(props: ConstructProps<FlowBox, Gtk.FlowBox.ConstructorProps>) {
super(props as any);