[evolution/gnome-3-18] EMailPrinter - Clean the unused variables
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-18] EMailPrinter - Clean the unused variables
- Date: Fri, 11 Dec 2015 10:51:29 +0000 (UTC)
commit 848abbd48ffbe894bba2b3a42f930361e0f26146
Author: Tomas Popela <tpopela redhat com>
Date: Wed Dec 9 16:01:58 2015 +0100
EMailPrinter - Clean the unused variables
mail/e-mail-printer.c | 31 ++-----------------------------
1 files changed, 2 insertions(+), 29 deletions(-)
---
diff --git a/mail/e-mail-printer.c b/mail/e-mail-printer.c
index 56b8575..2208ad6 100644
--- a/mail/e-mail-printer.c
+++ b/mail/e-mail-printer.c
@@ -40,16 +40,6 @@
(G_TYPE_INSTANCE_GET_PRIVATE \
((obj), E_TYPE_MAIL_PRINTER, EMailPrinterPrivate))
-enum {
- BUTTON_SELECT_ALL,
- BUTTON_SELECT_NONE,
- BUTTON_TOP,
- BUTTON_UP,
- BUTTON_DOWN,
- BUTTON_BOTTOM,
- BUTTONS_COUNT
-};
-
typedef struct _AsyncContext AsyncContext;
struct _EMailPrinterPrivate {
@@ -59,10 +49,7 @@ struct _EMailPrinterPrivate {
gchar *export_filename;
- WebKitWebView *webview; /* WebView to print from */
- gchar *uri;
- GtkWidget *buttons[BUTTONS_COUNT];
- GtkWidget *treeview;
+ WebKitWebView *web_view; /* WebView to print from */
GtkPrintOperation *operation;
GtkPrintOperationAction print_action;
@@ -459,7 +446,7 @@ mail_printer_dispose (GObject *object)
g_clear_object (&priv->formatter);
g_clear_object (&priv->part_list);
g_clear_object (&priv->remote_content);
- g_clear_object (&priv->webview);
+ g_clear_object (&priv->web_view);
g_clear_object (&priv->operation);
/* Chain up to parent's dispose() method. */
@@ -467,19 +454,6 @@ mail_printer_dispose (GObject *object)
}
static void
-mail_printer_finalize (GObject *object)
-{
- EMailPrinterPrivate *priv;
-
- priv = E_MAIL_PRINTER_GET_PRIVATE (object);
-
- g_free (priv->uri);
-
- /* Chain up to parent's finalize() method. */
- G_OBJECT_CLASS (e_mail_printer_parent_class)->finalize (object);
-}
-
-static void
e_mail_printer_class_init (EMailPrinterClass *class)
{
GObjectClass *object_class;
@@ -490,7 +464,6 @@ e_mail_printer_class_init (EMailPrinterClass *class)
object_class->set_property = mail_printer_set_property;
object_class->get_property = mail_printer_get_property;
object_class->dispose = mail_printer_dispose;
- object_class->finalize = mail_printer_finalize;
g_object_class_install_property (
object_class,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]