diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-01-10 23:30:24 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-01-11 00:20:32 +0800 |
commit | b1ed35f70d09601717e32eb5c762f79908b0bcf8 (patch) | |
tree | c4fa0b5f5d0dc7dd8cb1a2c3931fd25d97d08b41 /smime | |
parent | 54442be416bcdb1c3632fb9211d335f9b5cb3397 (diff) | |
download | gsoc2013-evolution-b1ed35f70d09601717e32eb5c762f79908b0bcf8.tar.gz gsoc2013-evolution-b1ed35f70d09601717e32eb5c762f79908b0bcf8.tar.zst gsoc2013-evolution-b1ed35f70d09601717e32eb5c762f79908b0bcf8.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'smime')
-rw-r--r-- | smime/gui/certificate-manager.c | 5 | ||||
-rw-r--r-- | smime/gui/certificate-viewer.c | 76 | ||||
-rw-r--r-- | smime/lib/e-asn1-object.c | 2 |
3 files changed, 47 insertions, 36 deletions
diff --git a/smime/gui/certificate-manager.c b/smime/gui/certificate-manager.c index 55f951e4f9..30bfb62291 100644 --- a/smime/gui/certificate-manager.c +++ b/smime/gui/certificate-manager.c @@ -1112,7 +1112,7 @@ e_cert_manager_config_new (EPreferencesWindow *window) GtkWidget * e_cert_manager_new_certificate_viewer (GtkWindow *parent, - ECert *cert) + ECert *cert) { GtkWidget *dialog; GList *chain, *citer; @@ -1125,7 +1125,8 @@ e_cert_manager_new_certificate_viewer (GtkWindow *parent, issuers = g_slist_append (issuers, e_cert_get_internal_cert (citer->data)); } - dialog = certificate_viewer_new ((GtkWindow *) parent, + dialog = certificate_viewer_new ( + (GtkWindow *) parent, e_cert_get_internal_cert (cert), issuers); diff --git a/smime/gui/certificate-viewer.c b/smime/gui/certificate-viewer.c index ce96e50d35..4fdd15e473 100644 --- a/smime/gui/certificate-viewer.c +++ b/smime/gui/certificate-viewer.c @@ -83,9 +83,9 @@ free_priv_struct (gpointer ptr) static void begin_section (GtkGrid *add_to, - const gchar *caption, - gint *from_row, - gint for_rows) + const gchar *caption, + gint *from_row, + gint for_rows) { GtkWidget *widget; PangoAttribute *attr; @@ -100,7 +100,8 @@ begin_section (GtkGrid *add_to, pango_attr_list_insert (bold, attr); widget = gtk_label_new (caption); - g_object_set (G_OBJECT (widget), + g_object_set ( + G_OBJECT (widget), "hexpand", TRUE, "halign", GTK_ALIGN_START, "justify", GTK_JUSTIFY_LEFT, @@ -121,8 +122,8 @@ begin_section (GtkGrid *add_to, static GtkWidget * add_info_label (GtkGrid *add_to, - const gchar *caption, - gint *at_row) + const gchar *caption, + gint *at_row) { GtkWidget *widget; @@ -131,7 +132,8 @@ add_info_label (GtkGrid *add_to, if (caption) { widget = gtk_label_new (caption); - g_object_set (G_OBJECT (widget), + g_object_set ( + G_OBJECT (widget), "hexpand", FALSE, "halign", GTK_ALIGN_START, "justify", GTK_JUSTIFY_LEFT, @@ -142,7 +144,8 @@ add_info_label (GtkGrid *add_to, } widget = gtk_label_new (""); - g_object_set (G_OBJECT (widget), + g_object_set ( + G_OBJECT (widget), "hexpand", TRUE, "halign", GTK_ALIGN_START, "justify", GTK_JUSTIFY_LEFT, @@ -159,9 +162,9 @@ add_info_label (GtkGrid *add_to, static GtkWidget * add_scrolled_window (GtkGrid *add_to, - const gchar *caption, - gint *at_row, - GtkWidget *add_widget) + const gchar *caption, + gint *at_row, + GtkWidget *add_widget) { GtkWidget *widget; PangoAttribute *attr; @@ -176,7 +179,8 @@ add_scrolled_window (GtkGrid *add_to, pango_attr_list_insert (bold, attr); widget = gtk_label_new (caption); - g_object_set (G_OBJECT (widget), + g_object_set ( + G_OBJECT (widget), "hexpand", TRUE, "halign", GTK_ALIGN_START, "justify", GTK_JUSTIFY_LEFT, @@ -190,7 +194,8 @@ add_scrolled_window (GtkGrid *add_to, (*at_row)++; widget = gtk_scrolled_window_new (NULL, NULL); - g_object_set (G_OBJECT (widget), + g_object_set ( + G_OBJECT (widget), "hexpand", TRUE, "halign", GTK_ALIGN_FILL, "vexpand", TRUE, @@ -214,9 +219,9 @@ add_scrolled_window (GtkGrid *add_to, static void set_label_text (GtkWidget *label, - const gchar *not_part_markup, - gchar *text, - guint32 flags) + const gchar *not_part_markup, + gchar *text, + guint32 flags) { if (text) { if ((flags & FLAG_MARKUP) != 0) @@ -235,8 +240,8 @@ set_label_text (GtkWidget *label, static void get_cert_times (CERTCertificate *cert, - gchar **issued_on, - gchar **expires_on) + gchar **issued_on, + gchar **expires_on) { PRTime time_issued_on; PRTime time_expires_on; @@ -363,7 +368,7 @@ populate_fields_tree (CertificateViewerPriv *priv, static void hierarchy_selection_changed_cb (GtkTreeSelection *selection, - CertificateViewerPriv *priv) + CertificateViewerPriv *priv) { GtkTreeIter iter; GtkTreeModel *model; @@ -402,7 +407,7 @@ hierarchy_selection_changed_cb (GtkTreeSelection *selection, static void fields_selection_changed_cb (GtkTreeSelection *selection, - CertificateViewerPriv *priv) + CertificateViewerPriv *priv) { GtkTreeIter iter; GtkTreeModel *model; @@ -428,7 +433,8 @@ fields_selection_changed_cb (GtkTreeSelection *selection, gtk_text_buffer_get_start_iter (textbuffer, &text_iter); - gtk_text_buffer_insert_with_tags (textbuffer, &text_iter, + gtk_text_buffer_insert_with_tags ( + textbuffer, &text_iter, value, strlen (value), priv->monospace_tag, NULL); } @@ -537,8 +543,8 @@ get_window_title (CERTCertificate *cert) GtkWidget * certificate_viewer_new (GtkWindow *parent, - const CERTCertificate *cert, - const GSList *issuers_chain_certs) + const CERTCertificate *cert, + const GSList *issuers_chain_certs) { CertificateViewerPriv *priv; GtkWidget *dialog, *notebook, *widget; @@ -563,7 +569,8 @@ certificate_viewer_new (GtkWindow *parent, title = get_window_title (priv->cert); - dialog = gtk_dialog_new_with_buttons (title, parent, + dialog = gtk_dialog_new_with_buttons ( + title, parent, GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL, GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL); @@ -579,7 +586,8 @@ certificate_viewer_new (GtkWindow *parent, /* General page */ row = 0; grid = GTK_GRID (gtk_grid_new ()); - g_object_set (G_OBJECT (grid), + g_object_set ( + G_OBJECT (grid), "hexpand", TRUE, "halign", GTK_ALIGN_FILL, "vexpand", FALSE, @@ -612,7 +620,8 @@ certificate_viewer_new (GtkWindow *parent, } widget = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); - g_object_set (G_OBJECT (widget), + g_object_set ( + G_OBJECT (widget), "hexpand", TRUE, "halign", GTK_ALIGN_FILL, "vexpand", FALSE, @@ -647,7 +656,8 @@ certificate_viewer_new (GtkWindow *parent, /* Details page */ row = 0; grid = GTK_GRID (gtk_grid_new ()); - g_object_set (G_OBJECT (grid), + g_object_set ( + G_OBJECT (grid), "hexpand", TRUE, "halign", GTK_ALIGN_FILL, "vexpand", TRUE, @@ -657,14 +667,14 @@ certificate_viewer_new (GtkWindow *parent, "column-spacing", 6, NULL); - priv->cert_hierarchy_treeview = add_scrolled_window (grid, - _("Certificate Hierarchy"), &row, gtk_tree_view_new ()); + priv->cert_hierarchy_treeview = add_scrolled_window ( + grid, _("Certificate Hierarchy"), &row, gtk_tree_view_new ()); - priv->cert_fields_treeview = add_scrolled_window (grid, - _("Certificate Fields"), &row, gtk_tree_view_new ()); + priv->cert_fields_treeview = add_scrolled_window ( + grid, _("Certificate Fields"), &row, gtk_tree_view_new ()); - priv->cert_field_value_textview = add_scrolled_window (grid, - _("Field Value"), &row, gtk_text_view_new ()); + priv->cert_field_value_textview = add_scrolled_window ( + grid, _("Field Value"), &row, gtk_text_view_new ()); widget = gtk_label_new (_("Details")); gtk_notebook_append_page (GTK_NOTEBOOK (notebook), GTK_WIDGET (grid), widget); diff --git a/smime/lib/e-asn1-object.c b/smime/lib/e-asn1-object.c index 7e5f27ca0c..90411d0395 100644 --- a/smime/lib/e-asn1-object.c +++ b/smime/lib/e-asn1-object.c @@ -770,7 +770,7 @@ create_tbs_certificate_asn1_struct (CERTCertificate *cert, static gboolean fill_asn1_from_cert (EASN1Object *asn1, - CERTCertificate *cert) + CERTCertificate *cert) { EASN1Object *sequence; SECItem temp; |