Working YellowNotes on Windows.
This commit is contained in:
5
main.cpp
5
main.cpp
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user