Commit graph

58 commits

Author SHA1 Message Date
jacob berkman
b67a5e0c25 fix the macro
2002-09-26  jacob berkman  <jacob@ximian.com>

	* capplet-dir.c (find_icon): fix the macro

	* capplet-dir-view.c (capplet_dir_view_init): use control-center2.png

	* Makefile.am: remove control-center.png which conflicts with the
	gnome 1 package and define different macros for $datadir/pixmaps
	and $gnomecc_icon_dir
2002-09-26 16:49:42 +00:00
Jody Goldberg
fb112f7d4b http://bugzilla.gnome.org/show_bug.cgi?id=85003 copy the string before
2002-06-18  Jody Goldberg <jody@gnome.org>

 	http://bugzilla.gnome.org/show_bug.cgi?id=85003
	* capplet-dir.c (capplet_dir_new) : copy the string before inserting
	  in hash.
2002-06-18 21:59:15 +00:00
Lauris Kaplinski
1171f13e9e Fix few segfaults on broken schemas - but there are more 2002-03-19 19:15:49 +00:00
Zbigniew Chyla
3e10c0f813 s/gnome_desktop_item_get_string/gnome_desktop_item_get_localestring (use
2002-02-28  Zbigniew Chyla  <cyba@gnome.pl>

	* capplet-dir.c (capplet_new, capplet_dir_new):
	s/gnome_desktop_item_get_string/gnome_desktop_item_get_localestring
	(use translated version of GNOME_DESKTOP_ITEM_NAME).
2002-02-28 15:11:56 +00:00
Lauris Kaplinski
f10263de73 Excluded capplet-dir-view-tree from SOURCES so the whole thing builds
deprecated clean now.
2002-02-14 13:29:09 +00:00
jacob berkman
008d65f134 use control-center2.png
2002-02-05  jacob berkman  <jacob@ximian.com>

	* gnomecc.desktop.in (Icon):
	* capplet-dir.c (find_icon): use control-center2.png
2002-02-05 22:16:10 +00:00
Lauris Kaplinski
35e192827a Lot of little fixes to make it to compile without most of the deprecated stuff 2002-02-04 17:48:43 +00:00
Seth Nickell
5fe3e40279 Read control center directory structure out of GnomeVFS instead of
2002-01-28  Seth Nickell  <snickell@stanford.edu>

	* control-center/capplet-dir.c: (capplet_new), (capplet_dir_new),
	(capplet_dir_entry_destroy), (read_entries),
	(get_root_capplet_dir):
	* control-center/capplet-dir.h:

	Read control center directory structure out of GnomeVFS instead of
	directly off the disk.

	Also deal with pixmaps more uniformly, and properly load them
	out of PREFIX/share/pixmaps when they aren't an absolute path.

	* capplets/desktop-links/Sawfish/appearance-properties.desktop.in:
	* capplets/desktop-links/Sawfish/bindings-properties.desktop.in:
	* capplets/desktop-links/Sawfish/focus-properties.desktop.in:
	* capplets/desktop-links/Sawfish/match-properties.desktop.in:
	* capplets/desktop-links/Sawfish/maximize-properties.desktop.in:
	* capplets/desktop-links/Sawfish/meta-properties.desktop.in:
	* capplets/desktop-links/Sawfish/misc-properties.desktop.in:
	* capplets/desktop-links/Sawfish/move-properties.desktop.in:
	* capplets/desktop-links/Sawfish/placement-properties.desktop.in:
	* capplets/desktop-links/Sawfish/sound-properties.desktop.in:
	* capplets/desktop-links/Sawfish/workspace-properties.desktop.in:
	* capplets/ui-properties/behavior.desktop.in.in:

	Add a Categories Field.

	* capplets/desktop-links/Makefile.am:
	* capplets/desktop-links/Sawfish/Makefile.am:
	* capplets/file-types/Makefile.am:
	* capplets/theme-switcher/Makefile.am:
	* capplets/ui-properties/Makefile.am:
	* control-center/Gnome.directory.in.in:
	* control-center/Makefile.am:

	Install directory files into PREFIX/share/gnome/vfolders, the standard
	vfolder description location.
2002-01-29 04:48:25 +00:00
Jean Schurger
44aca2c8c3 Check for entry->icon[0] != 0 if (Icon =) in the desktop file. if
2002-01-09  Jean Schurger <jschurger@schurger.org>

        * capplet-dir.c (capplet_new): Check for entry->icon[0] != 0
                if (Icon =) in the desktop file.
                if entry->icon is a DIR
                If entry->icon[0] still NULL.
2002-01-10 19:46:45 +00:00
Richard Hestilow
4d346978f5 Check for ditem::icon != NULL before calling gnome_pixmap_file.
2002-01-03  Richard Hestilow  <hestilow@ximian.com>

	* capplet-dir.c (capplet_new): Check for ditem::icon != NULL
	before calling gnome_pixmap_file.

	* gnomecc.glade: Remove toolbar & menu stuff (this was causing
	runtime glade warnings).
2002-01-03 21:25:24 +00:00
Bradford Hovinen
894a0a1c3a Eliminate compiler warnings
2001-12-20  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-dir-view-list.c: Eliminate compiler warnings

	* preferences.c: Eliminate compiler warnings

	* capplet-dir-view.c: Eliminate compiler warnings

	* capplet-dir.c: Eliminate compiler warnings

	* main.c: Eliminate compiler warnings
2001-12-20 20:32:02 +00:00
Bradford Hovinen
30389610b4 Add parameter GNOME_PARAM_APP_DATADIR
2001-12-20  Bradford Hovinen  <hovinen@ximian.com>

	* capplets/screensaver/main.c (main): Add parameter
	GNOME_PARAM_APP_DATADIR

	* mouse-properties-capplet.c (main): Add parameter
	GNOME_PARAM_APP_DATADIR

	* configure.in (GNOMECC_DESKTOP_DIR): Define
	(GNOMECC_DATA_DIR): Define
	Remove AC_DEFINE_UNQUOTED for the rest of the directories

	* All: Update to reflect above
2001-12-20 18:52:39 +00:00
Bradford Hovinen
74227fb5dc Remove support for launching capplets (real_launch_control): Remove
2001-12-17  Bradford Hovinen  <hovinen@ximian.com>

	* main.c (main): Remove support for launching capplets
	(real_launch_control): Remove

	* capplet-dir.c: Remove bonobo capplet utility functions
	(capplet_activate): Don't use capplet_control_launch
2001-12-17 20:33:19 +00:00
Havoc Pennington
16c673a0f7 add gnome-desktop-2.0 to CFLAGS, add AC_PROG_INTLTOOL
2001-12-08  Havoc Pennington  <hp@pobox.com>

	* configure.in (COMMON_MODULES): add gnome-desktop-2.0 to CFLAGS,
	add AC_PROG_INTLTOOL

2001-12-08  Havoc Pennington  <hp@pobox.com>

	* POTFILES.in: remove applier.c which doesn't exist

2001-12-08  Havoc Pennington  <hp@pobox.com>

	* capplet-dir-view.c: remove unused include that broke stuff

	* capplet-dir.c (capplet_activate): fix args to
	gnome_desktop_item_launch

2001-12-08  Havoc Pennington  <hp@pobox.com>

	* gnome-startup.h: use G_BEGIN_DECLS so it builds
2001-12-09 04:44:37 +00:00
Richard Hestilow
45c1c24057 Initial port to GNOME2, removal of gtkhtml deps.
2001-11-26  Richard Hestilow  <hestilow@ximian.com>

	* Initial port to GNOME2, removal of gtkhtml deps.
2001-11-26 17:06:41 +00:00
Bradford Hovinen
40cb24b5db Remove #ifdef HAVE_BONOBO instances
2001-10-26  Bradford Hovinen  <hovinen@ximian.com>

	* main.c: Remove #ifdef HAVE_BONOBO instances

	* capplet-dir.c: Remove #idef HAVE_BONOBO instances
2001-10-26 19:18:24 +00:00
Bradford Hovinen (Gdict maintainer)
f824b0dcc0 Updated dated file headers 2001-10-15 16:06:56 +00:00
Bradford Hovinen
4b6d9f7f99 Try to resolve a listener to make sure that something is listening when we
2001-10-13  Bradford Hovinen  <hovinen@ximian.com>

	* bonobo-config-archiver.c (real_sync): Try to resolve a listener
	to make sure that something is listening when we issue the sync
	event (disabled for now)
	(get_listener_oafiid): Implement (disabled for now)

2001-10-12  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-util.c (get_factory_name): Updated factory name to
	reflect new, expanded roles

	* Bonobo_Control_Capplet_generic.oaf.in: Create

2001-09-29  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-util.c (create_control_cb): Elimite reference counter --
	it's not necessary
	(create_control_cb): Make this a multi-factory so that we can
	return the listener when needed
	(capplet_init): Set up the listener here rather than in
	get_control_cb; also remove the listener and unref the database
	here
	(quit_cb, real_quit_cb): Remove (thank the gods)

2001-10-12  Bradford Hovinen  <hovinen@ximian.com>

	* Makefile.am ($(oaffile)): Make creation of the .oaf file generic

2001-10-12  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-dir.c (capplet_control_launch): Unref the property bag
	when we are done
2001-10-13 17:26:48 +00:00
Bradford Hovinen (Gdict maintainer)
e383bb82c5 Removed debugging message 2001-09-28 17:23:25 +00:00
Bradford Hovinen
a850f20fa7 Remove -control from the end of the string as well as -capplet
2001-09-28  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-util.c (get_default_moniker): Remove -control from the
	end of the string as well as -capplet
	(get_factory_name): Ditto
	(get_property_name): Ditto

	* capplets/*/Makefile.am: Change the binary name to
	*-properties-control and create a wrapper script from
	../common/wrapper-script.in to be named
	*-properties-capplet
	Remove support for disabling bonobo-conf build
2001-09-28 12:30:35 +00:00
Bradford Hovinen
c8b405679c Create apply and close buttons to match the setup tools
2001-09-22  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-dir.c (capplet_control_launch): Create apply and close
	buttons to match the setup tools
2001-09-22 23:37:35 +00:00
Bradford Hovinen (Gdict maintainer)
4e6a3b89d6 Added CORBA interface to the archiver 2001-08-20 15:47:57 +00:00
Bradford Hovinen
6c25caa8cc Use timeout when launching desktop entry; idle handler when launching
2001-07-27  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-dir.c (capplet_activate): Use timeout when launching
	desktop entry; idle handler when launching Bonobo control
2001-07-27 17:31:37 +00:00
Bradford Hovinen
5fd3e851db Remove debugging messages
2001-07-26  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-dir.c (capplet_activate): Remove debugging messages
2001-07-27 01:25:15 +00:00
Bradford Hovinen
4af8d8fa92 Add flag launching
2001-07-26  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-dir.h (struct _Capplet): Add flag launching

	* capplet-dir.c (capplet_new): Initialize capplet->launching
	(capplet_reset_cb): Implement. Just reset capplet->launching
	(capplet_activate): Just return if capplet->launching is set;
	otherwise set that flag and add an idle handler to unset it
2001-07-27 01:23:26 +00:00
Bradford Hovinen
a220f2948b Remove check for capplet already running
2001-07-26  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-dir.c (capplet_control_launch): Remove check for capplet
	already running
2001-07-26 16:24:36 +00:00
Bradford Hovinen (Gdict maintainer)
49364fc5f1 Compilation fixes 2001-07-25 17:44:07 +00:00
Bradford Hovinen
4937798114 Remove IMLIB check (GNOMECC_CAPPLETS_DESKTOP_IN_RULE): Add sed expression
2001-07-25  Bradford Hovinen  <hovinen@ximian.com>

	* configure.in: Remove IMLIB check
	(GNOMECC_CAPPLETS_DESKTOP_IN_RULE): Add sed expression to cover
	macro DESKTOP_EXEC_LINE
	(LIBCOMMON_DIR): Add option --enable-bonobo-conf

	* all: Added support for optionally compiling without bonobo-conf enabled
2001-07-25 17:26:17 +00:00
Richard Hestilow
e88951ad3f Move capplet-launching code into an idle handler. Bonobo sucks like that.
2001-07-25  Richard Hestilow  <hestilow@ximian.com>

	* main.c (main): Move capplet-launching code into an idle handler.
	Bonobo sucks like that.

	* capplet-dir.c (capplet_activate): Remove the check for gnomecc,
	it was causing grief with bonobo. Story at 11.
2001-07-25 07:04:17 +00:00
Bradford Hovinen
6a86bc37a2 Set moniker property manually (capplet_control_launch): Remove double-free
2001-07-24  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-dir.c (capplet_control_launch): Set moniker property
	manually
	(capplet_control_launch): Remove double-free of the moniker
	(capplet_control_launch): Release and unref the property control
	in the event of an error
	(capplet_control_launch): Conclude that the capplet is already
	running only when the exception type is
	Bonobo/Moniker/InterfaceNotFound
2001-07-24 21:07:24 +00:00
Bradford Hovinen
8b9b013e5b Set moniker property manually (capplet_control_launch): Remove double-free
2001-07-24  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-dir.c (capplet_control_launch): Set moniker property
	manually
	(capplet_control_launch): Remove double-free of the moniker
	(capplet_control_launch): Release and unref the property control
	in the event of an error
2001-07-24 15:13:10 +00:00
Bradford Hovinen
02d668ce65 Don't connect the app's button signals if the app has just been destroyed
2001-07-23  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-dir.c (capplet_control_launch): Don't connect the
	app's button signals if the app has just been destroyed
2001-07-23 23:03:00 +00:00
Bradford Hovinen
8d99fd960e Set InvalidValue exception if the program could not resolve the moniker
2001-07-23  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-util.c (set_moniker_cb): Set InvalidValue exception if
	the program could not resolve the moniker

	* capplet-dir.c (capplet_control_launch): Put up an error dialog
	and abort the process if the capplet reports an error trying to
	resolve its moniker
2001-07-23 22:58:32 +00:00
Richard Hestilow
e6e16f3c15 Change name to "Main".
2001-07-19  Richard Hestilow  <hestilow@ximian.com>

	* Gnome.directory.in.in: Change name to "Main".

	* capplet-dir.c (capplet_new): Return NULL if program
	is not accessible.

	* capplet-dir-view.c (sidebar_populate): Don't show a directory
	if it is empty.
2001-07-20 01:40:01 +00:00
Richard Hestilow
11c5ef7d46 Removed debugging spew.
2001-07-19  Richard Hestilow  <hestilow@ximian.com>

	* Removed debugging spew.

	* Removed most of the menu bar.

	* capplet-dir-view.c (about_menu_cb): Add Chema, jimmac, and myself
	to authors list.

	* capplet-dir-view-html.c (html_populate, html_write_row): Spacing
	fix.
2001-07-19 21:11:06 +00:00
Bradford Hovinen
2b80912c72 Don't give an error if the property control is NULL
2001-07-19  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-dir.c (capplet_control_launch): Don't give an error if
	the property control is NULL
2001-07-19 17:39:47 +00:00
Richard Hestilow
042c40c8da Remove annoying debugging output.
2001-07-18  Richard Hestilow  <hestilow@ximian.com>

	* capplet-dir.c (capplet_new): Remove annoying debugging output.

	* capplet-dir-view-html.c: Rewritten to use jimmac's new interface.

	* bcg_top.png, title.png, blank.png, active.png: Added.

	* Makefile.am (splash_DATA): Add new pixmap files.

	* gnomecc.glade: Remove ugly toolbar.

	* capplet-dir-view.[ch]: Remove toolbar-related code.
2001-07-19 03:16:35 +00:00
Jose Maria Celorio
ab0fef8323 Fix fix fix fix fix & clean stuff. With their changelog entries for your
pleasure.
2001-07-18 06:36:24 +00:00
Bradford Hovinen
9b494a3881 Explicitly unref the property control
2001-07-17  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-dir.c (capplet_cancel_cb):
	(capplet_ok_cb): Explicitly unref the property control
2001-07-17 20:08:42 +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
fa695ff9ee Accept window_title parameter and use it as the title (capplet_activate):
2001-07-13  Bradford Hovinen  <hovinen@ximian.com>

	* 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
2001-07-13 19:49:31 +00:00
Bradford Hovinen
3db03400d4 Fix position of capplet name in the Bonobo case (capplet_new): Don't abort
2001-07-12  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-dir.c (capplet_activate): Fix position of capplet name
	in the Bonobo case
	(capplet_new): Don't abort if the entry says to run gnomecc
2001-07-12 21:06:24 +00:00
Bradford Hovinen
858feb0824 Make full moniker (apply_settings): Release the return value (main):
2001-07-10  Bradford Hovinen  <hovinen@ximian.com>

	* sound-properties-capplet.c (set_moniker_cb): Make full moniker
	(apply_settings): Release the return value
	(main): Support --get-legacy option
	(get_legacy_settings): Implement
	(create_control_cb): Connect apply_cb
	(COPY_FROM_LEGACY): Use bonobo_config_set_...
	(main): Open config database regardless of what operation is
	requested; pass to create_control callback
	(apply_settings): Use bonobo_config_get_...
	(get_legacy_settings):
	(apply_settings): Don't accept CORBA_Environment *ev any more
	(create_control_cb): Store the config database in the property control
	(apply_settings): Use the correct setting name
	(apply_cb): Apply settings and sync
	(apply_settings): Kill esd when requested

	* capplet-dir.c (capplet_ok_cb): Notify property control of apply
	action
	(capplet_control_launch): Store PropertyControl in app
2001-07-10 18:27:43 +00:00
Bradford Hovinen
2c2fafbaad Use bonobo_object_unref rather than gtk_object_destroy
2001-07-09  Bradford Hovinen  <hovinen@ximian.com>

	* bonobo-config-archiver.c (bonobo_config_archiver_new): Use
	bonobo_object_unref rather than gtk_object_destroy

	* bonobo-moniker-archiver.c (archiver_resolve): Allow PropertyBag
	interface as well
	(parse_name): Set *location to NULL when there is no location

	* sound-properties.xml: Use 0 and 1 rather than true and false

	* capplet-dir.c (capplet_control_launch): Don't convert underscores
	to dashes in moniker
2001-07-09 19:56:27 +00:00
Bradford Hovinen
c09362e12a Use .gnome/capplet-archive rather than .gnome/control-center
2001-07-09  Bradford Hovinen  <hovinen@ximian.com>

	* archive.c (archive_load): Use .gnome/capplet-archive rather than
	.gnome/control-center

	* sound-properties-capplet.c (create_control_cb): Implement
	(main): Use create_control_cb

	* Bonobo_Control_Capplet_sound_properties.oaf: Use PropertyControl
	interface

	* sound-properties-capplet.c (create_dialog_cb): Update signature
	for use as a BonoboPropertyControlGetControlFn

	* capplet-dir.c (capplet_control_launch): Create a control by
	first retrieving the PropertyControl and then extracting the
	control from it
	(capplet_control_launch): Connect button signals
	(capplet_cancel_cb): Implement. Just destroy the app widget
	(capplet_ok_cb): Ditto.
	(capplet_control_launch): Don't use a BonoboArg when setting the
	property
2001-07-09 18:36:10 +00:00
Bradford Hovinen
9d08d7b15e Terminate the list of properties to set
2001-07-09  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-dir.c (capplet_control_launch): Terminate the list of
	properties to set
2001-07-09 14:03:26 +00:00
Bradford Hovinen
3e3422d465 Use GnomeDialog rather than BonoboWindow (capplet_control_launch): Use
2001-07-03  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-dir.c (capplet_control_launch): Use GnomeDialog rather
	than BonoboWindow
	(capplet_control_launch): Use bonobo_widget_set_property for simplicity
	(capplet_control_launch): Eliminate goto statement with an if...else clause
2001-07-03 20:29:56 +00:00
Bradford Hovinen
0e31da4c76 Use GnomeDialog rather than BonoboWindow
2001-07-03  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-dir.c (capplet_control_launch): Use GnomeDialog rather
	than BonoboWindow

	* archiver/Makefile.am (bonobo_moniker_archiver_LDADD): Use @...@
	rather than $(...) for pkg-config's sake
2001-07-03 19:18:51 +00:00
Bradford Hovinen
8496ca47a5 Connect destroy signal on capplet window to gtk_main_quit
2001-07-03  Bradford Hovinen  <hovinen@ximian.com>

	* main.c (main): Connect destroy signal on capplet window to
	gtk_main_quit

	* capplet-dir.c (capplet_control_launch): Return pointer to
	BonoboWindow

	* main.c (main): Check return value of capplet_control_launch

	* capplet-dir.c (capplet_control_launch): Use goto to make sure
	all data structures are freed
2001-07-03 17:18:50 +00:00
Bradford Hovinen
cd2f26923d Use bonobo_arg_... functions
2001-07-02  Bradford Hovinen  <hovinen@ximian.com>

	* capplet-dir.c (capplet_control_launch): Use bonobo_arg_... functions

	* main.c (main): Call capplet_control_launch if capplet was specified on CLI
	Use bonobo_main rather than gtk_main

	* capplet-dir.c (capplet_control_launch): Fix to use Bonobo_Property_setValue
	(capplet_activate): Support capplet_control_launch; use strlen(...) rather than hardcoding length
	(capplet_control_launch): Replace '-' characters with underscores

Added OAF info file for experimental sound properties capplet
2001-07-02 14:46:26 +00:00