Skip to content

Commit e85bbce

Browse files
committed
Rename Popoverview to popover
1 parent e04fcb4 commit e85bbce

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

‎src/Services/NoteManager.vala‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ public class Jorts.NoteManager : Object {
110110
print ("new");
111111
}
112112

113+
note.changed.connect (save_all);
113114
note.show ();
114115
note.present ();
115116
note.textview.paste ();

‎src/Services/Storage.vala‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class Jorts.Storage : Object {
4747
* Persistently check for the data directory and create if there is none
4848
*/
4949
private void check_if_stash () {
50-
debug ("[STORAGE] do we have a data directory?");
50+
debug ("do we have a data directory?");
5151
var dir = File.new_for_path (data_directory);
5252

5353
try {
@@ -65,7 +65,7 @@ public class Jorts.Storage : Object {
6565
* Converts a Json.Node into a string and take care of saving it
6666
*/
6767
public void save (Json.Array json_data) {
68-
debug("[STORAGE] Writing...");
68+
debug("Writing...");
6969
check_if_stash ();
7070

7171
try {
@@ -87,7 +87,7 @@ public class Jorts.Storage : Object {
8787
* Grab from storage, into a Json.Node we can parse. Insist if necessary
8888
*/
8989
public Json.Array? load () {
90-
debug("[STORAGE] Loading from storage letsgo");
90+
debug("Loading from storage letsgo");
9191
check_if_stash ();
9292
var parser = new Json.Parser ();
9393
var array = new Json.Array ();
@@ -110,7 +110,7 @@ public class Jorts.Storage : Object {
110110
* Like it says on the tin
111111
*/
112112
public void dump () {
113-
debug("[STORAGE] DROP TABLE Students;--");
113+
debug("DROP TABLE Students;--");
114114

115115
var everything = load ();
116116
var generator = new Json.Generator () {

‎src/Widgets/Popover.vala‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* The popover menu to tweak individual notes
1010
* Contains a setting for color, one for monospace font, one for zoom
1111
*/
12-
public class Jorts.PopoverView : Gtk.Popover {
12+
public class Jorts.Popover : Gtk.Popover {
1313
private Jorts.StickyNoteWindow parent_window;
1414
private Jorts.ColorBox color_box;
1515
private Jorts.MonospaceBox monospace_box;
@@ -48,7 +48,7 @@ public class Jorts.PopoverView : Gtk.Popover {
4848

4949

5050
/****************/
51-
public PopoverView (Jorts.StickyNoteWindow window) {
51+
public Popover (Jorts.StickyNoteWindow window) {
5252
position = Gtk.PositionType.TOP;
5353
halign = Gtk.Align.END;
5454
parent_window = window;

‎src/Windows/StickyNoteWindow.vala‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
public class Jorts.StickyNoteWindow : Gtk.Window {
1717

1818
public Jorts.NoteView view;
19-
public PopoverView popover;
19+
public Popover popover;
2020
public TextView textview;
2121

2222
private Jorts.ColorController color_controller;
@@ -93,7 +93,7 @@ public class Jorts.StickyNoteWindow : Gtk.Window {
9393
view = new NoteView ();
9494
textview = view.textview;
9595

96-
popover = new Jorts.PopoverView (this);
96+
popover = new Jorts.Popover (this);
9797
view.menu_button.popover = popover;
9898

9999
set_child (view);

0 commit comments

Comments
 (0)