Commit graph

62 commits

Author SHA1 Message Date
Jakub Steiner
24ac960602 fix the applet icon 2001-10-18 11:20:52 +00:00
Richard Hestilow
d42f9b3f79 Backport to GtkCList. Recreate -- something was messed up.
2001-10-13  Richard Hestilow  <hestilow@ximian.com>

	* prefs-widget.c: Backport to GtkCList.
	* checked.xpm, unchecked.xpm: Recreate -- something was messed up.
2001-10-13 05:50:38 +00:00
Richard Hestilow
e5440a5329 Change the default mode to "Select One Only" as opposed to Random From
2001-09-28  Richard Hestilow  <hestilow@ximian.com>

	* preferences.c (preferences_load): Change the default mode to
	"Select One Only" as opposed to Random From List. Fixes bug
	#60762.
2001-09-30 00:56:41 +00:00
Bradford Hovinen
3dc4919796 Initialize prefs_widget_parent_class (prefs_widget_destroy): Add more
2001-09-24  Bradford Hovinen  <hovinen@ximian.com>

	* prefs-widget.c (prefs_widget_class_init): Initialize
	prefs_widget_parent_class
	(prefs_widget_destroy): Add more paranoid checking to make sure we
	aren't derefing a NULL pointer
2001-09-25 01:57:28 +00:00
Tambet Ingo
e8eded8166 Fixed to build with new GAL.
2001-09-24  Tambet Ingo  <tambet@ximian.com>

	* prefs-widget.c (prefs_widget_init): Fixed to build with new GAL.
2001-09-24 18:24:19 +00:00
Kai Lahmann
0ddf82fefe pwr_conf_dialog had a fixed size.. 2001-08-23 19:35:18 +00:00
Bradford Hovinen
74b7c332bc Don't try to archive the data if the archive is NULL
2001-08-23  Bradford Hovinen  <hovinen@ximian.com>

	* main.c: (store_archive_data): Don't try to archive the data
	if the archive is NULL
2001-08-23 19:16:03 +00:00
Bradford Hovinen
768a3d5a46 Port to new CORBA interface
2001-08-23  Bradford Hovinen  <hovinen@ximian.com>

	* main.c: Port to new CORBA interface
2001-08-23 19:08:26 +00:00
Kwok-Koon Cheung
7c531bc29e Added missing destdir to Makefile.am and fix description in attraction.xml. 2001-08-18 20:48:25 +00:00
Richard Hestilow
5890f11b77 Fix for SM_SELECT_FROM_LIST mode.
2001-08-10  Richard Hestilow  <hestilow@ximian.com>

	* capplet/prefs-widget.c (random_timeout_cb): Fix for
	  SM_SELECT_FROM_LIST mode.
2001-08-10 18:42:41 +00:00
Richard Hestilow
0fcf91e2bc Add perms to mkdir.
2001-08-10  Richard Hestilow  <hestilow@ximian.com>

	* capplets/screensavers/magic.pl.in: Add perms to mkdir.
2001-08-10 18:28:58 +00:00
Richard Hestilow
b35c2cf932 Remove screen.png, which was commented out anyway.
2001-08-10  Richard Hestilow  <hestilow@ximian.com>

	* Makefile.am (pixmaps_DATA): Remove screen.png,
	  which was commented out anyway.

	* preferences.c (screensaver_clone): Added.
	  (copy_screensavers): Added.
	  (preferences_clone): Copy screensaver list.
	  (screensaver_destroy): Destroy new fields.
	* prefs-widget.c (prefs_widget_set_screensavers): Translate
	  strings and utf8ize ahead of time.
	  (prefs_widget_destroy): Free translated strings.
	  (model_value_at): Return pre-translated string.
	  (about_cb): Call gettext on desc, name, and title.
	* screensaver-prefs-dialog.c (screensaver_prefs_dialog_new):
	  Call gettext on label and desc.
	* capplets/screensavers/Makefile.am: Fixes for make distcheck.
	* capplets/screensavers/magic.pl.in: Fix description parsing bug,
	  and fakepreview lost bug.
