2009-01-25 Jens Granseuer <jensgr@gmx.net>
* gnome-theme-info.c: (handle_change_signal), (update_theme_index),
(update_common_theme_dir_index):
* gnome-theme-info.h: add GnomeThemeElement parameter to the
ThemeChangedCallback so that the receiver can determine what part of
the theme changed (part of bug #568595)
2009-01-25 Jens Granseuer <jensgr@gmx.net>
Fix newly installed themes appearing twice in the GTK themes list if
the package contains themes for both GTK and metacity (bug #568595)
* appearance-style.c: (changed_on_disk_cb): check the new
GnomeThemeElement parameter instead of the theme properties to
determine what part of the theme changed
* appearance-themes.c: (theme_changed_on_disk_cb): use new callback
signature
svn path=/trunk/; revision=9206
+
+ * Get rid of a number of unnecessary gnome.h includes
+
+ * capplets/keybindings/gnome-keybinding-properties.c: Use
+ gtk_init() instead of gnome_program_init().
+
+ * A couple of formatting fixes
+
svn path=/trunk/; revision=9098
2008-10-07 Jens Granseuer <jensgr@gmx.net>
Patch by: Matthias Clasen <mclasen@redhat.com>
* appearance-main.c: (main_window_response):
* appearance-style.c: (style_response_cb): connect the help buttons
to the most appropriate sections in the user guide (bug #554957)
svn path=/trunk/; revision=9043
2008-09-24 Jens Granseuer <jensgr@gmx.net>
* appearance-style.c: (conv_to_widget_cb), (prepare_list): make sure
the GConf to widget conversion funtion has all the data it needs
when it is called for the first time. Fixes a possible crash when
starting the capplet (bug #553541)
svn path=/trunk/; revision=8998
2008-08-22 Jens Granseuer <jensgr@gmx.net>
* appearance-style.c: (conv_to_widget_cb), (create_thumbnail),
(prepare_list): when a hidden theme is selected, and therefore
becomes visible, create a thumbnail for it (bug #547301)
svn path=/trunk/; revision=8879
2008-08-12 Jens Granseuer <jensgr@gmx.net>
* appearance-style.c: (conv_to_widget_cb), (prepare_list): when
adding an unknown theme to the list because it has been selected use
the corresponding default icon to represent it
svn path=/trunk/; revision=8856
2008-05-08 Jens Granseuer <jensgr@gmx.net>
* appearance-style.c: (style_message_area_response_cb),
(update_message_area), (gtk_theme_changed), (style_init):
* appearance.h:
* data/appearance.glade: also show a missing theme engine in the
GTK themes list and offer to install it via packagekit
svn path=/trunk/; revision=8698
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
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>
* 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-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-08-11 Jens Granseuer <jensgr@gmx.net>
* appearance-style.c: (conv_from_widget_cb): make sure we have a
selection before trying to get the data (bug #465431)
svn path=/trunk/; revision=7987
2007-08-08 Jens Granseuer <jensgr@gmx.net>
* appearance-style.c: (gtk_theme_changed): revert r7973 because it
broke color scheme notifications, and add a comment
* appearance-themes.c: (theme_setting_changed_cb), (themes_init):
connect to some signals from GtkSettings instead of GConf
svn path=/trunk/; revision=7980
2007-08-07 Jens Granseuer <jensgr@gmx.net>
* appearance-style.c: (gtk_theme_changed): also remove code that we
needed when the thumbnailer was still in-process
svn path=/trunk/; revision=7973
2007-08-07 Jens Granseuer <jensgr@gmx.net>
* appearance-style.c: (color_button_clicked_cb): make sure the color
scheme has changed before writing to GConf and enabling the reset button
svn path=/trunk/; revision=7969
2007-08-07 Jens Granseuer <jensgr@gmx.net>
* appearance-style.c: (update_color_buttons_from_string): simplify
(check_color_schemes_enabled): fix check for available symbolic colors
and make buttons for unsupported colors insensitive (bug #464081)
(color_button_clicked_cb), (style_init): simplify
* data/appearance.glade: name the color buttons exactly like their
respective color so we don't need to keep two arrays around
svn path=/trunk/; revision=7968
2007-08-04 Jens Granseuer <jensgr@gmx.net>
Based on a patch by: Dennis Cranston <dennis_cranston@yahoo.com>
* appearance-style.c: (update_cursor_size_scale) Toggle
sensitivity of the cursor scale labels (bug #463442)
svn path=/trunk/; revision=7961
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-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-26 Denis Washington <denisw@svn.gnome.org>
* data/appearance.glade:
Fixed a bug introduced in my last commit which caused to make the
button box appear above the cursors list in the theme details window.
* appearance-style.c: (cursor_theme_sort_func), (prepare_list):
Make "Default Pointer" always appear as first item in the list.
svn path=/trunk/; revision=7891
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>
* appearance-style.c: (prepare_list):
* appearance-themes.c: (theme_load_from_gconf):
* theme-save.c: (write_theme_to_disk):
Implement saving of the cursor theme name in metathemes, and add a
"Default Pointer" option to the cursor theme list in Theme Details.
svn path=/trunk/; revision=7885
2007-07-05 Jens Granseuer <jensgr@gmx.net>
* appearance-style.c: (update_color_buttons_from_string): don't allocate
colors in the colormap
(update_cursor_size_scale), (cursor_size_scale_value_changed_cb): don't
crash if we have nothing but the default cursor theme
svn path=/trunk/; revision=7829
2007-06-26 Jens Granseuer <jensgr@gmx.net>
* appearance-style.c: (prepare_list):
no need to reassign thumbnails inside the loop
* appearance-themes.c: (theme_load_from_gconf), (theme_is_equal):
consider NULL and "" equal for color schemes; also reshuffle
functions a bit and fix the include list
svn path=/trunk/; revision=7782
2007-06-25 Denis Washington <denisw@svn.gnome.org>
* appearance-themes.c:
Adjusted for the API changes in theme-thumbnail.c. Thumbnail requestes are
now directly queued by generate_*_async(), so do not maintain an own queue
anymore.
* appearance-style.c:
Use the new asynchronous thumbnail generation functions, and replace all
occurrences of "metacity_themes_list" with the correct "window_themes_list".
* appearance.h:
Remove "theme_queue", it is not needed anymore.
svn path=/trunk/; revision=7776