Skip to content

Commit aa9979d

Browse files
committed
Last min tweaks
1 parent 72f9109 commit aa9979d

File tree

3 files changed

+10
-21
lines changed

3 files changed

+10
-21
lines changed

po/de.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ msgstr "Standardschriftart verwenden"
4242

4343
#: src/Widgets/PopoverWidgets/MonospaceBox.vala:42
4444
msgid "Monospace"
45-
msgstr "Festbreitenschrift"
45+
msgstr "Festbreite"
4646

4747
#: src/Widgets/PopoverWidgets/MonospaceBox.vala:45
4848
msgid "Use monospaced font"

src/Views/NoteView.vala

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -64,34 +64,24 @@
6464
append (actionbar);
6565
//set_focus_child (textview);
6666

67-
6867
/***************************************************/
6968
/* CONNECTS AND BINDS */
7069
/***************************************************/
7170

72-
// Display the current zoom level when the popover opens
73-
// Else it does not get set
74-
emojichooser_popover.show.connect (on_emoji_popover);
75-
76-
// User chose emoji, add it to buffer
77-
emojichooser_popover.emoji_picked.connect ((emoji) => {
78-
textview.buffer.insert_at_cursor (emoji, -1);
79-
});
80-
81-
//The application tells us the show/hide bar state has changed!
71+
emojichooser_popover.show.connect (randomize_emote_button);
72+
emojichooser_popover.emoji_picked.connect (on_emoji_picked);
8273
//Application.gsettings.bind ("hide-bar", actionbar, "revealed", SettingsBindFlags.INVERT_BOOLEAN);
8374
}
8475

85-
8676
// Randomize the button emoji when clicked
87-
public void on_emoji_popover () {
77+
private void randomize_emote_button () {
8878
debug ("Emote requested!");
79+
emoji_button.icon_name = Jorts.Utils.random_emote (emoji_button.get_icon_name ());
80+
}
8981

90-
emoji_button.set_icon_name (
91-
Jorts.Utils.random_emote (
92-
emoji_button.get_icon_name ()
93-
)
94-
);
82+
private void on_emoji_picked (string emoji) {
83+
debug ("Emote picked!");
84+
textview.buffer.insert_at_cursor (emoji, -1);
9585
}
9686

9787
private void mono_set (bool if_mono) {

src/Windows/StickyNoteWindow.vala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,7 @@ public class Jorts.StickyNoteWindow : Gtk.ApplicationWindow {
206206

207207
if (Application.gsettings.get_boolean ("scribbly-mode-active")) {
208208
this.notify["is-active"].connect (focus_scribble_unscribble);
209-
view.scribbly = true;
210-
209+
if (this.is_active) { view.scribbly = false;} else { view.scribbly = true;};
211210

212211
} else {
213212
this.notify["is-active"].disconnect (focus_scribble_unscribble);

0 commit comments

Comments
 (0)