Skip to content

Commit b178af6

Browse files
committed
Minute changes
1 parent 41a7599 commit b178af6

File tree

6 files changed

+10
-30
lines changed

6 files changed

+10
-30
lines changed

.gitignore

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,10 @@ builddir/
33
~*
44
*~
55
.flatpak-builder/
6-
app-dir/
7-
obj-x86_64-linux-gnu/
86
repo/
9-
.vscode/settings.json
10-
data/Application copy.css
11-
src/Widgets/SettingsPopover copy.vala
12-
src/MainWindow copy.vala
7+
.vscode/
138
generate_stylesheets.sh
14-
src/Widgets/help/ActionBar.vala
159
.gitignore
16-
src/Widgets/help/MainWindow.vala
1710
.flatpak/
18-
src/Widgets/help/dumped
19-
.potrans
11+
.potrans
12+
.editorconfig

src/Application.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ namespace Jorts {
260260

261261
case "--preferences":
262262
activate ();
263-
preferences = new PreferenceWindow(this);
263+
preferences = new Jorts.PreferenceWindow();
264264
break;
265265

266266
case "--dump":

src/Preferences.vala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@ namespace Jorts {
4040
{ ACTION_NEW, action_new }
4141
};
4242

43-
public PreferenceWindow (Gtk.Application app) {
43+
construct {
4444
debug ("Showing preference window");
45-
46-
Object (application: app);
4745
Intl.setlocale ();
4846

4947
var actions = new SimpleActionGroup ();

src/StickyNoteWindow.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ namespace Jorts {
9090
/*************************************************/
9191

9292
public StickyNoteWindow (Gtk.Application app, NoteData data) {
93-
Object (application: app);
93+
9494
Intl.setlocale ();
9595
debug ("New StickyNoteWindow instance: " + data.title);
9696

src/Widgets/ColorPill.vala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ I just dont wanna rewrite the same button over and over
2525

2626
public class Jorts.ColorPill : Gtk.CheckButton {
2727
public ColorPill (string tooltip, string colorclass) {
28+
2829
add_css_class("colorpill");
2930
add_css_class(colorclass);
3031
set_size_request (24, 24);

src/Widgets/SettingsPopover.vala

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,25 +63,13 @@ public class Jorts.SettingsPopover : Gtk.Popover {
6363
THEME SELECTION
6464
*/
6565

66-
// //TRANSLATORS: The label is displayed above colored pills the user can click to choose a theme color
67-
// var color_button_label = new Granite.HeaderLabel (_("Sticky Note Colour"));
68-
// color_button_label.add_css_class (Granite.STYLE_CLASS_TITLE_LABEL);
69-
// color_button_label.tooltip_text = _("Choose a colour for this sticky note");
70-
// color_button_label.margin_top = 9;
71-
72-
//setting_grid.append (color_button_label);
73-
74-
75-
//TODO: Multiline
7666
var color_button_box = new Jorts.ColorBox (theme) {
7767
margin_start = 12,
7868
margin_end = 12
7969
};
8070

8171
color_button_box.theme_changed.connect ((selected) => {this.theme_changed (selected);});
8272

83-
84-
8573
/*
8674
ZOOM SELECTION
8775
*/
@@ -111,7 +99,7 @@ public class Jorts.SettingsPopover : Gtk.Popover {
11199
this.zoom_out_button.clicked.connect (() => {this.zoom_changed ("zoom_out");});
112100
this.zoom_default_button.clicked.connect (() => {this.zoom_changed ("reset");});
113101
this.zoom_in_button.clicked.connect (() => {this.zoom_changed ("zoom_in");});
114-
102+
115103
var font_size_box = new Gtk.Box (HORIZONTAL, 0) {
116104
homogeneous = true,
117105
hexpand = true,
@@ -121,7 +109,7 @@ public class Jorts.SettingsPopover : Gtk.Popover {
121109

122110
font_size_box.append (this.zoom_out_button);
123111
font_size_box.append (this.zoom_default_button);
124-
font_size_box.append (this.zoom_in_button);
112+
font_size_box.append (this.zoom_in_button);
125113
font_size_box.add_css_class (Granite.STYLE_CLASS_LINKED);
126114

127115
/*
@@ -146,7 +134,7 @@ public class Jorts.SettingsPopover : Gtk.Popover {
146134
//TRANSLATORS: %d is replaced by a number. Ex: 100, to display 100%
147135
//It must stay as "%d" in the translation so the app can replace it with the current zoom level.
148136
var label = _("%d%%").printf (zoom);
149-
this.zoom_default_button.set_label (label);
137+
this.zoom_default_button.set_label (label);
150138
}
151139

152140

0 commit comments

Comments
 (0)