[gtk+] Revert "print backend: Remove an unneeded variable"



commit 7d3ad4384175eec0b75e8a09e5da1a917008374c
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Sep 14 13:27:43 2015 -0400

    Revert "print backend: Remove an unneeded variable"
    
    This reverts commit 9ebebd48b00092446cdbeee03b49f149725c9868.
    
    This change broke the templates testcase, and I don't have time
    to poke at why, right now.

 gtk/gtkprintbackend.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkprintbackend.c b/gtk/gtkprintbackend.c
index 99250cc..8ec6dbc 100644
--- a/gtk/gtkprintbackend.c
+++ b/gtk/gtkprintbackend.c
@@ -68,6 +68,8 @@ enum
   PROP_STATUS
 };
 
+static GObjectClass *backend_parent_class;
+
 GQuark
 gtk_print_backend_error_quark (void)
 {
@@ -365,6 +367,8 @@ gtk_print_backend_class_init (GtkPrintBackendClass *class)
   GObjectClass *object_class;
   object_class = (GObjectClass *) class;
 
+  backend_parent_class = g_type_class_peek_parent (class);
+  
   object_class->dispose = gtk_print_backend_dispose;
   object_class->set_property = gtk_print_backend_set_property;
   object_class->get_property = gtk_print_backend_get_property;
@@ -469,7 +473,7 @@ gtk_print_backend_dispose (GObject *object)
       priv->printers = NULL;
     }
 
-  G_OBJECT_CLASS (_gtk_print_backend_module_parent_class)->dispose (object);
+  backend_parent_class->dispose (object);
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]