2006-08-18 Rodney Dawes <dobey@novell.com> * background.desktop.in.in: Use preferences-desktop-wallpaper as the icon name per the Icon Naming Specification * gnome-background-properties.glade: Set the icon name for the window to be preferences-desktop-wallpaper as per the naming spec * gnome-wp-capplet.[ch]: Remove GtkIconTheme instance from structure (gnome_wp_icon_theme_changed): Don't need this method any longer (wallpaper_properties_init): Remove unused variables Don't need to get the icon_info to load a pixbuf and set an icon, from the theme any longer, as we can just specify the icon with one call Don't need the extra _ensure_style call here
92 lines
2.3 KiB
C
92 lines
2.3 KiB
C
/*
|
|
* Authors: Rodney Dawes <dobey@ximian.com>
|
|
*
|
|
* 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 <config.h>
|
|
#include <gnome.h>
|
|
#include <glib.h>
|
|
#include <libgnomevfs/gnome-vfs.h>
|
|
#include <libgnomevfs/gnome-vfs-mime-handlers.h>
|
|
#include <libgnomevfs/gnome-vfs-mime-utils.h>
|
|
#include <libgnomeui/gnome-thumbnail.h>
|
|
#include <gconf/gconf-client.h>
|
|
#include <libxml/parser.h>
|
|
#include <glade/glade.h>
|
|
|
|
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;
|
|
|
|
/* 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
|
|
|