2000-09-09 23:21:28 +00:00
|
|
|
/* -*- mode: c; style: linux -*- */
|
|
|
|
|
|
|
|
/* applier.h
|
|
|
|
* Copyright (C) 2000 Helix Code, Inc.
|
|
|
|
*
|
|
|
|
* Written by Bradford Hovinen <hovinen@helixcode.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 __APPLIER_H
|
|
|
|
#define __APPLIER_H
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
#include <X11/Xlib.h>
|
|
|
|
#include <pthread.h>
|
|
|
|
|
2001-07-27 01:43:48 +00:00
|
|
|
#include "preferences.h"
|
2000-09-09 23:21:28 +00:00
|
|
|
|
|
|
|
#define APPLIER(obj) GTK_CHECK_CAST (obj, applier_get_type (), Applier)
|
|
|
|
#define APPLIER_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, applier_get_type (), ApplierClass)
|
|
|
|
#define IS_APPLIER(obj) GTK_CHECK_TYPE (obj, applier_get_type ())
|
|
|
|
|
|
|
|
typedef struct _Applier Applier;
|
|
|
|
typedef struct _ApplierClass ApplierClass;
|
|
|
|
|
|
|
|
typedef struct _ApplierPrivate ApplierPrivate;
|
|
|
|
|
|
|
|
struct _Applier
|
|
|
|
{
|
|
|
|
GtkObject object;
|
|
|
|
ApplierPrivate *private;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _ApplierClass
|
|
|
|
{
|
|
|
|
GtkObjectClass klass;
|
|
|
|
};
|
|
|
|
|
|
|
|
guint applier_get_type (void);
|
|
|
|
|
|
|
|
GtkObject *applier_new (void);
|
|
|
|
void applier_destroy (GtkObject *object);
|
|
|
|
|
2001-07-27 01:43:48 +00:00
|
|
|
void applier_apply_prefs (Applier *applier, Preferences *prefs,
|
|
|
|
gboolean do_root, gboolean do_preview);
|
2000-09-09 23:21:28 +00:00
|
|
|
|
2001-07-27 01:43:48 +00:00
|
|
|
GtkWidget *applier_class_get_preview_widget (void);
|
2000-09-09 23:21:28 +00:00
|
|
|
|
|
|
|
#endif /* __APPLIER_H */
|