/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/* baul-file-management-properties-main.c - Start the baul-file-management preference dialog.
Copyright (C) 2002 Jan Arne Petersen
The Cafe Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The Cafe Library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the Cafe Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Boston, MA 02110-1301, USA.
Authors: Jan Arne Petersen <jpetersen@uni-bonn.de>
*/
#include <config.h>
#include <ctk/ctk.h>
#include <glib/gi18n.h>
#include <libbaul-private/baul-global-preferences.h>
#include <libbaul-private/baul-module.h>
#include "baul-file-management-properties.h"
static void
baul_file_management_properties_main_close_callback (CtkDialog *dialog G_GNUC_UNUSED,<--- Parameter 'G_GNUC_UNUSED' can be declared as pointer to const
int response_id)
{
if (response_id == CTK_RESPONSE_CLOSE)
{
ctk_main_quit ();
}
}
int
main (int argc, char *argv[])
{
bindtextdomain (GETTEXT_PACKAGE, CAFELOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
ctk_init (&argc, &argv);
baul_global_preferences_init ();
baul_module_setup ();
baul_file_management_properties_dialog_show (G_CALLBACK (baul_file_management_properties_main_close_callback), NULL);<--- You might need to cast the function pointer here
ctk_main ();
return 0;
}