aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorGediminas Paulauskas <menesis@delfi.lt>2001-04-11 09:20:10 +0800
committerGediminas Paulauskas <menesis@src.gnome.org>2001-04-11 09:20:10 +0800
commit69dfa6b30b0f9e31c6b31b6c2e47a52456728548 (patch)
tree5f86df64df2342ca101a4b5a357502ad67af9f69 /calendar
parent6cf1a4d151d669147ac9915b3267f7cbbaf7ccbe (diff)
downloadgsoc2013-evolution-69dfa6b30b0f9e31c6b31b6c2e47a52456728548.tar.gz
gsoc2013-evolution-69dfa6b30b0f9e31c6b31b6c2e47a52456728548.tar.zst
gsoc2013-evolution-69dfa6b30b0f9e31c6b31b6c2e47a52456728548.zip
Display fixes, thanks to Kjartan for finding these.
2001-04-11 Gediminas Paulauskas <menesis@delfi.lt> Display fixes, thanks to Kjartan for finding these. * gui/event-editor.c: use simple (not e_utf8_) gtk_clist_append for strings which are never in utf-8. * dialogs/delete-comp.c (delete_component_dialog): convert only summary from utf-8 to gtk charset. Translated values are in correct craset already. svn path=/trunk/; revision=9219
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog10
-rw-r--r--calendar/gui/dialogs/delete-comp.c31
-rw-r--r--calendar/gui/event-editor.c6
3 files changed, 26 insertions, 21 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 70195341ef..afea681130 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,13 @@
+2001-04-11 Gediminas Paulauskas <menesis@delfi.lt>
+
+ Display fixes, thanks to Kjartan for finding these.
+
+ * gui/event-editor.c: use simple (not e_utf8_) gtk_clist_append for
+ strings which are never in utf-8.
+ * dialogs/delete-comp.c (delete_component_dialog): convert only
+ summary from utf-8 to gtk charset. Translated values are in correct
+ craset already.
+
2001-04-04 Kjartan Maraas <kmaraas@gnome.org>
* gui/calendar-commands.c: Fix headers.
diff --git a/calendar/gui/dialogs/delete-comp.c b/calendar/gui/dialogs/delete-comp.c
index bd70f6b261..f24c3493fb 100644
--- a/calendar/gui/dialogs/delete-comp.c
+++ b/calendar/gui/dialogs/delete-comp.c
@@ -62,29 +62,31 @@ delete_component_dialog (CalComponent *comp, GtkWidget *widget)
vtype = cal_component_get_vtype (comp);
cal_component_get_summary (comp, &summary);
+ tmp = e_utf8_to_gtk_string (widget, summary.value);
+
switch (vtype) {
case CAL_COMPONENT_EVENT:
- if (summary.value)
+ if (tmp)
str = g_strdup_printf (_("Are you sure you want to delete the appointment "
- "`%s'?"), summary.value);
+ "`%s'?"), tmp);
else
str = g_strdup (_("Are you sure you want to delete this "
"untitled appointment?"));
break;
case CAL_COMPONENT_TODO:
- if (summary.value)
+ if (tmp)
str = g_strdup_printf (_("Are you sure you want to delete the task "
- "`%s'?"), summary.value);
+ "`%s'?"), tmp);
else
str = g_strdup (_("Are you sure you want to delete this "
"untitled task?"));
break;
case CAL_COMPONENT_JOURNAL:
- if (summary.value)
+ if (tmp)
str = g_strdup_printf (_("Are you sure you want to delete the journal entry "
- "`%s'?"), summary.value);
+ "`%s'?"), tmp);
else
str = g_strdup (_("Are you sure want to delete this "
"untitled journal entry?"));
@@ -95,19 +97,12 @@ delete_component_dialog (CalComponent *comp, GtkWidget *widget)
return FALSE;
}
- tmp = e_utf8_to_gtk_string (widget, str);
+ dialog = gnome_question_dialog_modal (str, NULL, NULL);
+ g_free (tmp);
g_free (str);
- if (tmp) {
- dialog = gnome_question_dialog_modal (tmp, NULL, NULL);
- g_free (tmp);
-
- if (gnome_dialog_run (GNOME_DIALOG (dialog)) == GNOME_YES)
- return TRUE;
- else
- return FALSE;
- } else {
- g_message ("delete_component_dialog(): Could not convert the string from UTF8");
+ if (gnome_dialog_run (GNOME_DIALOG (dialog)) == GNOME_YES)
+ return TRUE;
+ else
return FALSE;
- }
}
diff --git a/calendar/gui/event-editor.c b/calendar/gui/event-editor.c
index 314835c2c5..352858acb8 100644
--- a/calendar/gui/event-editor.c
+++ b/calendar/gui/event-editor.c
@@ -3022,7 +3022,7 @@ append_reminder (EventEditor *ee, CalComponentAlarm *alarm, ReminderStatus statu
clist = GTK_CLIST (priv->reminder_list);
c[0] = get_alarm_string (alarm);
- i = e_utf8_gtk_clist_append (clist, c);
+ i = gtk_clist_append (clist, c);
rdata = g_new (ReminderData, 1);
rdata->status = status;
@@ -3144,7 +3144,7 @@ append_exception (EventEditor *ee, time_t t)
gtk_signal_handler_block_by_data (GTK_OBJECT (clist), ee);
c[0] = get_exception_string (t);
- i = e_utf8_gtk_clist_append (clist, c);
+ i = gtk_clist_append (clist, c);
gtk_clist_set_row_data (clist, i, tt);
@@ -3195,7 +3195,7 @@ recurrence_exception_modify_cb (GtkWidget *widget, EventEditor *ee)
t = gtk_clist_get_row_data (clist, sel);
*t = e_date_edit_get_time (E_DATE_EDIT (priv->recurrence_exception_date));
- e_utf8_gtk_clist_set_text (clist, sel, 0, get_exception_string (*t));
+ gtk_clist_set_text (clist, sel, 0, get_exception_string (*t));
preview_recur (ee);
}
td>4-2/+2 * Update to KDE 3.2.0lofi2004-02-059-479/+223 * Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-043-0/+3 * Add USE_GETTEXT and bump PORTREVISION.marcus2004-02-043-6/+6 * Now gettext 0.12.1 is gettext-old.trevor2004-01-243-3/+3 * [REPOCOPY WAITING] editors/ooodict-hu_HU port can moved to hungarian categoryedwin2004-01-162-1/+4 * Slave ports do not need to include the master category in CATEGORIES.linimon2003-11-151-1/+0 * OpenOffice -> OpenOffice.orgmaho2003-11-091-1/+1 * rename openoffice* to openoffice-1.0* accodingly (repo copy).maho2003-11-081-1/+1 * Translation update: fix checksum.will2003-09-222-2/+2 * Upgrade to Qt 3.2.1 / KDE 3.1.4. See x11/kde3/Makefile rev 1.64 for details.will2003-09-182-2/+2 * Update KDE to the latest official release, KDE 3.1.3lofi2003-07-294-2/+6 * Maintaner update of hungarian/ispell to version 0.99.3leeym2003-07-246-77/+224 * Update to KDE 3.1.2lioux2003-05-204-8/+8 * New port: localized messages and documentation for kofficelioux2003-05-205-0/+86 * Repo-move KDE I18N hebrew, hungarian, & vietnamese messages to theirwill2003-04-147-12/+5 * Clear moonlight beckons.ade2003-03-074-2/+2 * Remove pkg-comment from remaining master/slave port sets.ade2003-03-072-1/+1 * De-pkg-comment.knu2003-02-2110-5/+5 * Upgrade kde-i18n to 3.1. Note that the following modules did not get awill2003-01-294-258/+712 * New port: jdictionary-eng-hun-expr 1.4 - English-Hungarian expressionedwin2003-01-036-0/+43 * New port: jdictionary-eng-hun 1.4 - Hungarian-English dictionaryedwin2003-01-036-0/+41 * MAINTAINER UPDATE: hungarian ispell version 0.92edwin2003-01-034-81/+66 * New port: hu-zipcodes - Hungarian post codes (version 2002.06.22)edwin2003-01-036-0/+36 * New port: hu-phone - Hungarian phone codes (version 20020622)edwin2003-01-036-0/+36 * Add hungarian/ispell, the Hungarian dictionary for ispell.knu2002-11-198-1/+126 * Set the default value of PKGNAMEPREFIX to "hu-".knu2002-11-181-0/+4 * Add several new real categories.knu2002-11-181-0/+5 * Add several new real categories.knu2002-11-181-0/+1 * 1. Removed comments from pkg-plist files per will's request.alane2002-10-114-6/+2 * Update to 3.0.3. Not much changed here: [1] i18n PKGNAMEs converted towill2002-08-254-8/+6 * Add OpenOffice.org spelling dictionary ports. They are based on MySpell,mbr2002-08-122-0/+19 * 1. Changed the lib depends on gettext to a build depends. This will meanalane2002-08-032-4/+4 * Bump PORTREVISION. KDE is fragile enough in its dependencies; we don'talane2002-08-022-0/+2 * Chase shlib rev of devel/gettextade2002-08-022-2/+2 * Fix MASTER_SITE_SUBDIR.will2002-07-102-2/+2 * Update to 3.0.2 -- full log available in ports/x11/kde3/Makefile,v 1.51.will2002-07-056-154/+10 * Upgrade to KDE 3.0.1. The delay in this upgrade is mainly due to thewill2002-06-166-30/+228 * Please welcome Qt3/KDE3 to our ports tree. This includes work since thewill2002-04-2214-256/+1756 * gettext upgrade uber-patch (stage 3)ade2002-04-132-2/+4 * Stage 1 of gettext update.ade2002-03-162-2/+2 * Add WWW.demon2001-12-282-0/+4 * Update to 2.2.2.demon2001-12-136-18/+32 * Upgrade to 2.2.1.demon2001-10-2712-52/+46