Skip to content

Commit

Permalink
lyrics: Minor cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
radioactiveman committed Feb 22, 2024
1 parent e33ce89 commit 60b748a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/lyrics-common/lyrics.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ void update_lyrics_window_notfound (LyricsState state);

bool try_parse_json (const Index<char> & buf, const char * key, String & output);

void split_title_and_truncate ();
void lyrics_playback_began ();

#endif // AUDACIOUS_LYRICS_H
2 changes: 1 addition & 1 deletion src/lyrics-common/utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static char * truncate_by_pattern (const char * input, const char * pattern)
return result;
}

void split_title_and_truncate ()
static void split_title_and_truncate ()
{
StringBuf split_pattern = str_concat ({
"^(.*)\\s+[", aud_get_str (CFG_SECTION, "split-on-chars"), "]\\s+(.*)$"
Expand Down
2 changes: 0 additions & 2 deletions src/lyrics-gtk/lyrics-gtk.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ void update_lyrics_window (const char * title, const char * artist, const char *
return;

gtk_text_buffer_set_text (textbuffer, "", -1);

gtk_text_buffer_get_start_iter (textbuffer, & iter);

gtk_text_buffer_insert_with_tags_by_name (textbuffer, & iter, title, -1,
"weight_bold", "scale_large", nullptr);

Expand Down

0 comments on commit 60b748a

Please sign in to comment.