gnome-control-center/capplets/theme-switcher/gnome-theme-manager.h

82 lines
2.2 KiB
C
Raw Normal View History

#ifndef __GNOME_THEME_MANAGER_H__
#define __GNOME_THEME_MANAGER_H__
#include <gtk/gtk.h>
#include <glade/glade.h>
#define GTK_THEME_KEY "/desktop/gnome/interface/gtk_theme"
#define ICON_THEME_KEY "/desktop/gnome/interface/icon_theme"
#define FONT_KEY "/desktop/gnome/interface/font_name"
#define METACITY_THEME_DIR "/apps/metacity/general"
#define METACITY_THEME_KEY METACITY_THEME_DIR "/theme"
extern const char *meta_theme_default_name;
extern const char *gtk_theme_default_name;
extern const char *window_theme_default_name;
extern const char *icon_theme_default_name;
/* Drag and drop info */
enum
{
TARGET_URI_LIST,
TARGET_NS_URL
};
/* model info */
enum
{
THEME_NAME_COLUMN,
THEME_ID_COLUMN,
THEME_FLAG_COLUMN,
N_COLUMNS
};
enum
{
THEME_FLAG_DEFAULT = 1 << 0,
fix the selection when not running metacity. That was damn irritating. 2004-04-07 Jody Goldberg <jody@gnome.org> * gnome-theme-manager.c (update_settings_from_gconf_idle) : fix the selection when not running metacity. That was damn irritating. 2004-03-10 Chris Lahey <clahey@ximian.com> * gnome-theme-manager.c: (pixbuf_async_func): rename function. Use broken_image. (pixbuf_async_data_free): rename function. Use PixbufAsyncData instead of a GList. (pixbuf_idle_func): rename function. Handle the case that things change again while we're updating. Stop what it's doing and start from the beginning. (add_pixbuf_idle): (load_meta_themes): clean up. Remove model_meta_theme_info. (update_themes_from_disk): Remove the code to check for have_meta_theme here. It works with no metathemes installed. (add_custom_row_to_meta_theme): handle the initial case too. (remove_custom_row_from_meta_theme): removed. (themes_equal): helper function for a fairly complicated comparison. (update_settings_from_gconf_idle), (update_settings_from_gconf): reamed. Instead of custom_theme_found to mean that there should be a custom theme, we use current_theme_saved. This means that there's a metatheme for the current theme. Its meaning is almost exactly the boolean opposite of the old one but it's more understandable. initial_theme_saved tells us whether the initial theme has a metatheme for it now. (theme_changed_idle), (theme_changed_func): Made this idle to reduce rerunning (setup_dialog): Load broken image. (gnome_theme_manager_sort_func): Make it symmetric. * gnome-theme-manager.h: Remove THEME_FLAG_INITIAL.
2004-04-07 04:26:49 +00:00
THEME_FLAG_CUSTOM = 1 << 1
};
extern GtkTargetEntry drop_types[];
extern gint n_drop_types;
/* Prototypes */
GladeXML *gnome_theme_manager_get_theme_dialog (void);
gint gnome_theme_manager_sort_func (const gchar *a_str,
const gchar *b_str,
guint a_flag,
guint b_flag);
void gnome_theme_manager_show_manage_themes (GtkWidget *button,
gpointer data);
void gnome_theme_manager_icon_show_manage_themes (GtkWidget *button,
gpointer data);
void gnome_theme_manager_window_show_manage_themes (GtkWidget *button,
gpointer data);
gboolean gnome_theme_manager_drag_motion_cb (GtkWidget *widget,
GdkDragContext *context,
gint x,
gint y,
guint time,
gpointer data);
void gnome_theme_manager_drag_leave_cb (GtkWidget *widget,
GdkDragContext *context,
guint time,
gpointer data);
void gnome_theme_manager_drag_data_received_cb (GtkWidget *widget,
GdkDragContext *context,
gint x,
gint y,
GtkSelectionData *selection_data,
guint info,
guint time,
gpointer data);
fix the selection when not running metacity. That was damn irritating. 2004-04-07 Jody Goldberg <jody@gnome.org> * gnome-theme-manager.c (update_settings_from_gconf_idle) : fix the selection when not running metacity. That was damn irritating. 2004-03-10 Chris Lahey <clahey@ximian.com> * gnome-theme-manager.c: (pixbuf_async_func): rename function. Use broken_image. (pixbuf_async_data_free): rename function. Use PixbufAsyncData instead of a GList. (pixbuf_idle_func): rename function. Handle the case that things change again while we're updating. Stop what it's doing and start from the beginning. (add_pixbuf_idle): (load_meta_themes): clean up. Remove model_meta_theme_info. (update_themes_from_disk): Remove the code to check for have_meta_theme here. It works with no metathemes installed. (add_custom_row_to_meta_theme): handle the initial case too. (remove_custom_row_from_meta_theme): removed. (themes_equal): helper function for a fairly complicated comparison. (update_settings_from_gconf_idle), (update_settings_from_gconf): reamed. Instead of custom_theme_found to mean that there should be a custom theme, we use current_theme_saved. This means that there's a metatheme for the current theme. Its meaning is almost exactly the boolean opposite of the old one but it's more understandable. initial_theme_saved tells us whether the initial theme has a metatheme for it now. (theme_changed_idle), (theme_changed_func): Made this idle to reduce rerunning (setup_dialog): Load broken image. (gnome_theme_manager_sort_func): Make it symmetric. * gnome-theme-manager.h: Remove THEME_FLAG_INITIAL.
2004-04-07 04:26:49 +00:00
#endif /* __GNOME_THEME_MANAGER_H__ */