2014-09-10 08:43:11 -04:00
|
|
|
/*
|
|
|
|
* Copyright 2014 (c) Anna Schumaker.
|
|
|
|
*/
|
|
|
|
#include <core/version.h>
|
2015-12-24 09:35:36 -05:00
|
|
|
#include <gui/builder.h>
|
2014-09-10 08:43:11 -04:00
|
|
|
|
|
|
|
|
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"));
|
2015-12-26 18:03:45 -05:00
|
|
|
gchar *title = g_strdup_printf("Ocarina %s", get_version());
|
2014-09-10 08:43:11 -04:00
|
|
|
|
2015-12-26 18:03:45 -05:00
|
|
|
gtk_window_set_title(window, title);
|
2015-12-26 12:29:24 -05:00
|
|
|
gtk_window_set_icon_from_file(window, icon, NULL);
|
2015-12-26 18:03:45 -05:00
|
|
|
|
|
|
|
g_free(title);
|
2014-09-10 08:43:11 -04:00
|
|
|
}
|