2001-08-28 Bradford Hovinen <hovinen@ximian.com>
* preferences.c (preferences_load_from_bonobo_pbag): Don't adjust
the opacity if the opacity setting is invalid
(preferences_load_from_bonobo_db): Ditto
2001-08-27 Bradford Hovinen <hovinen@ximian.com>
* archive.c (foreach_build_list_cb): Don't add the location to the
list if it is marked deleted
(impl_ConfigArchiver_Archive_createLocation): Do
CORBA_Object_duplicate rather than bonobo_object_dup_ref
* location.c (location_is_deleted): Implement
* background-properties-capplet.c (setup_dialog): Initialize/free
the CORBA environment structure
(real_realize_cb): Put into an idle handler, called by
realize_2_cb, the new timeout handler
* preferences.c (preferences_load_from_bonobo_pbag):
(preferences_load_from_bonobo_db): Extract from preferences_new_*
* background-properties-capplet.c (property_change_cb):
(realize_cb): Accept prefs structure in lieu of
Bonobo_PropertyBag; don't reload the preferences structure from
the property bag
(property_change_cb): Call preferences_apply_event to modify the
preferences structure appropriately
(property_change_cb):
(realize_cb): If the preferences structure is marked destroyed,
just return
(setup_dialog): Create a preferences structure from the property
bag given and use that as the extra data passed to callbacks
(realize_cb): Put into an idle handler real_realize_cb
* preferences.c (preferences_apply_event): Implement
* applier.c (output_compat_prefs): Make prefs const
* applier.[ch]: Have applier_apply_prefs take a const Preferences
structure
* preferences.[ch]: Make preferences_clone take a const
Preferences structure
2001-08-21 Bradford Hovinen <hovinen@ximian.com>
* idl/ConfigArchiver.idl: Added exception RollbackDataNotFound
Added exception LocationNotFound
* archive.c (archive_get_current_location_id): Use
archive_create_location rather than location_new
(archive_get_current_location_id): Unref the location once we have
created it
* archiver-client.c (location_client_load_rollback_data): Don't
try to parse the XML file if there was an exception
* bonobo-config-archiver.c (bonobo_config_archiver_new): Make sure
to release_unref location and archive if aborting
(bonobo_config_archiver_new): Reinitialize exception structure
after we have succeeded
* location.c (location_get_rollback_filename): Recurse on parent
location if parent_chain is set to TRUE
* archive.c (impl_ConfigArchiver_Archive_getLocation): Set the
LocationNotFound exception if the location returned was NULL
* location.c (impl_ConfigArchiver_Location_getRollbackFilename): Don't try
* archive.c (impl_ConfigArchiver_Archive_getLocation): Don't try
to CORBA_Object_duplicate the result if it is NULL
(archive_get_location): Don't try to cast the result of
location_open before we know whether it is non-NULL
(impl_ConfigArchiver_Archive_createLocation): Call
bonobo_object_from_servant on parent_ref->servant
* location.c (location_destroy): Remove debugging message; make
remaining debugging message more enlightening
* archive.c (archive_get_child_locations): Rename from
archive_foreach_child_location; rewrite to return a GList of child
locations
(impl_ConfigArchiver_Archive_getChildLocations): Use
archive_get_child_locations
(archive_destroy): Remove debugging message
* bonobo-moniker-archiver.c (archive_resolve): Remove debugging
messages
* archive.c (archive_get_location): Remove debugging messages
* config-log.c (dump_log): Remove debugging messages
* archive.c (archive_foreach_child_location): Build a list first
and then traverse it to avoid screwing up the tree traversal
* mouse-properties-capplet.c (apply_settings): Use a CORBA
exception structure
2001-08-13 Richard Hestilow <hestilow@ximian.com>
* applier.c (applier_apply_prefs): Only draw disabled message
if do_preview. Actually, the user will never see this because
the correct behavior (which is done) is to assume if they're
running capplet, prefs->enable should be TRUE. This is because
we are only honoring enable as a hacker-only setting.
(output_compat_prefs): Output the correct "Enable" setting.
* background-properties-capplet.c (get_legacy_settings): Support
the "Enabled" flag.
* preferences.c (preferences_new_from_bonobo_db): Import the
"enabled" flag. Note that this is not bothered with in the _pbag
function, because that's from the Proxy settings, which is only
used for the GUI capplet, which always sets enabled to True, because
this is a hacker-only option. Got it?
* background-properties.xml: Add "enabled".
2001-08-09 Richard Hestilow <hestilow@ximian.com>
* Makeflie.am (EXTRA_DIST): Install all pixmaps.
(pixmaps_DATA): Add blank-screen.png.
* pref-file.c: Replace "programs" value with a regenerated
string.
(print_aligned_row): Added.
(print_list_to_str): Added.
* preferences.h (Screensaver): Add new fields "filename",
"compat_command_line", "fakepreview", and "fakes",
to deal with the new xml storage.
(Preferences): Add new fields "savers_hash" and "invalidsavers".
* preferences.c (screensaver_list_prepend_dir): Added.
(screensaver_cmp_func): Added.
(screensaver_list_load): Added.
(preferences_new): Initialize savers_hash.
(clean_saver_list): Added.
(preferences_load): Load screensavers from xml.
(parse_arg_default): Added.
(screensaver_read_xml): Updated for the new format.
(screensaver_new_from_file): Added.
* prefs-widget.c (double_click_cb): Added.
(): Remove right click menu, add double click handler.
(model_is_cell_editable): Fix for etable bug.
(random_timeout_cb): Avoid vidwhacker and webcollage.
* preview.c: Optionally show fakepreview if set, and
deal with compat_command_line, and refresh pixbufs.
(command_exists): Renamed to rc_command_exists.
* rc-parse.c: (parse_screensaver_list): Merely update
the existing entries, via the provided hash.
* screensaver-prefs-dialog.c (get_argument_data): Just
find the xml file using ::filename.
* screensavers/magic.pl.in: Added.
* screensavers/Makefile.am: Generate .xml.h files for translators,
and install all .xml files and .png files, and run magic.pl on
make install.
2001-07-30 Bradford Hovinen <hovinen@ximian.com>
* capplet-util.c (capplet_init): Call setup_session_mgmt if --apply or
--init-session-settings was passed
2001-07-27 Richard Hestilow <hestilow@ximian.com>
* applier.c (applier_apply_prefs): Only draw disabled message
if do_preview. Actually, the user will never see this because
the correct behavior (which is done) is to assume if they're
running capplet, prefs->enable should be TRUE. This is because
we are only honoring enable as a hacker-only setting.
(output_compat_prefs): Output the correct "Enable" setting.
* background-properties-capplet.c (get_legacy_settings): Support
the "Enabled" flag.
* preferences.c (preferences_new_from_bonobo_db): Import the
"enabled" flag. Note that this is not bothered with in the _pbag
function, because that's from the Proxy settings, which is only
used for the GUI capplet, which always sets enabled to True, because
this is a hacker-only option. Got it?
2001-07-27 Richard Hestilow <hestilow@ximian.com>
* prefs-widget.c (random_timeout_cb): Don't go into an infinite
loop if there are absolutely no enabled screensavers.
2001-07-27 Bradford Hovinen <hovinen@ximian.com>
* mouse-properties.glade: Fix mouse speed and acceleration
controls to be wider and to use discrete values
2001-07-27 Bradford Hovinen <hovinen@ximian.com>
* mouse-properties.xml: Change type of right-to-left to ulong
* mouse-properties-capplet.c (apply_settings): Use get_ulong
rather than get_boolean
2001-07-26 Bradford Hovinen <hovinen@ximian.com>
* applier.c (applier_apply_prefs): Don't try to load the wallpaper
if it's not enabled
* preferences.c (preferences_new_from_bonobo_pbag): Use
bonobo_property_editor_client_get_value_*
(preferences_new_from_bonobo_pbag): Set gradient_enabled properly
from property bag
(preferences_new_from_bonobo_pbag): Check for wallpaper == "(none)"
(preferences_new_from_bonobo_db): Ditto above
2001-07-26 Bradford Hovinen <hovinen@ximian.com>
* applier.c (renderer_render_wallpaper): Restore some lost tweaks
from earlier.
* preferences.c (preferences_init): strdup the home directory
* applier.c: Store preview widget in the renderer, not the applier
itself
2001-07-26 Richard Hestilow <hestilow@ximian.com>
* applier.c: Remove all bonobo-conf stuff.
* preferences.[ch]: New functions preferences_new_from_bonobo_pbag
and preferences_new_from_bonobo_db.
2001-07-26 Bradford Hovinen <hovinen@ximian.com>
* keyboard-properties.c (apply_settings): Initialize the other
fields of this data structure
(apply_settings): Use lookup table to get the values to put in
kbdsettings
2001-07-26 Bradford Hovinen <hovinen@ximian.com>
* capplet-util.c (capplet_init): Don't sync the database if
retrieving legacy setings before creating the factory
(create_control_cb): Create the config database ourselves
(pf_destroy_cb): Remove evil hackery
(get_control_cb): Ditto
(create_control_cb): Support multiple property control objects --
use a GtkObject called ref_obj to make sure the program quits when
there are no such objects left
(capplet_init): Pass default_moniker to factory callback;
release_unref the db ourselves
(get_control_cb): Support multiple controls; soak in global
control and widget variables
(legacy_is_modified): Remember to unref the property bag
(quit_cb): Allow being called more than once
(quit_cb): Unref ref_obj here
(create_control_cb): Eliminate second signal connection
(real_quit_cb): Free the pair structure
(all_done_cb): Implement. Just add gtk_main_quit to the idle
handler list
(create_control_cb): Connect destroy signal of ref_obj to
all_done_cb
2001-07-26 Bradford Hovinen <hovinen@ximian.com>
* applier.c (renderer_render_wallpaper): Make sure not to scale
the pixbuf if the wallpaper type is centered
2001-07-26 Bradford Hovinen <hovinen@ximian.com>
* background-properties-capplet.c (property_change_cb): Accept
applier as argument; retrieve property bag from applier
(realize_cb): Retrieve applier from widget
(setup_dialog): Store property bag in applier
* applier.c (renderer_new): Store applier inside renderer; accept
applier as function parameter
* background-properties-capplet.c (create_dialog): Store the
applier inside the widget
* applier.c (struct _ApplierPrivate ): Define preview_widget here
rather than globally
(applier_get_preview_widget): Make this a method of the applier class
2001-07-25 Chema Celorio <chema@celorio.com>
* Makefile.am: remove the OAF_FILE_IN_RULE and copy it here
(bonobo_sources): add bonobo-properties-editor-range.[ch]
* Makefile.am: remove the DESKTOP_IN_RULE and copy the sed here