2001-08-10 17:55:36 +00:00
Carlos Perelló Marín
8902bd3632 Disabled desktop.png. It doesn't exists. Removed the xml.h generation
2001-08-10  Carlos Perelló Marín <carlos@gnome-db.org>

        * Makefile.am: Disabled desktop.png. It doesn't exists.
        * screensavers/Makefile.am: Removed the xml.h generation rule.

2001-08-10  Carlos Perelló Marín <carlos@gnome-db.org>

        * POTFILES.in: Fixed the screensaver files.
        * es.po: Updated Spanish translation.
2001-08-10 13:31:10 +00:00
Richard Hestilow
1d840a3813 Install all pixmaps. (pixmaps_DATA): Add blank-screen.png.
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-08-10 03:36:17 +00:00
Jose Maria Celorio
06d16ff133 Add DISTDIR to install-data-local 2001-08-01 04:02:20 +00:00
Richard Hestilow
2d9be3eb4e Don't go into an infinite loop if there are absolutely no enabled
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 18:21:44 +00:00
Bradford Hovinen
33b3809115 1.5.2
2001-07-27  Bradford Hovinen  <hovinen@ximian.com>

	* RELEASE : 1.5.2
2001-07-27 16:02:08 +00:00
Jose Maria Celorio
baba8dddd0 Remove the desktop_IN_RULE. Althou it sounds nice cause we have a central
location to set it up, it causes problems in some configruations.
2001-07-26 01:49:13 +00:00
Richard Hestilow
bce60c194e New function show_blank_preview.
2001-07-03  Richard Hestilow  <hestilow@ximian.com>

	* preview.[ch]: New function show_blank_preview.

	* prefs-widget.c (prefs_widget_set_mode): Call show_blank_preview
	if set to disabled or blank screen.
	(selection_changed_cb): Don't show the preview if mode is set to
	disabled or blank screen.
2001-07-25 09:31:58 +00:00
Jose Maria Celorio
0ae3d29c91 1.5.0 here we go 2001-07-20 09:49:49 +00:00
Jose Maria Celorio
118317da3b make distcheck passes 2001-07-20 01:28:02 +00:00
Bradford Hovinen (Gdict maintainer)
4b40c52874 Added missing files to EXTRA_DIST, removed nonexistant files from POTFILES.in 2001-07-19 18:36:19 +00:00
Bradford Hovinen
08a5e55afc Don't free the description
2001-07-19  Bradford Hovinen  <hovinen@ximian.com>

	* prefs-widget.c (about_cb): Don't free the description
2001-07-19 15:58:19 +00:00
Bradford Hovinen
273fe29147 Use capplet->dialog for parent of prefs widget
2001-07-19  Bradford Hovinen  <hovinen@ximian.com>

	* main.c (setup_capplet_widget): Use capplet->dialog for parent of
	prefs widget

	* prefs-widget.c: Added copyright notice
