diff options
author | Chris Toshok <toshok@ximian.com> | 2003-12-05 10:10:09 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2003-12-05 10:10:09 +0800 |
commit | 212cc70aecd40d9578a6e88196122ff91ad2e6e8 (patch) | |
tree | 4c6368524a07481de4d329250d120297f74fbaf5 /smime/gui | |
parent | c65fbd94c0daff4ed02df7447e8eeaddd9cff9c0 (diff) | |
download | gsoc2013-evolution-212cc70aecd40d9578a6e88196122ff91ad2e6e8.tar.gz gsoc2013-evolution-212cc70aecd40d9578a6e88196122ff91ad2e6e8.tar.zst gsoc2013-evolution-212cc70aecd40d9578a6e88196122ff91ad2e6e8.zip |
set the window title based on e_cert_get_window_title.
2003-12-04 Chris Toshok <toshok@ximian.com>
* gui/certificate-viewer.c (certificate_viewer_show): set the
window title based on e_cert_get_window_title.
* lib/e-cert.c (e_cert_get_window_title): new function, for use
with the certificate viewer.
(create_asn1_struct): call e_cert_get_window_title.
svn path=/trunk/; revision=23643
Diffstat (limited to 'smime/gui')
-rw-r--r-- | smime/gui/certificate-viewer.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/smime/gui/certificate-viewer.c b/smime/gui/certificate-viewer.c index e897597319..792ccab01a 100644 --- a/smime/gui/certificate-viewer.c +++ b/smime/gui/certificate-viewer.c @@ -271,12 +271,20 @@ GtkWidget* certificate_viewer_show (ECert *cert) { CertificateViewerData *cvm_data; + char *title; cvm_data = g_new0 (CertificateViewerData, 1); cvm_data->gui = glade_xml_new (EVOLUTION_GLADEDIR "/" GLADE_FILE_NAME, NULL, NULL); cvm_data->dialog = glade_xml_get_widget (cvm_data->gui, "certificate-viewer-dialog"); + title = g_strdup_printf (_("Certificate Viewer: %s"), e_cert_get_window_title (cert)); + + gtk_window_set_title (GTK_WINDOW (cvm_data->dialog), + title); + + g_free (title); + fill_in_general (cvm_data, cert); fill_in_details (cvm_data, cert); |