/* * Authors: Rodney Dawes * * Copyright 2003-2006 Novell, Inc. (www.novell.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 of the GNU General Public License * as published by the Free Software Foundation * * 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 Street #330, Boston, MA 02111-1307, USA. * */ #ifndef _GNOME_WP_CAPPLET_H_ #define _GNOME_WP_CAPPLET_H_ #include #include #include #include #include #include #include #include #include #include typedef struct _GnomeWPCapplet GnomeWPCapplet; #include "gnome-wp-info.h" #include "gnome-wp-item.h" #include "gnome-wp-utils.h" #include "gnome-wp-xml.h" struct _GnomeWPCapplet { GtkWidget * window; /* List of files passed to command line */ GSList * uri_list; /* The Tree View */ GtkWidget * treeview; GtkTreeModel * model; /* Option Menu for Scaling Options */ GtkWidget * wp_opts; GtkWidget * rm_button; /* Widgets for Color Options */ GtkWidget * color_opt; GtkWidget * pc_picker; GtkWidget * sc_picker; /* GConf Client */ GConfClient * client; /* Thumbnailing and Icon Theme stuff */ GnomeThumbnailFactory * thumbs; GtkIconTheme * theme; /* Hash Table of Wallpapers */ GHashTable * wphash; /* File Chooser Dialog */ GtkWidget * filesel; GtkWidget * image; }; typedef enum { GNOME_WP_SHADE_TYPE_SOLID, GNOME_WP_SHADE_TYPE_HORIZ, GNOME_WP_SHADE_TYPE_VERT } GnomeWPShadeType; typedef enum { GNOME_WP_SCALE_TYPE_CENTERED, GNOME_WP_SCALE_TYPE_STRETCHED, GNOME_WP_SCALE_TYPE_SCALED, GNOME_WP_SCALE_TYPE_ZOOM, GNOME_WP_SCALE_TYPE_TILED } GnomeWPScaleType; void gnome_wp_main_quit (GnomeWPCapplet * capplet); #endif