summaryrefslogtreecommitdiffstats
path: root/src/sonancy-app.c
diff options
context:
space:
mode:
authorBrian Pepple <bpepple@fedoraproject.org>2010-02-07 19:46:44 -0500
committerBrian Pepple <bpepple@fedoraproject.org>2010-02-07 19:46:44 -0500
commitddecdad9247d3fc1c6bf1f2b979cb8d48d935bec (patch)
treef45222c9a5f9146d0d5216e8a3edc6c3acc5dbe1 /src/sonancy-app.c
parent8d8311d97caf63f95cd988c08a004c7f45a46582 (diff)
downloadsonancy-ddecdad9247d3fc1c6bf1f2b979cb8d48d935bec.tar.gz
sonancy-ddecdad9247d3fc1c6bf1f2b979cb8d48d935bec.tar.xz
sonancy-ddecdad9247d3fc1c6bf1f2b979cb8d48d935bec.zip
Remove unneeded files.
Diffstat (limited to 'src/sonancy-app.c')
-rw-r--r--src/sonancy-app.c93
1 files changed, 0 insertions, 93 deletions
diff --git a/src/sonancy-app.c b/src/sonancy-app.c
deleted file mode 100644
index aa8dd67..0000000
--- a/src/sonancy-app.c
+++ /dev/null
@@ -1,93 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
-/*
- * Copyright (C) 2009-2010 Brian Pepple
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public
- * License along with this program; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- *
- */
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <string.h>
-#include <stdlib.h>
-
-#include <glib.h>
-
-#include "sonancy-app.h"
-
-static SonancyApp *default_app = NULL;
-
-G_DEFINE_TYPE (SonancyApp, sonancy_app, G_TYPE_OBJECT);
-
-static void
-on_window_destroy (GtkWidget *widget,
- SonancyApp *app)
-{
- app->main_window = NULL;
-
- gtk_main_quit ();
-}
-
-static void
-sonancy_app_class_init (SonancyAppClass *klass)
-{
-}
-
-static void
-sonancy_app_init (SonancyApp *app)
-{
-
-}
-
-SonancyApp *
-sonancy_app_get_default (int *argc,
- char ***argv,
- GError **error)
-{
- if (!default_app) {
- gtk_init (argc, argv);
-
- default_app = g_object_new (SONANCY_TYPE_APP, NULL);
- }
-
- return default_app;
-}
-
-gboolean
-sonancy_app_is_running (SonancyApp *app)
-{
- g_return_val_if_fail (SONANCY_IS_APP (app), FALSE);
-
- return app->is_running;
-}
-
-gint
-sonancy_app_run (SonancyApp *app)
-{
- g_return_val_if_fail (SONANCY_IS_APP (app), EXIT_FAILURE);
- g_return_val_if_fail (!sonancy_app_is_running (app), EXIT_SUCCESS);
-
- app->main_window = (GtkWidget *) sonancy_window_new ();
- g_signal_connect (app->main_window,
- "destroy", G_CALLBACK (on_window_destroy),
- app);
-
- gtk_main ();
-
- return EXIT_SUCCESS;
-}