Skip to content

Commit 136d07c

Browse files
committed
0.1.0 Commit
1 parent b2ca8ef commit 136d07c

File tree

7 files changed

+27
-24
lines changed

7 files changed

+27
-24
lines changed

data/code.leech.pytimer.desktop.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[Desktop Entry]
2-
Name=pytimer
2+
Name=PyTimer
33
Exec=pytimer
44
Icon=code.leech.pytimer
55
Terminal=false

src/__init__.py

Whitespace-only changes.

src/main.py

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# main.py
22
#
3-
# Copyright 2025 Carbon751
3+
# Copyright 2025 CodeLeech
44
#
55
# This program is free software: you can redistribute it and/or modify
66
# it under the terms of the GNU General Public License as published by
@@ -35,7 +35,6 @@ def __init__(self):
3535
flags=Gio.ApplicationFlags.DEFAULT_FLAGS)
3636
self.create_action('quit', lambda *_: self.quit(), ['<primary>q'])
3737
self.create_action('about', self.on_about_action)
38-
self.create_action('preferences', self.on_preferences_action)
3938

4039
def do_activate(self):
4140
"""Called when the application is activated.
@@ -50,20 +49,14 @@ def do_activate(self):
5049

5150
def on_about_action(self, *args):
5251
"""Callback for the app.about action."""
53-
about = Adw.AboutDialog(application_name='pytimer',
52+
about = Adw.AboutDialog(application_name='PyTimer',
5453
application_icon='code.leech.pytimer',
55-
developer_name='Carbon751',
54+
developer_name='CodeLeech',
5655
version='0.1.0',
57-
developers=['Carbon751'],
58-
copyright='© 2025 Carbon751')
59-
# Translators: Replace "translator-credits" with your name/username, and optionally an email or URL.
60-
about.set_translator_credits(_('translator-credits'))
56+
developers=['CodeLeech https://github.com/code-leech', 'GTK Devs https://gtk.org'],
57+
copyright='© 2025 CodeLeech')
6158
about.present(self.props.active_window)
6259

63-
def on_preferences_action(self, widget, _):
64-
"""Callback for the app.preferences action."""
65-
print('app.preferences action activated')
66-
6760
def create_action(self, name, callback, shortcuts=None):
6861
"""Add an application action.
6962

src/meson.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ configure_file(
2727
)
2828

2929
pytimer_sources = [
30-
'__init__.py',
3130
'main.py',
3231
'window.py',
3332
]

src/pytimer.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# pytimer.in
44
#
5-
# Copyright 2025 Carbon751
5+
# Copyright 2025 CodeLeech
66
#
77
# This program is free software: you can redistribute it and/or modify
88
# it under the terms of the GNU General Public License as published by

src/window.py

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
# window.py
2+
#
3+
# Copyright 2025 CodeLeech
4+
#
5+
# This program is free software: you can redistribute it and/or modify
6+
# it under the terms of the GNU General Public License as published by
7+
# the Free Software Foundation, either version 3 of the License, or
8+
# (at your option) any later version.
9+
#
10+
# This program is distributed in the hope that it will be useful,
11+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
# GNU General Public License for more details.
14+
#
15+
# You should have received a copy of the GNU General Public License
16+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
#
18+
# SPDX-License-Identifier: GPL-3.0-or-later
19+
120
import math
221
import time
322
import gi
@@ -17,8 +36,7 @@ class PytimerWindow(Adw.ApplicationWindow):
1736
header_bar = Gtk.Template.Child('header_bar')
1837
reset_button = Gtk.Template.Child('reset_button')
1938
start_button = Gtk.Template.Child('start_button')
20-
reset_revealer = Gtk.Template.Child('reset_revealer') # Added
21-
#reset_button_revealer = Gtk.Template.Child('reset_button_revealer') # Removed
39+
reset_revealer = Gtk.Template.Child('reset_revealer')
2240

2341
def __init__(self, **kwargs):
2442
super().__init__(**kwargs)
@@ -30,7 +48,6 @@ def __init__(self, **kwargs):
3048
self.elapsed_time = 0
3149
self.start_time = 0
3250
self.timeout_id = None
33-
self.timer_paused_once = False
3451

3552
# Connect signals
3653
self.minutes_spin.connect('value-changed', self._on_minutes_changed)
@@ -87,7 +104,6 @@ def _on_reset_clicked(self, button):
87104
self.minutes_spin.set_sensitive(True)
88105
self.progress_circle.queue_draw()
89106
self._update_start_button_state()
90-
self.timer_paused_once = False
91107
self.reset_revealer.set_reveal_child(False)
92108
self.start_button.set_icon_name("media-playback-start-symbolic")
93109

src/window.ui

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,8 @@
144144
</object>
145145
</child>
146146
</template>
147-
148147
<menu id="primary_menu">
149148
<section>
150-
<item>
151-
<attribute name="label" translatable="yes">_Preferences</attribute>
152-
<attribute name="action">app.preferences</attribute>
153-
</item>
154149
<item>
155150
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
156151
<attribute name="action">win.show-help-overlay</attribute>

0 commit comments

Comments
 (0)