grim/guifications3
Clone
Summary
Browse
Changes
Graph
cleaned up some white space
2012-04-30, Gary Kramlich
79d652b1a03b
cleaned up some white space
/*
* Guifications - The end-all, be-all notification framework
* Copyright (C) 2003-2009 Gary Kramlich <grim@reaperworld.com>
*
* 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 3 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, see <http://www.gnu.org/licenses/>.
*/
#ifdef HAVE_CONFIG_H
#
include
<config.h>
#endif
/* HAVE_CONFIG_H */
#include
"guifications-gtk.h"
#include
"gf_gtk_feeds.h"
#include
"gf_gtk_icon.h"
#include
"gf_gtk_prefs.h"
#include
<gtk/gtk.h>
static
GfClientConnection
*
connection
=
NULL
;
gint
main
(
gint
argc
,
gchar
**
argv
)
{
gf_lib_gtk_init
(
&
argc
,
&
argv
);
connection
=
gf_connection_manager_get_default
();
if
(
!
connection
)
{
gf_log_critical
(
"GuificationsGtk"
,
"Could not establish a connection!
\n
"
);
}
gf_gtk_icon_init
();
gf_gtk_prefs_init
();
gf_gtk_feeds_init
(
connection
);
gf_client_connection_connect
(
connection
,
NULL
);
gtk_main
();
return
0
;
}
void
gf_gtk_quit
(
void
)
{
gf_connection_disconnect
(
GF_CONNECTION
(
connection
),
NULL
);
gf_gtk_feeds_uninit
();
gf_gtk_prefs_uninit
();
gf_gtk_icon_uninit
();
g_object_unref
(
connection
);
connection
=
NULL
;
gtk_main_quit
();
}