diff options
author | JP Rosevear <jpr@helixcode.com> | 2000-12-23 11:26:30 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2000-12-23 11:26:30 +0800 |
commit | bf39da80e51a03ff8f6eb712d18a97d98d67e116 (patch) | |
tree | a74d487f118a10c3b1a3de2c8446ec78363cfa56 /calendar/gui/prop.c | |
parent | 9b02c881ef67ec81d137f6478d783e2b1f4efbf1 (diff) | |
download | gsoc2013-evolution-bf39da80e51a03ff8f6eb712d18a97d98d67e116.tar gsoc2013-evolution-bf39da80e51a03ff8f6eb712d18a97d98d67e116.tar.gz gsoc2013-evolution-bf39da80e51a03ff8f6eb712d18a97d98d67e116.tar.bz2 gsoc2013-evolution-bf39da80e51a03ff8f6eb712d18a97d98d67e116.tar.lz gsoc2013-evolution-bf39da80e51a03ff8f6eb712d18a97d98d67e116.tar.xz gsoc2013-evolution-bf39da80e51a03ff8f6eb712d18a97d98d67e116.tar.zst gsoc2013-evolution-bf39da80e51a03ff8f6eb712d18a97d98d67e116.zip |
New function to keep the ecal marked properly (create_ecal): move more
2000-12-22 JP Rosevear <jpr@helixcode.com>
* gui/goto.c (ecal_date_range_changed): New function to keep the
ecal marked properly
(create_ecal): move more creation code here, update marks
(goto_dialog_init_widgets): listen for date_range_changed signal
in the ecal
* gui/calendar-commands.c (init_calendar): Remove ancient gnomecal
cruft
* gui/mark.[hc], gui/prop.c: Remove ancient gnomecal code that is
no longer needed, last bit of bug 904
svn path=/trunk/; revision=7133
Diffstat (limited to 'calendar/gui/prop.c')
-rw-r--r-- | calendar/gui/prop.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/calendar/gui/prop.c b/calendar/gui/prop.c deleted file mode 100644 index 41ee5edb39..0000000000 --- a/calendar/gui/prop.c +++ /dev/null @@ -1,46 +0,0 @@ -/* Calendar properties dialog box - * - * Copyright (C) 1998 the Free Software Foundation - * - * Authors: Miguel de Icaza <miguel@kernel.org> - * Federico Mena <federico@nuclecu.unam.mx> - */ -#include <config.h> -#ifdef HAVE_LANGINGO_H -#include <langinfo.h> -#else -#include <locale.h> -#endif -#include <gnome.h> -#include "calendar-commands.h" - - -char * -build_color_spec (int r, int g, int b) -{ - static char spec[100]; - - sprintf (spec, "#%04x%04x%04x", r, g, b); - return spec; -} - -void -parse_color_spec (char *spec, int *r, int *g, int *b) -{ - g_return_if_fail (spec != NULL); - g_return_if_fail (r != NULL); - g_return_if_fail (r != NULL); - g_return_if_fail (r != NULL); - - if (sscanf (spec, "#%04x%04x%04x", r, g, b) != 3) { - g_warning ("Invalid color specification %s, returning black", spec); - - *r = *g = *b = 0; - } -} - -char * -color_spec_from_prop (ColorProp propnum) -{ - return build_color_spec (color_props[propnum].r, color_props[propnum].g, color_props[propnum].b); -} |