Commit graph

57 commits

Author SHA1 Message Date
Richard Hestilow
3181b13b99 Add a PropertyBag argument so capplet authors can hook up to the proxy.
2001-07-18  Richard Hestilow  <hestilow@ximian.com>

	* capplet-util.h (CreateDialogFn): Add a PropertyBag argument so
	capplet authors can hook up to the proxy.

	* capplet-util.c (get_control_cb): Pass the proxy bag to setup_cb.
	(capplet_init): Don't free default_moniker until after we print it.
2001-07-18 16:08:32 +00:00
Bradford Hovinen
fe99988f34 Add mechanism for quitting once the moniker is no longer in use
2001-07-17  Bradford Hovinen  <hovinen@ximian.com>

        * bonobo-config-archiver.c (bonobo_config_archiver_new): Add
        mechanism for quitting once the moniker is no longer in use
        (bonobo_config_archiver_new): Make archive a static variable
        (bonobo_config_archiver_new): Explicitly destroy archive when
        program quits
        (timeout_cb): Remove

        * capplet-util.c (get_factory_name):
        (get_default_moniker):
        (get_property_name): Use correct names when the full path was
        specified for the executable
2001-07-17 22:14:19 +00:00
Bradford Hovinen
603e18320d Destroy the property control when the control or the widget are destroyed
2001-07-17  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-util.c (get_control_cb): Destroy the property control when the control or
	the widget are destroyed
	(quit_cb): Implement
	(create_control_cb): Connect destroy signal of property control to
	quit_cb
2001-07-17 20:09:30 +00:00
Bradford Hovinen
1e7101f61d Implement. Return the property name associated with the capplet
2001-07-17  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-util.c (get_property_name): Implement. Return the property name
	associated with the capplet
	(set_moniker_cb): Use GTK_BIN (pf)->child rather than
	bonobo_control_get_widget
	(get_control_cb): Quit the program when the control or the widget
	are destroyed
2001-07-17 18:58:02 +00:00
Bradford Hovinen
43d56c8e68 Removed -DGLADE_DATADIR
2001-07-17  Bradford Hovinen  <hovinen@ximian.com>

	* Makefile.am (INCLUDES): Removed -DGLADE_DATADIR

	* capplet-util.c (create_dialog_cb): Use create_widget_cb rather
	than loading from Glade
	(capplet_init): Accept CreateDialogFn and initialize
	create_dialog_cb
	(close_cb): Don't call gtk_object_destroy (dialog)
	(get_control_cb): Rename from create_dialog_cb

	* sound-properties-capplet.c (create_dialog): Implement
	(main): Call glade_gnome_init; pass create_dialog to capplet_init
	(setup_dialog): Retrieve the Glade data from the widget passed to
	this function
	(create_dialog): Make sure dialog is destroyed when widget is

	* Makefile.am (EXTRA_DIST): Changed Applications_DATA to
	Applications_in_files
	(INCLUDES): Add -DGLADE_DATADIR
2001-07-17 18:34:44 +00:00
Bradford Hovinen
8459555f65 Return NULL in the case that the control is already present
2001-07-13  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-util.c (create_dialog_cb): Return NULL in the case that
	the control is already present

	* capplet-dir.c (capplet_control_launch): Accept window_title
	parameter and use it as the title
	(capplet_activate): Pass entry->name to capplet_control_launch
	(capplet_control_launch): Don't print error and use correct test
	for control_ref == CORBA_OBJECT_NIL
2001-07-13 19:58:58 +00:00
Bradford Hovinen (Gdict maintainer)
159178f15d Added common library in capplets/common
Moved code from capplets/sound/sound-properties-capplet.c to common library
2001-07-13 18:51:28 +00:00