aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail/e-mail-shell-content.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-07-26 12:30:38 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-07-26 13:16:42 +0800
commit81e5428a59194dd38cf2a07b2d3f9b4b6f81f6ef (patch)
tree0211046a4e44ba2a0e82b1c1ce8f9a903552f979 /modules/mail/e-mail-shell-content.c
parent13cf1d104bbacffaf09393678c12a7efadd53139 (diff)
downloadgsoc2013-evolution-81e5428a59194dd38cf2a07b2d3f9b4b6f81f6ef.tar.gz
gsoc2013-evolution-81e5428a59194dd38cf2a07b2d3f9b4b6f81f6ef.tar.zst
gsoc2013-evolution-81e5428a59194dd38cf2a07b2d3f9b4b6f81f6ef.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'modules/mail/e-mail-shell-content.c')
-rw-r--r--modules/mail/e-mail-shell-content.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/modules/mail/e-mail-shell-content.c b/modules/mail/e-mail-shell-content.c
index 9c73c74c8e..6e5168c8a4 100644
--- a/modules/mail/e-mail-shell-content.c
+++ b/modules/mail/e-mail-shell-content.c
@@ -51,7 +51,7 @@
((obj), E_TYPE_MAIL_SHELL_CONTENT, EMailShellContentPrivate))
struct _EMailShellContentPrivate {
- int temp;
+ gint temp;
};
enum {
@@ -121,7 +121,7 @@ mail_shell_content_constructed (GObject *object)
/* Build content widgets. */
container = GTK_WIDGET (object);
-
+
if (e_shell_get_express_mode(e_shell_get_default ())) {
widget = e_mail_notebook_view_new (E_SHELL_CONTENT(object));
g_signal_connect (widget, "view-changed", G_CALLBACK(msc_view_changed), object);
@@ -155,10 +155,10 @@ mail_shell_content_focus_search_results (EShellContent *shell_content)
gtk_widget_grab_focus (e_mail_reader_get_message_list(E_MAIL_READER (E_MAIL_SHELL_CONTENT(shell_content)->view)));
}
-static void
+static guint
mail_shell_content_open_selected_mail (EMailReader *reader)
{
- e_mail_reader_open_selected_mail (E_MAIL_READER(E_MAIL_SHELL_CONTENT(reader)->view));
+ return e_mail_reader_open_selected_mail (E_MAIL_READER(E_MAIL_SHELL_CONTENT(reader)->view));
}
static GtkActionGroup *
@@ -172,7 +172,7 @@ mail_shell_content_get_action_group (EMailReader *reader)
shell_view = e_shell_content_get_shell_view (shell_content);
shell_window = e_shell_view_get_shell_window (shell_view);
- return E_SHELL_WINDOW_ACTION_GROUP_MAIL (shell_window);
+ return E_SHELL_WINDOW_ACTION_GROUP_MAIL (shell_window);
}
static EMFormatHTML *
@@ -216,7 +216,7 @@ mail_shell_content_set_folder (EMailReader *reader,
CamelFolder *folder,
const gchar *folder_uri)
{
- return e_mail_reader_set_folder (E_MAIL_READER(E_MAIL_SHELL_CONTENT(reader)->view),
+ return e_mail_reader_set_folder (E_MAIL_READER(E_MAIL_SHELL_CONTENT(reader)->view),
folder,
folder_uri);
}
@@ -320,7 +320,6 @@ mail_shell_content_class_init (EMailShellContentClass *class)
object_class->set_property = mail_shell_content_set_property;
object_class->get_property = mail_shell_content_get_property;
-
shell_content_class = E_SHELL_CONTENT_CLASS (class);
shell_content_class->check_state = mail_shell_content_check_state;
shell_content_class->focus_search_results = mail_shell_content_focus_search_results;
@@ -351,7 +350,7 @@ mail_shell_content_class_init (EMailShellContentClass *class)
G_PARAM_READWRITE));
g_object_class_override_property (
- object_class, PROP_ORIENTATION, "orientation");
+ object_class, PROP_ORIENTATION, "orientation");
}
static void
@@ -411,19 +410,19 @@ e_mail_shell_content_register_type (GTypeModule *type_module)
(GInterfaceFinalizeFunc) NULL,
NULL /* interface_data */
};
-
+
mail_shell_content_type = g_type_module_register_type (
type_module, E_TYPE_SHELL_CONTENT,
"EMailShellContent", &type_info, 0);
g_type_module_add_interface (
type_module, mail_shell_content_type,
- E_TYPE_MAIL_READER, &reader_info);
+ E_TYPE_MAIL_READER, &reader_info);
g_type_module_add_interface (
type_module, mail_shell_content_type,
GTK_TYPE_ORIENTABLE, &orientable_info);
-
+
}
GtkWidget *