[gtk+/refactor: 79/106] gtkprintbackend: Use private pointer instead GET_PRIV() macro
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/refactor: 79/106] gtkprintbackend: Use private pointer instead GET_PRIV() macro
- Date: Tue, 13 Jul 2010 17:48:41 +0000 (UTC)
commit 168fbac7f68dcb5e82fc7ce086f8696a92f69f26
Author: Javier Jardón <jjardon gnome org>
Date: Wed Jul 7 03:51:19 2010 +0200
gtkprintbackend: Use private pointer instead GET_PRIV() macro
gtk/gtkprintbackend.c | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkprintbackend.c b/gtk/gtkprintbackend.c
index f12f237..79a829a 100644
--- a/gtk/gtkprintbackend.c
+++ b/gtk/gtkprintbackend.c
@@ -29,8 +29,6 @@
#include "gtkprivate.h"
#include "gtkprintbackend.h"
-#define GTK_PRINT_BACKEND_GET_PRIVATE(o) \
- (G_TYPE_INSTANCE_GET_PRIVATE ((o), GTK_TYPE_PRINT_BACKEND, GtkPrintBackendPrivate))
static void gtk_print_backend_dispose (GObject *object);
static void gtk_print_backend_set_property (GObject *object,
@@ -197,9 +195,7 @@ gtk_print_backend_set_property (GObject *object,
GParamSpec *pspec)
{
GtkPrintBackend *backend = GTK_PRINT_BACKEND (object);
- GtkPrintBackendPrivate *priv;
-
- priv = backend->priv = GTK_PRINT_BACKEND_GET_PRIVATE (backend);
+ GtkPrintBackendPrivate *priv = backend->priv;
switch (prop_id)
{
@@ -219,9 +215,7 @@ gtk_print_backend_get_property (GObject *object,
GParamSpec *pspec)
{
GtkPrintBackend *backend = GTK_PRINT_BACKEND (object);
- GtkPrintBackendPrivate *priv;
-
- priv = backend->priv = GTK_PRINT_BACKEND_GET_PRIVATE (backend);
+ GtkPrintBackendPrivate *priv = backend->priv;
switch (prop_id)
{
@@ -454,7 +448,9 @@ gtk_print_backend_init (GtkPrintBackend *backend)
{
GtkPrintBackendPrivate *priv;
- priv = backend->priv = GTK_PRINT_BACKEND_GET_PRIVATE (backend);
+ priv = backend->priv = G_TYPE_INSTANCE_GET_PRIVATE (backend,
+ GTK_TYPE_PRINT_BACKEND,
+ GtkPrintBackendPrivate);
priv->printers = g_hash_table_new_full (g_str_hash, g_str_equal,
(GDestroyNotify) g_free,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]