Removed background rendering code from the background capplet and moved it
to a separate static library.
This commit is contained in:
parent
4571311094
commit
669a1e2f3a
11 changed files with 22 additions and 12 deletions
72
libbackground/applier.h
Normal file
72
libbackground/applier.h
Normal file
|
@ -0,0 +1,72 @@
|
|||
/* -*- 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 <gdk-pixbuf/gdk-pixbuf.h>
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#include "preferences.h"
|
||||
|
||||
#define APPLIER(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, applier_get_type (), Applier)
|
||||
#define APPLIER_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, applier_get_type (), ApplierClass)
|
||||
#define IS_APPLIER(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, applier_get_type ())
|
||||
|
||||
typedef struct _Applier Applier;
|
||||
typedef struct _ApplierClass ApplierClass;
|
||||
|
||||
typedef struct _ApplierPrivate ApplierPrivate;
|
||||
|
||||
typedef enum _ApplierType {
|
||||
APPLIER_ROOT, APPLIER_PREVIEW
|
||||
} ApplierType;
|
||||
|
||||
struct _Applier
|
||||
{
|
||||
GObject object;
|
||||
ApplierPrivate *p;
|
||||
};
|
||||
|
||||
struct _ApplierClass
|
||||
{
|
||||
GObjectClass klass;
|
||||
};
|
||||
|
||||
guint applier_get_type (void);
|
||||
|
||||
GObject *applier_new (ApplierType type);
|
||||
|
||||
void applier_apply_prefs (Applier *applier,
|
||||
const Preferences *prefs);
|
||||
|
||||
gboolean applier_render_color_p (const Applier *applier,
|
||||
const Preferences *prefs);
|
||||
|
||||
GtkWidget *applier_get_preview_widget (Applier *applier);
|
||||
GdkPixbuf *applier_get_wallpaper_pixbuf (Applier *applier);
|
||||
|
||||
#endif /* __APPLIER_H */
|
Loading…
Add table
Add a link
Reference in a new issue