2001-07-19 15:41:58 +00:00
Carlos Perelló Marín
e7c670aa05 /s/label/_label, /s/low-label/_low-label/, /s/high-label/_high-label/ &&
2001-07-18  Carlos Perelló Marín <carlos@gnome-db.org>

	* screensavers/*.xml: /s/label/_label, /s/low-label/_low-label/,
	/s/high-label/_high-label/ && removed the i18n section.
2001-07-18 09:47:30 +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
Jose Maria Celorio
35d967aed2 clean this mess. 2001-07-18 03:21:07 +00:00
Bradford Hovinen
0e87220f2f Changed Applications_DATA to Applications_in_files
2001-07-17  Bradford Hovinen  <hovinen@ximian.com>

	* Makefile.am (EXTRA_DIST): Changed Applications_DATA to
	Applications_in_files
2001-07-17 16:48:52 +00:00
Carlos Perelló Marín
068c095238 Renamed to *.directory.in to be used with xml-i18n-tools. Renamed to
2001-07-14  Carlos Perelló Marín <carlos@gnome-db.org>

        * *.directory: Renamed to *.directory.in to be used with
        xml-i18n-tools.
        * *.desktop: Renamed to *.desktop to be used with xml-i18n-tools.
        * *.glade: Modified to not generate the glade.h files.
        * *.glade.h: Removed.
        * Makefile.am: Modify to use xml-i18n-tools
        * configure.in: ditto.
        * autogen.sh: ditto, now we use the macros/autogen.sh

2001-07-14  Carlos Perelló Marín <carlos@gnome-db.org>

        * .cvsignore: ssshhhh

2001-07-14  Carlos Perelló Marín <carlos@gnome-db.org>

        * screensavers/*.xml: /s/label/_label, /s/low-label/_low-label/,
        /s/high-label/_high-label/: Changed to let xml-i18n-tools extract
        this labels.
        * extract-labels.c: Removed, now, we use xml-i18n-tools.
        * preferences.c: /s/label/_label, /s/low-label/_low-label/,
        /s/high-label/_high-label/: Changed to sync with the xml changes.
        * screensaver-prefs-dialog.c: ditto.

2001-07-16  Carlos Perelló Marín <carlos@gnome-db.org>

        * no.po: Solved some conflicts with my patch.

2001-07-14  Carlos Perelló Marín <carlos@gnome-db.org>

        * POTFILES.in: Updated to reflect the xml-i18n-tools use.
        * *.po: Added the .directory && .desktop translations.
        * update.*: Removed.
        * wa.po: Added.
        * es.po: Updated Spanish translation.
2001-07-16 17:04:18 +00:00
Richard Hestilow
70f3cc51cc Added. (prefs_widget_init): Connect to "Add" and "Remove"
2001-07-03  Richard Hestilow  <hestilow@ximian.com>

	* prefs-widget.c:
	  (add_select_cb, screensaver_add_cb, screensaver_remove_cb): Added.
	  (prefs_widget_init): Connect to "Add" and "Remove"

	* screensaver-prefs-dialog.c (get_basic_screensaver_widget): Replace
	confusing stuff with ultra-simple dialog.

	* screensaver-properties.glade[.h]: Remove "Demo" popup item, as it
	is on the settings dialogs and is not easy to manage with
	menu selection anyway. (Too much mouse movement).
2001-07-03 20:40:58 +00:00
Richard Hestilow
77d73e6a26 Added.
2001-07-03  Richard Hestilow  <hestilow@ximian.com>

	* screensaver-properties.glade[.h]: Added.

	* prefs-widget.[ch]: Complete rewrite.

	* Makefile.am: Add glade stuff.

	* main.c: Call glade_gnome_init.

	* pref-file.c: Restart xscreensaver on save.

	* screensaver-prefs-dialog.c (screensaver_prefs_dialog_new):
	Change g_strconcat to g_strdup_printf for i18n purposes.
2001-07-03 17:47:36 +00:00
Bradford Hovinen
f707e7350e Fix to use correct termination condition and g_string API
2001-06-21  Bradford Hovinen  <hovinen@ximian.com>

	* capplets/new-*/main.c (do_set_xml): Fix to use correct
	termination condition and g_string API

	* capplets/new-screensaver-properties/preferences.c (clone_cb):
	Remove debugging code
2001-06-21 14:28:48 +00:00
Bradford Hovinen
6fb797ca6b Implement. Create a copy of a preferences structure (clone_cb): Implement
2001-05-06  Bradford Hovinen  <hovinen@ximian.com>

	* preferences.c (preferences_clone): Implement. Create a copy of a
	preferences structure
	(clone_cb): Implement
	(read_prefs_from_db): Parse screensavers from a copy of the string
	so that we don't overwrite the original

	* main.c (main): Call preferences_clone instead of reloading old
	preferences
