Working YellowNotes on Windows.

This commit is contained in:
2025-11-20 16:59:14 +01:00
parent 36aba3a381
commit ea3f447af1
16 changed files with 1607 additions and 123 deletions

View File

@@ -14,7 +14,8 @@ static void activate (GtkApplication* app, gpointer user_data)
GtkWidget *window;
YellowNotes *notes = YELLOWNOTES(user_data);
GtkStatusIcon *tray = gtk_status_icon_new_from_file(notes->imageFile("yellownotes.svg").c_str());
std::string img_file = notes->imageFile("yellownotes");
GtkStatusIcon *tray = gtk_status_icon_new_from_file(img_file.c_str());
g_signal_connect(tray, "activate", on_tray_activate, notes);
}
@@ -22,6 +23,8 @@ int main(int argc, char **argv)
{
GtkLoader l;
srand(time(NULL)); // seed with current time
try {
l.loadGtk();
} catch(std::string msg) {