gui/window: Convert file to C
Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
parent
0c8bcfa552
commit
684d52c522
|
@ -7,10 +7,10 @@ extern "C" {
|
||||||
#include <gui/audio.h>
|
#include <gui/audio.h>
|
||||||
#include <gui/builder.h>
|
#include <gui/builder.h>
|
||||||
#include <gui/settings.h>
|
#include <gui/settings.h>
|
||||||
|
#include <gui/window.h>
|
||||||
}
|
}
|
||||||
#include <gui/ocarina.h>
|
#include <gui/ocarina.h>
|
||||||
#include <gui/tabs.h>
|
#include <gui/tabs.h>
|
||||||
#include <gui/window.h>
|
|
||||||
|
|
||||||
|
|
||||||
static std::string ocarina_dir = "";
|
static std::string ocarina_dir = "";
|
||||||
|
|
|
@ -1,18 +1,17 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2014 (c) Anna Schumaker.
|
* Copyright 2014 (c) Anna Schumaker.
|
||||||
*/
|
*/
|
||||||
extern "C" {
|
|
||||||
#include <core/version.h>
|
#include <core/version.h>
|
||||||
#include <gui/builder.h>
|
#include <gui/builder.h>
|
||||||
}
|
|
||||||
#include <gui/ocarina.h>
|
|
||||||
|
|
||||||
const std::string appname = "Ocarina ";
|
|
||||||
|
|
||||||
void gui_window_init(const gchar *icon)
|
void gui_window_init(const gchar *icon)
|
||||||
{
|
{
|
||||||
GtkWindow *window = GTK_WINDOW(gui_builder_widget("o_window"));
|
GtkWindow *window = GTK_WINDOW(gui_builder_widget("o_window"));
|
||||||
|
gchar *title = g_strdup_printf("Ocarina %s", get_version());
|
||||||
|
|
||||||
gtk_window_set_title(window, (appname + get_version()).c_str());
|
gtk_window_set_title(window, title);
|
||||||
gtk_window_set_icon_from_file(window, icon, NULL);
|
gtk_window_set_icon_from_file(window, icon, NULL);
|
||||||
|
|
||||||
|
g_free(title);
|
||||||
}
|
}
|
Loading…
Reference in New Issue