Set window icon before showing

This commit is contained in:
Kevin Sawicki 2012-09-13 14:26:43 -07:00
parent 97756ee90b
commit 7a27a43e53

View File

@ -125,7 +125,6 @@ int main(int argc, char *argv[]) {
browserSettings);
gtk_container_add(GTK_CONTAINER(window), vbox);
gtk_widget_show_all(GTK_WIDGET(window));
GdkPixbuf *pixbuf;
GError *error = NULL;
@ -136,6 +135,8 @@ int main(int argc, char *argv[]) {
if (pixbuf)
gtk_window_set_icon(GTK_WINDOW(window), pixbuf);
gtk_widget_show_all(GTK_WIDGET(window));
// Install an signal handler so we clean up after ourselves.
signal(SIGINT, TerminationSignalHandler);
signal(SIGTERM, TerminationSignalHandler);