2001-05-06 17:33:27 +00:00
Bradford Hovinen
7bfddd30e4 Fix segv
2001-05-05  Bradford Hovinen  <hovinen@ximian.com>

	* prefs-widget.c (one_screensaver_cb): Fix segv

	* screensavers/*.xml: Added test attribute to monochrome setting
2001-05-05 19:16:21 +00:00
Bradford Hovinen
a7fa858b61 Handle --get-defaults (do_restore_from_defaults): Implement
2001-05-03  Bradford Hovinen  <hovinen@ximian.com>

	* capplets/*/main.c (main): Handle --get-defaults
	(do_restore_from_defaults): Implement

	* capplets/*/preferences.c (preferences_init): Load default values
2001-05-04 00:05:14 +00:00
Bradford Hovinen
fc7487ef4f Make desktop-entry an attribute rather than a child node
2001-04-27  Bradford Hovinen  <hovinen@ximian.com>

	* capplets/wm-properties/wm-list.c (wm_read_from_xml): Make
	desktop-entry an attribute rather than a child node

	* capplets/*/main.c: Do not try to load preferences from XML if
	there was not XML data
2001-04-29 16:22:27 +00:00
Bradford Hovinen
45c0705006 Fix call to location_store_xml
2001-03-12  Bradford Hovinen  <hovinen@ximian.com>

	* main.c (store_archive_data): Fix call to location_store_xml
2001-03-13 03:16:08 +00:00
Bradford Hovinen
990862633d Implement; copy from background-properties-capplet (ok_cb): Call
2001-01-25  Bradford Hovinen  <hovinen@ximian.com>

	* main.c (store_archive_data): Implement; copy from
	background-properties-capplet
	(ok_cb): Call store_archive_data
2001-01-25 18:09:00 +00:00
Bradford Hovinen
6829db0eb3 Fixed compilation warnings: removed unused variables, initialized
2000-12-16  Bradford Hovinen  <hovinen@helixcode.com>

	* all: Fixed compilation warnings: removed unused variables,
	initialized variables properly, returned default values
	* selection-dialog.c (get_known_savers): Return list_head when done
	* resources.c: Include ctype.h
2000-12-17 00:32:11 +00:00
Bradford Hovinen
fae7e29e13 Add missing _() around label strings
2000-10-28  Bradford Hovinen  <hovinen@helixcode.com>

	* screensaver-prefs-dialog.c (get_spinbutton):
	(get_check_button):
	(get_select_widget):
	(get_file_entry):
	(get_entry):
	(place_number): Add missing _() around label strings
2000-10-28 17:23:13 +00:00
Bradford Hovinen
6ac6997216 Added rorschach.xml[.h]
2000-10-14  Bradford Hovinen  <hovinen@helixcode.com>

	* screensavers/Makefile.am (Screensavers_DATA):
	(screensavers_msgs): Added rorschach.xml[.h]

	* screensaver-prefs-dialog.c (write_boolean): Return the attribute
	arg-unset if the toggle button is inactive
2000-10-14 16:05:59 +00:00
Bradford Hovinen
e5c0852368 Bumped version no to 1.3.1
2000-10-08  Bradford Hovinen  <hovinen@helixcode.com>

	* configure.in: Bumped version no to 1.3.1

	* capplets/new-mouse-properties/Makefile.am (EXTRA_DIST): Remove
	erroneous ChangeLog entry
2000-10-08 22:53:44 +00:00
Bradford Hovinen
650b11cd19 Implement (show_screensaver): Call fix_arguments to handle quoted strings
2000-10-08  Bradford Hovinen  <hovinen@helixcode.com>

	* preview.c (fix_arguments): Implement
	(show_screensaver): Call fix_arguments to handle quoted strings in
 	the command line
