gladish: Set main window icon

This commit is contained in:
Nikita Zlobin 2010-12-19 02:35:06 +05:00
parent 54ed3d2997
commit 0a0a2ff38e
1 changed files with 11 additions and 0 deletions

View File

@ -32,6 +32,15 @@
GtkBuilder * g_builder;
void set_main_window_icon(void)
{
GError * error;
gtk_window_set_icon_from_file(GTK_WINDOW(get_gtk_builder_widget("main_win")),
DATA_DIR "/ladish-logo-128x128.png",
&error);
}
bool init_gtk_builder(void)
{
const char * path;
@ -72,6 +81,8 @@ found:
return false;
}
set_main_window_icon();
return true;
}