grim/guifications3
Clone
Summary
Browse
Changes
Graph
removed gflib-query-plugins since we're using gplugin now...
default
tip
2012-04-30, Gary Kramlich
e62da38a5799
removed gflib-query-plugins since we're using gplugin now...
/*
* 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/>.
*
* ...
* ;::::;
* ;::::; :;
* ;:::::' :;
* ;:::::; ;.
* ,:::::' ; OOO\
* ::::::; ; OOOOO\
* ;:::::; ; OOOOOOOO
* ,;::::::; ;' / OOOOOOO
* ;:::::::::`. ,,,;. / / DOOOOOO
* .';:::::::::::::::::;, / / DOOOO
* ,::::::;::::::;;;;::::;, / / DOOO
* ;`::::::`'::::::;;;::::: ,#/ / DOOO
* :`:::::::`;::::::;;::: ;::# / DOOO
* ::`:::::::`;:::::::: ;::::# / DOO
* `:`:::::::`;:::::: ;::::::#/ DOO
* :::`:::::::`;; ;:::::::::## OO
* ::::`:::::::`;::::::::;:::# OO
* `:::::`::::::::::::;'`:;::# O
* `:::::`::::::::;' / / `:#
* ::::::`:::::;' / / `#
*
*/
#if HAVE_CONFIG_H
#
include
<config.h>
#endif
#include
<gflib/gf_core.h>
#include
<gtk/gtk.h>
/******************************************************************************
* API
*****************************************************************************/
/**
* gf_lib_gtk_init:
* @argc : A pointer to argc from your program.
* @argv : A pointer to argv from your program.
*
* Initializes gflib-gtk.
*
* Note: This must be called prior to using any part of gflib-gtk.
*/
void
gf_lib_gtk_init
(
gint
*
argc
,
gchar
***
argv
)
{
#ifdef ENABLE_NLS
/* Bind to our gettext domain */
bindtextdomain
(
PACKAGE
,
LOCALEDIR
);
bind_textdomain_codeset
(
PACKAGE
,
"UTF-8"
);
#endif
/* ENABLE_NLS */
/* Initialize Gtk */
gtk_init
(
argc
,
argv
);
/* Initialize gflib */
gf_lib_init
(
argc
,
argv
);
}
/**
* gf_lib_gtk_get_configure_args:
*
* Gets the arguments that were passed to configure for gflib-gtk.
*
* Return Value: The arguments that were passed to configure for gflib-gtk.
*/
const
gchar
*
gf_lib_gtk_get_configure_args
(
void
)
{
#ifdef CONFIG_ARGS
return
CONFIG_ARGS
;
#else
return
""
;
#endif
}
/**
* gf_lib_gtk_get_version:
*
* Gets the version of gflib-gtk.
*
* Return Value: The version of gflib-gtk.
*/
const
gchar
*
gf_lib_gtk_get_version
(
void
)
{
#ifdef VERSION
return
VERSION
;
#else
return
""
;
#endif
}
/**
* gf_lib_gtk_get_lib_version:
*
* Gets the library version of gflib-gtk.
*
* Return Value: The library version of gflib-gtk.
*/
const
gchar
*
gf_lib_gtk_get_lib_version
(
void
)
{
#ifdef GFLIB_VERSION_S
return
GFLIB_VERSION_S
;
#else
return
""
;
#endif
}
/**
* gf_lib_gtk_get_website:
*
* Gets the website for gflib-gtk.
*
* Return Value: The website for gflib-gtk.
*/
const
gchar
*
gf_lib_gtk_get_website
(
void
)
{
#ifdef GFLIB_WEBSITE
return
GFLIB_WEBSITE
;
#else
return
""
;
#endif
}