2000-10-08 18:56:27 +00:00
Bradford Hovinen
daea41824d Set set->enabled (write_boolean): (write_number): (write_select):
2000-10-07  Bradford Hovinen  <hovinen@helixcode.com>

	* screensaver-prefs-dialog.c (set_widgets_sensitive): Set
 	set->enabled
	(write_boolean):
	(write_number):
	(write_select):
	(write_string): Write only if the enabled flag is set
	(get_spinbutton):
	(get_check_button):
	(get_select_widget):
	(get_file_entry):
	(get_entry):
	(place_number):
	(place_hgroup):
	(populate_table): Set set->enabled
	(read_boolean):
	(read_number):
	(read_select):
	(read_string): Don't set the value if the set is an alias and not
 	enabled
	(read_number):
	(read_string): Set value to default if not supplied
	(read_command_line): Accept argument as negative number if it is a
 	-<digit>

	* screensaver-prefs-dialog.h (struct _PrefsDialogWidgetSet): Add
 	member enabled - TRUE iff the widget is enabled

	* screensaver-prefs-dialog.c (free_set_cb): Don't try to free the
 	widgets if the set is an alias
	(get_spinbutton):
	(get_check_button):
	(get_select_widget):
	(get_file_entry):
	(get_entry):
	(place_number):
	(place_hgroup):
	(populate_table): Set set->alias

	* screensaver-prefs-dialog.h (struct _PrefsDialogWidgetSet): Add
 	member alias - TRUE means don't try to free widgets

	* screensaver-prefs-dialog.c (get_entry): Have entry expand, not label

	* screensavers/flag.xml: Enable selection for text and bitmap,
	Set neg_size same-as to pos_size

	* screensaver-prefs-dialog.c (place_hgroup): Add feature to allow
	multiple widget definitions to share the same widget
2000-10-07 17:27:40 +00:00
Bradford Hovinen
b7230135aa Support files (place_entry): Allow getting a file entry or a string entry
2000-10-07  Bradford Hovinen  <hovinen@helixcode.com>

	* screensaver-prefs-dialog.c (write_command_line): Support files
	(place_entry): Allow getting a file entry or a string entry
	(populate_table): Support files
	(get_file_entry): Implement. Return a set for a GnomeFileEntry
	(read_string): Support files
	(place_screensaver_properties): Support files
2000-10-07 16:30:26 +00:00
Bradford Hovinen
5ffa1fd136 Update list of Makefiles
2000-10-06  Bradford Hovinen  <hovinen@helixcode.com>

	* configure.in (AC_OUTPUT): Update list of Makefiles

2000-09-24  Bradford Hovinen  <hovinen@helixcode.com>

	* capplets/new-screensaver-properties/resources.c
	(screensaver_get_desc_from_xrdb): Fix memory allocation bug
2000-10-07 02:33:56 +00:00
Bradford Hovinen
dd169482d6 Check for putenv and setenv and set appropriate macros in config.h
2000-08-18  Bradford Hovinen  <hovinen@helixcode.com>

	* configure.in: Check for putenv and setenv and set appropriate
	macros in config.h

2000-08-18  Bradford Hovinen  <hovinen@helixcode.com>

	* preview.c (setup_path): Use setenv only when available, try to
	use putenv otherwise
2000-08-18 19:13:07 +00:00
Stanislav Brabec
87f2fbb3e6 Fix building in separate directory. 2000-08-17 19:20:50 +00:00
Bradford Hovinen
e8f3f6efef Added missing entries stored in gnome-config rather than .xscreensaver
2000-08-16  Bradford Hovinen  <hovinen@helixcode.com>

	* preferences.c (preferences_write_xml):
	(preferences_read_xml): Added missing entries stored in
	gnome-config rather than .xscreensaver
	(screensaver_read_xml): Disable screensaver by default
	(preferences_write_xml): Cast values to ints before passing to
	g_strdup_printf
2000-08-16 23:00:31 +00:00
Bradford Hovinen
d24a6c7b67 Add support for --get and --set to cap_options (gnome_capplet_init): Add
2000-08-16  Bradford Hovinen  <hovinen@helixcode.com>

	* capplet-widget.c: Add support for --get and --set to cap_options
	(gnome_capplet_init): Add return values 3 for --get and 4 for --set

2000-08-16  Bradford Hovinen  <hovinen@helixcode.com>

	* rc-parse.c (write_screensaver_list): Don't try to write string
	if the screensaver has no command line

	* main.c (main): Register Popt table containing get and set
	options; call do_get_xml and do_set_xml when necessary
	(do_get_xml):
	(do_set_xml): Implement
2000-08-16 22:40:02 +00:00