You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+#include <config.h>
#include <gtk/gtk.h>
#include "psppire.h"
#include "progname.h"
gtk_window_set_position (GTK_WINDOW (splash),
GTK_WIN_POS_CENTER_ALWAYS);
+ gtk_window_set_type_hint (GTK_WINDOW (splash),
+ GDK_WINDOW_TYPE_HINT_SPLASHSCREEN);
+
image = gtk_image_new_from_file (PKGDATADIR "/splash.png");
gtk_container_add (GTK_CONTAINER (splash), image);
gchar *filename = 0;
gboolean show_splash = TRUE;
GError *err = 0;
- gchar *vers;
+ const gchar *vers;
set_program_name (argv[0]);
if ( show_splash )
gtk_widget_show (splash_window);
- gtk_idle_add (quit_one_loop, 0);
+ g_idle_add (quit_one_loop, 0);
gtk_quit_add (0, run_inner_loop, splash_window);
gtk_main ();