2007-10-30 Jens Granseuer <jensgr@gmx.net>
* theme-installer.c: (gnome_theme_installer_run): revert last patch,
it's just too ugly as long as the "one dialog per installed file" issue
isn't fixed
svn path=/trunk/; revision=8236
2007-10-30 Jens Granseuer <jensgr@gmx.net>
Patch by: Benjamin Gramlich <benjamin.gramlich@gmail.com>
* theme-installer.c: (gnome_theme_installer_run): allow the user to
select multiple themes to install at once (first part of the fix for
bug #124554)
svn path=/trunk/; revision=8235
2007-10-30 Jens Granseuer <jensgr@gmx.net>
When installing multiple themes at once, don't ask the user whether to
apply after each theme. Instead, simply show a success message after
installation has finished, and ask only if a single theme has been
installed.
* theme-installer.c: (gnome_theme_install_real),
(transfer_done_cb): check whether there are multiple themes to install
up front, and skip the apply dialog if so
svn path=/trunk/; revision=8234
2007-10-30 Jens Granseuer <jensgr@gmx.net>
* theme-installer.c: (gnome_theme_install_real): also update the icon
cache for icon themes with cursors
svn path=/trunk/; revision=8233
2007-10-30 Jens Granseuer <jensgr@gmx.net>
* theme-installer.c: (file_theme_type), (gnome_theme_install_real):
teach the installer to recognize cursor themes and icon themes with
cursors and how to apply them
svn path=/trunk/; revision=8232
2007-10-29 Jens Granseuer <jensgr@gmx.net>
* appearance-style.c: (gtk_theme_changed), (window_theme_changed),
(icon_theme_changed), (update_cursor_size_scale),
(cursor_theme_changed):
* appearance-themes.c: (theme_selection_changed_cb):
* theme-util.c: (theme_is_writable):
* theme-util.h: simplify some more code, and fix a crash when the
cursor theme in GConf is unset that I introduced in r8212
svn path=/trunk/; revision=8228
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>
* main.c: (free_display_info), (update_display_info),
(read_display_info), (apply_config), (revert_config): revert some of
the previous "clean-up", add some new, and fix another leak
svn path=/trunk/; revision=8221
2007-10-27 Jens Granseuer <jensgr@gmx.net>
* main.c: (free_display_info), (restart_screensaver),
(apply_config), (revert_config), (cb_dialog_response), (main): clean up
code a bit and fix a few leaks
svn path=/trunk/; revision=8217
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-27 Jens Granseuer <jensgr@gmx.net>
If the cursor theme changes, and the currently set size is not
available for the new theme, we were not updating the cursor size in
GConf, leading to bogus results when checking for metatheme equality.
* appearance-style.c: (cursor_size_changed_cb),
(update_cursor_size_scale), (cursor_size_scale_value_changed_cb):
update cursor size GConf value when the theme changes; also don't write
bogus values to GConf when we are only doing fuzzy matches
svn path=/trunk/; revision=8212
2007-10-27 Jens Granseuer <jensgr@gmx.net>
* theme-util.c: (theme_delete): if the parent directory is empty after
deleting a theme, delete the parent directory, too
svn path=/trunk/; revision=8210
2007-10-25 Jens Granseuer <jensgr@gmx.net>
* appearance-style.c: (style_init):
* data/appearance.glade: move some more of the cursor size widget
initialization to glade. This allows the slider to be updated properly
on startup (bug #490103)
svn path=/trunk/; revision=8201
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-24 Jens Granseuer <jensgr@gmx.net>
* appearance-themes.c: (theme_load_from_gconf),
(theme_details_changed_cb), (themes_init): return a new theme instead
of munging whatever got passed in. Makes for a saner API
svn path=/trunk/; revision=8192
2007-10-24 Jens Granseuer <jensgr@gmx.net>
The fix for bug #420154 not only made the entry for the theme installer
disappear from the menu, but also disabled mime-type handling for Gnome
Theme Packages (bug #486811). Revert that change and use NoDisplay=true
instead. This will remove the entry from the menu (not from the menu
editor, though), and not break mime handling.
* data/gnome-theme-installer.desktop.in.in: use NoDisplay=true instead
of OnlyShowIn=;
svn path=/trunk/; revision=8190
2007-10-18 Jens Granseuer <jensgr@gmx.net>
* appearance-themes.c: (theme_load_from_gconf),
(theme_set_custom_from_theme): really make sure gtk, metacity, icon, and
cursor themes are never NULL (should fix#487257 if the last commit didn't
already)
svn path=/trunk/; revision=8180
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>
When updating theme info from GConf or copying it for customization, we
were ignoring xcursor settings. As a result, saved custom themes always
had the default theme set. (bug #485709)
* appearance-themes.c: (get_default_int_from_key),
(theme_load_from_gconf), (theme_set_custom_from_theme): when setting up
theme info, take cursor settings into account
svn path=/trunk/; revision=8168
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-10-09 Jens Granseuer <jensgr@gmx.net>
* appearance-desktop.c: (wp_props_wp_set): fix crash if we fail to
convert a filename to UTF-8
svn path=/trunk/; revision=8164
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-09-29 Jens Granseuer <jensgr@gmx.net>
* theme-thumbnail.c: (generate_gtk_theme_thumbnail),
(generate_theme_thumbnail_async),
(generate_gtk_theme_thumbnail_async): move the code for setting the
color scheme for gtk thumbnails to the gtk-specific function. This
means we will probably extract it twice for most thumbnails, but it
makes for much cleaner code. Also add the scheme bit to the synchronous
version.
svn path=/trunk/; revision=8144
2007-09-25 Jens Granseuer <jensgr@gmx.net>
* theme-thumbnail.c: patch up an outdated comment about how the
thumbnailer protocol works
svn path=/trunk/; revision=8137
2007-09-25 Jens Granseuer <jensgr@gmx.net>
Prevent lots of thumbs from being created with the color scheme of the
currently active theme (see comment #15 in bug 460023). Maybe it also
helps with some of the other color-related issues.
* theme-thumbnail.c: (create_gtk_theme_pixbuf),
(generate_theme_thumbnail_async): when creating GTK theme thumbnails,
explicitly pass the theme's color scheme to override the xsetting
svn path=/trunk/; revision=8135
2007-09-23 Jens Granseuer <jensgr@gmx.net>
* appearance-desktop.c: (wp_drag_received), (wp_drag_get_data),
(desktop_init): add support for dragging images from the background list
(bug #150544)
svn path=/trunk/; revision=8132