nautilus/libnautilus-extensions/nautilus-theme.h
Andy Hertzfeld 98042a7ae0 re-organized the code to add the ability to request image paths from
* libnautilus-extensions/nautilus-theme.c:
	(nautilus_theme_get_image_path_from_theme),
	(nautilus_theme_get_image_path):
	re-organized the code to add the ability to request image
	paths from specific themes, as well as the current one.
	* libnautilus-extensions/nautilus-theme.h:
	added nautilus_theme_get_image_path_from_theme.

	* src/nautilus-sidebar-tabs.c:
	(nautilus_sidebar_tabs_load_theme_data):
	used the above to implement sidebar tab redirection, so a theme
	can use the sidebar tabs from another theme, so sidebar tab images
	don't have to be present in every theme.

	* libnautilus-extensions/nautilus-icon-factory.c:
	(nautilus_icon_factory_destroy), (check_local_theme), (set_theme),
	(get_icon_file_path):
	implemented icon theme default redirection, so a theme can specify
	another theme to get its icons from when they're not present locally;
	this is needed by both Arlo and Susan's themes.

	* src/nautilus-throbber.c,h: (nautilus_throbber_initialize_class),
	(nautilus_throbber_button_press_event):
	made clicking on the throbber take you to a URL specified by
	the current theme.  Did this by adding a location_change signal. This
	fixes bug 3433.

	* src/nautilus-window.c: (nautilus_window_constructed):
	hooked up nautilus-window to the throbber's location_change signal to
	change the location when the signal is emitted.

	* icons/default.xml:
	added default URI for throbber, pointing to www.eazel.com
	* icons/vector/vector.xml:
	added sidebar tab redirection to the Arlo theme for testing
2000-10-08 06:23:59 +00:00

45 lines
1.8 KiB
C

/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
nautilus-theme.h: theme framework with xml-based theme definition files
Copyright (C) 2000 Eazel, Inc.
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 of the
License, 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.
Authors: Andy Hertzfeld <andy@eazel.com>
*/
#ifndef NAUTILUS_THEME_H
#define NAUTILUS_THEME_H
#include <glib.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
/* get and set the current theme */
char *nautilus_theme_get_theme(void);
void nautilus_theme_set_theme(const char *new_theme);
/* fetch data from the current theme */
char *nautilus_theme_get_theme_data (const char *resource_name, const char *property_name);
/* given the current theme, get the path name of an image with the passed-in name */
char *nautilus_theme_get_image_path (const char *image_name);
/* like get_image_path, put use the passed in theme instead of the current one */
char *nautilus_theme_get_image_path_from_theme (const char *image_name, const char *theme_name);
/* create a pixbuf to represent the theme */
GdkPixbuf *nautilus_theme_make_selector (const char *theme_name);
#endif /* NAUTILUS_THEME_H */