* appearance-themes.c: When loading a metatheme from GConf, read
the notification theme from /apps/notification-daemon/theme.
* appearance-theme-save.c: When saving a metatheme to disk,
save the notification theme with the key NotificationTheme.
* appearance-theme-util.h: Add a define for the GConf key
used for notification theme.
* gnome-theme-apply.c: When applying a metatheme, apply
the notification theme, too.
* gnome-theme-info.h: Add a notification_theme_name field
to the metatheme info struct.
* gnome-theme-info.c: When reading a metatheme from a keyfile,
handle notification themes.
svn path=/trunk/; revision=8781
2008-05-24 Jens Granseuer <jensgr@gmx.net>
* gnome-theme-info.c: (gnome_theme_read_meta_theme),
(read_icon_theme), (read_cursor_theme), (read_cursor_fonts),
(update_theme_index): return to using paths instead of URIs since
most of the code using them expects paths
2008-05-24 Jens Granseuer <jensgr@gmx.net>
* theme-util.c: (theme_is_writable), (theme_delete): expect
a path instead of an URI in theme_info->path
svn path=/trunk/; revision=8724
2008-05-07 Jens Granseuer <jensgr@gmx.net>
* gnome-theme-info.c: (gtk_theme_info_missing_engine),
(gnome_theme_meta_info_validate):
* gnome-theme-info.h: split out the check for the missing theme
engine because we also need it for the packagekit support
svn path=/trunk/; revision=8696
2008-05-06 Jens Granseuer <jensgr@gmx.net>
* gnome-theme-info.c: (gnome_theme_meta_info_validate): fix error
code when GTK engine is missing, and fix the function signature
svn path=/trunk/; revision=8693
2008-05-01 Jens Granseuer <jensgr@gmx.net>
* gnome-theme-info.c: (read_cursor_theme), (read_cursor_fonts),
(update_theme_index): always use URIs instead for info->path; since
gio cleanly distinguishes path/uri (contrary to gnome-vfs), the
random mix we have right now is becoming a nuisance
svn path=/trunk/; revision=8684
20007-11-12 Rodrigo Moya <rodrigo@gnome-db.org>
* gnome-theme-info.c:
* gnome-theme-info.h: re-added GnomeThemeElement to the "public" API,
since it's used in gnome-theme-test.
svn path=/trunk/; revision=8279
2007-10-28 Jens Granseuer <jensgr@gmx.net>
Switch to using a common theme struct that includes a type descriptor
so we can avoid many of the theme type casts. This should also make
adding support for live cursor theme changes a little easier.
* gnome-theme-info.c: (add_theme_to_hash_by_name),
(remove_theme_from_hash_by_name), (get_theme_from_hash_by_name),
(gnome_theme_compare), (gnome_theme_free),
(add_default_cursor_theme), (gdk_pixbuf_from_xcursor_image),
(read_cursor_theme), (look_for_cursor_theme),
(read_current_cursor_font), (read_cursor_fonts),
(handle_change_signal), (update_theme_index),
(update_common_theme_dir_index), (gtk2_dir_changed),
(keybinding_dir_changed), (metacity_dir_changed),
(common_theme_dir_changed), (common_icon_theme_dir_changed),
(add_common_theme_dir_monitor),
(add_common_icon_theme_dir_monitor),
(remove_common_theme_dir_monitor), (top_theme_dir_changed),
(top_icon_theme_dir_changed), (real_add_top_theme_dir_monitor),
(gnome_theme_info_new), (gnome_theme_info_free),
(gnome_theme_info_find), (gnome_theme_info_find_all_helper),
(gnome_theme_icon_info_new), (gnome_theme_icon_info_find),
(gnome_theme_icon_info_find_all), (gnome_theme_cursor_info_new),
(gnome_theme_cursor_info_find), (gnome_theme_cursor_info_find_all),
(gnome_theme_meta_info_new), (gnome_theme_meta_info_free),
(gnome_theme_meta_info_find), (gnome_theme_meta_info_find_all),
(gnome_theme_color_scheme_parse), (gnome_theme_init):
* gnome-theme-info.h: Use CursorThemeCommonInfo wherever possible,
remove some unused code.
2007-10-28 Jens Granseuer <jensgr@gmx.net>
* appearance-style.c: (changed_on_disk_cb):
* appearance-themes.c: (theme_changed_on_disk_cb): adapt to changes in
theme change notification
2007-10-28 Jens Granseuer <jensgr@gmx.net>
* theme-method.c: (theme_changed_callback): adapt to modified
callback signature
svn path=/trunk/; revision=8224
2007-10-27 Jens Granseuer <jensgr@gmx.net>
* appearance-style.c: (cursor_size_scale_value_changed_cb),
(update_cursor_size_scale), (cursor_theme_changed), (prepare_list):
* appearance-themes.c: (theme_load_from_gconf):
* theme-util.h: reduce the number if XCURSOR ifdefs and get rid of the
special treatment for the default cursor theme
2007-10-27 Jens Granseuer <jensgr@gmx.net>
* gnome-theme-info.c: (look_for_cursor_theme), (read_cursor_fonts),
(gnome_theme_init): ensure we always have the "default" cursor theme in
the list
svn path=/trunk/; revision=8214
2007-10-25 Jens Granseuer <jensgr@gmx.net>
* gnome-theme-info.c: (gnome_theme_init): revert this part from the
last commit since this was already handled by rev 8166
svn path=/trunk/; revision=8200
2007-10-25 Denis Washington <denisw@svn.gnome.org>
More fixes regarding integration of cursor themes into metathemes.
* appearance/appearance-themes.c: Take cursor size into account in
theme_is_equal(), and also watch the cursor theme/size gconf keys for
changes.
* common/gnome-theme-apply.c: Fix the cursor size being only being
updated if the cursor theme changed too.
* common/gnome-theme-info.c: Also watch
/usr/share/cursors/xorg-x11
for cursor themes (path used by Gentoo Linux).
svn path=/trunk/; revision=8198
2007-10-24 Jens Granseuer <jensgr@gmx.net>
This change hopefully fixes bug #484797 which I suspect is caused by
the capplet getting stale data from from the themes module which in
turn is caused by deleted themes being freed but not removed from the
hash cache.
* gnome-theme-info.c: (update_common_theme_dir_index): actually remove
theme data from the hash when the theme gets deleted; also don't
unconditionally cast to icon theme
svn path=/trunk/; revision=8194
2007-10-14 Jens Granseuer <jensgr@gmx.net>
* gnome-theme-info.c: (gnome_theme_init): fix invalid use after free I
caused with the last commit
svn path=/trunk/; revision=8170
2007-10-14 Jens Granseuer <jensgr@gmx.net>
* configure.in:
* capplets/common/gnome-theme-info.c (gnome_theme_init): query and
monitor the xcursor icon dir for cursor themes, too (bug #469882)
svn path=/trunk/; revision=8166
2007-09-30 Jens Granseuer <jensgr@gmx.net>
* capplets/background:
* capplets/font:
* capplets/theme-switcher:
* capplets/ui-properties: remove old capplets that are now subsumed in
the appearance capplet from the repository
svn path=/trunk/; revision=8145
2007-08-21 Jens Granseuer <jensgr@gmx.net>
* gnome-theme-info.c: (gnome_theme_info_find_by_type_helper):
Properly check all stored themes if necessary. This fixes cases where
e.g. a metacity theme in ~/.themes would hide a GTK theme with the
same name in the system theme dir
svn path=/trunk/; revision=8032
2007-08-17 Jens Granseuer <jensgr@gmx.net>
* gnome-theme-info.c: (read_cursor_fonts): fix double-free, and make
the builtins non-static to save relocations
svn path=/trunk/; revision=8013
2007-08-07 Jens Granseuer <jensgr@gmx.net>
* gnome-theme-info.c: (read_cursor_theme): make sure we don't run off
the end of the array
svn path=/trunk/; revision=7972
2007-08-07 Jens Granseuer <jensgr@gmx.net>
* gnome-theme-info.c: (read_cursor_theme),
(gnome_theme_cursor_info_free): copy the name for the default cursor,
too, lest we crash on free, and only unref the thumbnail if we have
one
svn path=/trunk/; revision=7971
2007-08-04 Denis Washington <denisw@svn.gnome.org>
* common/gnome-theme-info.c: (read_cursor_theme), (look_for_cursor_theme):
Also load the "default" cursor theme as GnomeThemeCursorInfo so
we know about the available sizes. (bug #462409)
* appearance/appearance-style.c: (prepare_list):
Only add a "Default Pointer" list item if there is
no such GnomeThemeCursorInfo.
svn path=/trunk/; revision=7960
2007-08-02 Jens Granseuer <jensgr@gmx.net>
* gnome-theme-info.c: (gnome_theme_color_scheme_parse): no need for an
expensive parse to initialize the colors
svn path=/trunk/; revision=7949
2007-07-30 Jens Granseuer <jensgr@gmx.net>
* appearance-style.c: (color_button_clicked_cb): fix cut'n'paste errors
for the tooltip colors and use new color enum
* data/appearance.glade: repair the mess glade3 made of the file
2007-07-30 Jens Granseuer <jensgr@gmx.net>
* gnome-theme-info.c: (gnome_theme_color_scheme_parse),
(gnome_theme_color_scheme_equal):
* gnome-theme-info.h: add symbolic colors enum and use it
svn path=/trunk/; revision=7936
2007-07-30 Thomas Wood <thos@gnome.org>
* appearance-style.c: (update_color_buttons_from_string),
(check_color_schemes_enabled), (color_button_clicked_cb),
(style_init):
* data/appearance.glade:
Add tooltip foreground and background colours to the list of recognised
symbolic colours.
2007-07-30 Thomas Wood <thos@gnome.org>
* gnome-theme-info.c: (gnome_theme_color_scheme_parse): Add tooltip foreground
and background colours to the list of recognised symbolic colours.
svn path=/trunk/; revision=7933
2007-07-28 Denis Washington <denisw@svn.gnome.org>
* common/gnome-theme-info.h:
* common/gnome-theme-info.c: (look_in_cursor_theme),
(gnome_theme_cursor_info_free):
Read a cursor theme's name from it's index.theme file if it has one.
* appearance/appearance-style.c: (prepare_list):
Show readable_name in cursor theme list instead of name.
svn path=/trunk/; revision=7914
2007-07-28 Denis Washington <denisw@svn.gnome.org>
* gnome-theme-info.c: (read_icon_theme):
Prevent cursor themes from being recognized as icon themes.
svn path=/trunk/; revision=7913
2007-07-26 Denis Washington <denisw@svn.gnome.org>
* appearance/data/appearance.glade:
* appearance/appearance-style.c:
* appearance/appearance-themes.c: (theme_load_from_gconf),
(cursor_theme_changed), (prepare_list), (style_init):
* appearance/theme-save.c: (write_theme_to_disk):
* appearance/theme-util.h:
* common/gnome-theme-apply.c: (gnome_meta_theme_set):
* common/gnome-theme-info.c:
(add_common_icon_theme_dir_monitor),
(gnome_theme_init):
* common/gnome-theme-info.h:
Re-add basic support for cursor themes for X servers without the Xcursor
extension, like the one on Solaris.
svn path=/trunk/; revision=7890
2007-07-25 Denis Washington <denisw@svn.gnome.org>
* gnome-theme-info.c: (add_common_icon_theme_dir_monitor),
(look_for_cursor_theme):
Fix abug introduced by the changes in revision 7856 which caused
cursor themes to not being found anymore.
svn path=/trunk/; revision=7882
2007-07-01 Denis Washington <denisw@svn.gnome.org>
* gnome-theme-info.[ch]:
Add support for cursor themes (GnomeThemeCursorInfo); probably still a bit
rough around the edges, but it works.
svn path=/trunk/; revision=7823
2007-06-07 Jens Granseuer <jensgr@gmx.net>
* gnome-theme-info.c: (handle_change_signal),
(gnome_theme_is_writable),
(gnome_theme_info_register_theme_change):
* gnome-theme-info.h:
modify the theme change callback to return more useful
information and add a function to determine whether a given
theme is writable
svn path=/trunk/; revision=7703
2007-05-25 Jens Granseuer <jensgr@gmx.net>
* gnome-theme-info.c: (read_icon_theme):
* gnome-theme-info.h:
add a "readable_name" property for icon themes, and make sure "name"
points to the internal theme name
svn path=/trunk/; revision=7660