//! //! @brief Prints to the terminal the about message for the program. //! void w_application_print_about (WApplication *application) { const gchar *name; name = w_application_get_program_name (W_APPLICATION (application)); printf (gettext ("%s version %s"), name, VERSION); printf ("\n\n"); printf ("Check for the latest updates at <http://gwaei.sourceforge.net/>\n"); printf ("Code Copyright (C) 2009-2011 Zachary Dovel\n\n"); printf ("License:\n"); printf ("Copyright (C) 2008 Free Software Foundation, Inc.\nLicense GPLv3+: " "GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis" " is free software: you are free to change and redistribute it.\nThe" "re is NO WARRANTY, to the extent permitted by law.\n\n" ); }
static void w_application_finalize (GObject *object) { //Declarations WApplication *application; WApplicationPrivate *priv; application = W_APPLICATION (object); priv = application->priv; if (priv->dictinstlist != NULL) lw_dictinstlist_free (priv->dictinstlist); priv->dictinstlist = NULL; if (priv->dictinfolist != NULL) lw_dictinfolist_free (priv->dictinfolist); priv->dictinfolist = NULL; if (priv->context != NULL) g_option_context_free (priv->context); priv->context = NULL; if (priv->arg_query_text_data != NULL) g_free(priv->arg_query_text_data); priv->arg_query_text_data = NULL; if (priv->preferences != NULL) lw_preferences_free (priv->preferences); priv->preferences = NULL; lw_regex_free (); G_OBJECT_CLASS (w_application_parent_class)->finalize (object); }
int main (int argc, char *argv[]) { GObject *application; int resolution; setlocale(LC_ALL, ""); bindtextdomain(GETTEXT_PACKAGE, GWAEI_LOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain(GETTEXT_PACKAGE); g_type_init (); application = w_application_new (); resolution = w_application_run (W_APPLICATION (application), &argc, &argv); g_object_unref (application); application = NULL; return resolution; }