[anjal] Compiler warnings fixed for mail-shell.c
- From: Yan Li <yanli src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [anjal] Compiler warnings fixed for mail-shell.c
- Date: Fri, 25 Sep 2009 08:54:26 +0000 (UTC)
commit 9fc361509b631e3b852a698f8f1adecc073c3aaf
Author: Yan Li <yan i li intel com>
Date: Fri Sep 25 10:47:17 2009 +0800
Compiler warnings fixed for mail-shell.c
src/mail-shell.c | 39 ++++++++++++++++++++++++++-------------
1 files changed, 26 insertions(+), 13 deletions(-)
---
diff --git a/src/mail-shell.c b/src/mail-shell.c
index 70760f8..dce0372 100644
--- a/src/mail-shell.c
+++ b/src/mail-shell.c
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -153,8 +155,6 @@ ms_f5_pressed (MailShell *shell)
static void
ms_ctrl_q_pressed (MailShell *shell)
{
- MailShellPrivate *priv = shell->priv;
-
mail_shell_quit (shell);
}
@@ -228,7 +228,9 @@ mail_shell_class_init (MailShellClass *klass)
};
static int
-color_expose (GtkWidget *w, GdkEventExpose *event, gpointer data)
+color_expose (GtkWidget *w,
+ GdkEventExpose *event G_GNUC_UNUSED,
+ gpointer data)
{
GtkWindow *win = (GtkWindow *)data;
cairo_t *cr = gdk_cairo_create (w->window);
@@ -260,7 +262,8 @@ popup_sort (GtkButton *b, MailShell *shell)
}
static void
-new_email_btn_clicked (GtkButton *button, gpointer data)
+new_email_btn_clicked (GtkButton *button G_GNUC_UNUSED,
+ gpointer data)
{
MailShell *shell = (MailShell *) data;
MailView *view = (MailView *)shell->mail_component->mail_view;
@@ -288,7 +291,8 @@ mail_shell_create_composer_mailto (const char *uri)
return mail_view_add_page (view, MAIL_VIEW_COMPOSER, (gpointer)composer);
}
static void
-ms_check_mail (GtkButton *button, gpointer data)
+ms_check_mail (GtkButton *button G_GNUC_UNUSED,
+ gpointer data)
{
MailShell *shell = (MailShell *) data;
MailView *view = (MailView *)shell->mail_component->mail_view;
@@ -297,13 +301,15 @@ ms_check_mail (GtkButton *button, gpointer data)
}
static void
-ms_remove_settings (MailViewChild *mvc, MailShell *shell)
+ms_remove_settings (MailViewChild *mvc G_GNUC_UNUSED,
+ MailShell *shell)
{
shell->priv->settings_view = NULL;
}
static void
-settings_btn_clicked (GtkButton *button, gpointer data)
+settings_btn_clicked (GtkButton *button G_GNUC_UNUSED,
+ gpointer data)
{
MailShell *shell = (MailShell *) data;
MailView *view = (MailView *)shell->mail_component->mail_view;
@@ -348,12 +354,16 @@ mail_shell_quit (MailShell *shell)
}
static void
-mail_shell_quit_cb (GtkWidget *w, MailShell *shell)
+mail_shell_quit_cb (GtkWidget *w G_GNUC_UNUSED,
+ MailShell *shell)
{
mail_shell_quit (shell);
}
+
static void
-ms_delete_event (MailShell *shell, GdkEvent *event, gpointer data)
+ms_delete_event (MailShell *shell,
+ GdkEvent *event G_GNUC_UNUSED,
+ gpointer data G_GNUC_UNUSED)
{
mail_shell_quit (shell);
}
@@ -378,15 +388,17 @@ ms_check_new ()
return TRUE;
}
+#if HAVE_ANERLEY
static void
-ms_unlink_people (MailViewChild *mvc, MailShell *shell)
+ms_unlink_people (MailViewChild *mvc G_GNUC_UNUSED,
+ MailShell *shell)
{
shell->priv->people = NULL;
}
-#if HAVE_ANERLEY
static void
-ms_show_people (GtkButton *button, MailShell *shell)
+ms_show_people (GtkButton *button G_GNUC_UNUSED,
+ MailShell *shell)
{
if (!shell->priv->people) {
shell->priv->people = mail_view_add_page ((MailView *)shell->mail_component->mail_view, MAIL_VIEW_PEOPLE, NULL);
@@ -398,7 +410,8 @@ ms_show_people (GtkButton *button, MailShell *shell)
#endif
static void
-ms_show_post_druid (MailViewChild *mfv, MailShell *shell)
+ms_show_post_druid (MailViewChild *mfv G_GNUC_UNUSED,
+ MailShell *shell)
{
gtk_widget_show (((MailView *) shell->mail_component->mail_view)->folder_tree);
if (shell->priv->settings_view)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]