2014-09-10 08:43:11 -04:00
|
|
|
/*
|
|
|
|
* Copyright 2014 (c) Anna Schumaker.
|
|
|
|
*/
|
2015-12-14 13:55:50 -05:00
|
|
|
extern "C" {
|
2014-09-10 08:43:11 -04:00
|
|
|
#include <core/version.h>
|
2015-12-24 09:35:36 -05:00
|
|
|
#include <gui/builder.h>
|
2015-12-14 13:55:50 -05:00
|
|
|
}
|
2014-09-10 08:43:11 -04:00
|
|
|
#include <gui/ocarina.h>
|
|
|
|
|
|
|
|
const std::string appname = "Ocarina ";
|
|
|
|
|
2015-12-26 12:29:24 -05:00
|
|
|
void gui_window_init(const gchar *icon)
|
2014-09-10 08:43:11 -04:00
|
|
|
{
|
2015-12-26 12:29:24 -05:00
|
|
|
GtkWindow *window = GTK_WINDOW(gui_builder_widget("o_window"));
|
2014-09-10 08:43:11 -04:00
|
|
|
|
2015-12-26 12:29:24 -05:00
|
|
|
gtk_window_set_title(window, (appname + get_version()).c_str());
|
|
|
|
gtk_window_set_icon_from_file(window, icon, NULL);
|
2014-09-10 08:43:11 -04:00
|
|
|
}
|