* 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-18 Thomas Wood <thos@gnome.org>
* gconf-property-editor.c: (gconf_property_editor_class_init),
(gconf_property_editor_get_prop): Allow the data property to be
read as well as written.
svn path=/trunk/; revision=8718
2008-05-18 Jens Granseuer <jensgr@gmx.net>
* gconf-property-editor.c: (gconf_property_editor_init),
(gconf_property_editor_class_init),
(gconf_property_editor_finalize), (gconf_peditor_new),
(gconf_peditor_new_boolean), (gconf_peditor_new_integer_valist),
(gconf_peditor_new_string_valist), (gconf_peditor_new_color),
(gconf_peditor_new_combo_box),
(gconf_peditor_new_combo_box_with_enum),
(gconf_peditor_new_select_radio),
(gconf_peditor_new_numeric_range),
(gconf_peditor_widget_set_guard), (gconf_peditor_new_enum_toggle),
(peditor_image_set_filename), (peditor_image_clicked_cb),
(gconf_peditor_new_image),
(gconf_peditor_new_select_radio_with_enum): use G_DEFINE_TYPE to
get rid of the boilerplate code and remove a number of unnecessary
casts
svn path=/trunk/; revision=8717
Fri May 16 21:55:52 2008 Søren Sandmann <sandmann@redhat.com>
* libbackground: Delete this directory since it's not used any
more
svn path=/trunk/; revision=8708
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
2008-04-20 Jens Granseuer <jensgr@gmx.net>
* theme-thumbnail.c: (message_from_child): unref the thumbnail image
after passing it to the callback. Callers will have to ref it if they
want to keep it until after the callback has returned
2008-04-20 Jens Granseuer <jensgr@gmx.net>
* appearance-style.c: (update_thumbnail_in_treeview):
* appearance-themes.c: (theme_thumbnail_update),
(theme_thumbnail_generate): adapt to modified refcounting in the
thumbnailer; thumbnails don't need to be unref'ed unless we explicitly
retain a reference
svn path=/trunk/; revision=8661
2008-04-19 Jens Granseuer <jensgr@gmx.net>
* configure.in: figure out where GTK+ expects its theme engines and
make that info available to interested capplets
2008-04-19 Jens Granseuer <jensgr@gmx.net>
* gtkrc-utils.c: (gtkrc_get_details): accept NULL for the
symbolic_colors parameter if the caller doesn't want that information
2008-04-19 Jens Granseuer <jensgr@gmx.net>
* Makefile.am:
* appearance-themes.c: (theme_validate),
(theme_message_area_update), (themes_init):
* appearance.h: show a warning message when the selected theme is
incomplete (e.g. missing icon theme or gtk theme engine)
svn path=/trunk/; revision=8658
2008-04-13 Jens Granseuer <jensgr@gmx.net>
Disable theme thumbnailing on MacOS. Some CoreFoundation functionality
can apparently no longer be used from forked processes (see bug
#525058). Unfortunately, it is used by freetype/pango/cairo/gtk, and
as such by our forked thumbnailer. This change means no thumbnails on
MacOS, but I suppose that's better than crashing. Reworking the
thumbnailer to work without forking is going to be a major effort.
* theme-thumbnail.c: (theme_thumbnail_factory_init): only enable the
asynchronous thumbnailer if not on MacOS
svn path=/trunk/; revision=8649
2008-04-12 Jens Granseuer <jensgr@gmx.net>
* gtkrc-utils.c: (gtkrc_get_details), (gtkrc_get_color_scheme):
* gtkrc-utils.h: include config.h, use strcmp instead of our home-grown
g_str_nequal, and constify the parameter of gtkrc_get_color_scheme
svn path=/trunk/; revision=8645
2008-03-28 Jens Granseuer <jensgr@gmx.net>
* file-transfer-dialog.c: (file_transfer_job_destroy),
(file_transfer_dialog_overwrite), (file_transfer_job_schedule): keep
the overwrite confirmation around for an entire job, so we don't reset
the window position all the time
svn path=/trunk/; revision=8606
2008-03-11 Jens Granseuer <jensgr@gmx.net>
* gnome-theme-apply.c: (gnome_meta_theme_set): actually check the
cursor size before changing it in GConf, not the theme name
(thanks to Kjartan Maraas)
svn path=/trunk/; revision=8578
2008-03-11 Jens Granseuer <jensgr@gmx.net>
Encountering a theme that could not be thumbnailed (e.g. because the
metacity theme for a metatheme isn't installed) would make the
thumbnailer crash. Since it's not restarted by the appearance capplet
this would result in all themes encountered after the broken one not
to be thumbnailed either. This change fixes up error handling in the
thumbnailer so that the broken theme is simply skipped and processing
can continue with the next one. (bug #521009)
* theme-thumbnail.c: (create_meta_theme_pixbuf),
(create_metacity_theme_pixbuf), (message_from_capplet),
(message_from_child), (read_pixbuf),
(generate_theme_thumbnail_async), (theme_thumbnail_factory_init):
properly handle failed thumbnailing attempts
svn path=/trunk/; revision=8576
2008-03-11 Jens Granseuer <jensgr@gmx.net>
* gconf-property-editor.c: (peditor_numeric_range_widget_changed): don't
free the GConf value if we don't have one. Fixes a crash when schemas
are not properly installed (bug #520744)
svn path=/trunk/; revision=8574
2008-02-25 Thomas Wood <thos@gnome.org>
* theme-thumbnail.c: (message_from_child): Return FALSE on error or EOF,
which should also fix bug 516413, in addition to checking for G_IO_HUP.
svn path=/trunk/; revision=8523
2008-02-25 Thomas Wood <thos@gnome.org>
* theme-thumbnail.c:
(create_meta_theme_pixbuf), (create_metacity_theme_pixbuf):
Use the new meta_preview_get_clip_region() function in Metacity to fix
bug 460018 (Rounded window borders don't get rendered correctly).
(message_from_child): Do not attempt to read from the pipe when
the connection has been broken. Fixes bug 516413 (Theme thumbnailer
causes UI to stop drawing when encountering an error).
svn path=/trunk/; revision=8521
2007-12-14 Jens Granseuer <jensgr@gmx.net>
* gtkrc-utils.c: (gtkrc_get_details), (gtkrc_get_color_scheme): don't
even try to open NULL filenames, and don't leak filenames when
detecting recursions
svn path=/trunk/; revision=8330
2007-12-04 Jens Granseuer <jensgr@gmx.net>
Patch by: Brian Cameron <brian.cameron@sun.com>
* gtkrc-utils.c: (gtkrc_get_details), (gtkrc_get_color_scheme):
printing NULL strings crashes on Solaris so don't do that (bug #501391)
svn path=/trunk/; revision=8309
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