2001-07-13 18:51:28 +00:00
|
|
|
/* -*- mode: c; style: linux -*- */
|
|
|
|
|
2001-10-13 17:26:48 +00:00
|
|
|
/* capplet-util.h
|
2001-07-13 18:51:28 +00:00
|
|
|
* Copyright (C) 2001 Ximian, Inc.
|
|
|
|
*
|
|
|
|
* Written by Bradford Hovinen <hovinen@ximian.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 2, 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CAPPLET_UTIL_H
|
|
|
|
#define __CAPPLET_UTIL_H
|
|
|
|
|
2008-07-27 23:32:35 +00:00
|
|
|
#include <gio/gio.h>
|
2008-10-24 23:22:41 +00:00
|
|
|
#include <gtk/gtk.h>
|
|
|
|
#include <glib/gi18n.h>
|
2001-11-10 20:52:31 +00:00
|
|
|
#include <gconf/gconf.h>
|
|
|
|
#include <gconf/gconf-changeset.h>
|
2001-07-13 18:51:28 +00:00
|
|
|
|
|
|
|
/* Macros to make certain repetitive tasks a bit easier */
|
|
|
|
|
2009-07-30 13:33:03 +10:00
|
|
|
/* Retrieve a widget from the UI object */
|
2001-07-13 18:51:28 +00:00
|
|
|
|
2009-07-30 13:33:03 +10:00
|
|
|
#define WID(s) GTK_WIDGET (gtk_builder_get_object (dialog, s))
|
2001-07-13 18:51:28 +00:00
|
|
|
|
2008-06-01 16:57:56 +00:00
|
|
|
/* Some miscellaneous functions useful to all capplets */
|
2001-07-13 18:51:28 +00:00
|
|
|
|
2008-10-24 19:42:26 +00:00
|
|
|
void capplet_help (GtkWindow *parent, char const *section);
|
2002-06-27 18:30:15 +00:00
|
|
|
void capplet_set_icon (GtkWidget *window, char const *icon_file_name);
|
2008-07-27 23:32:35 +00:00
|
|
|
gboolean capplet_file_delete_recursive (GFile *directory, GError **error);
|
2008-10-24 22:22:58 +00:00
|
|
|
void capplet_init (GOptionContext *context, int *argc, char ***argv);
|
2002-05-27 02:53:33 +00:00
|
|
|
|
2001-07-13 18:51:28 +00:00
|
|
|
#endif /* __CAPPLET_UTIL_H */
|