[ekiga] Made the ekiga_ext_window_* code private structure managed by the C++ runtime (it contains a smart p



commit f95768fc0570033425129c61ac902f74eaae9f47
Author: Julien Puydt <jpuydt free fr>
Date:   Sun Jan 13 21:17:23 2013 +0100

    Made the ekiga_ext_window_* code private structure managed by the C++ runtime (it contains a smart pointer!)

 lib/engine/gui/gtk-frontend/ext-window.cpp |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/ext-window.cpp b/lib/engine/gui/gtk-frontend/ext-window.cpp
index d6e0139..bd2637f 100644
--- a/lib/engine/gui/gtk-frontend/ext-window.cpp
+++ b/lib/engine/gui/gtk-frontend/ext-window.cpp
@@ -162,6 +162,9 @@ finalize (GObject* gobject)
 
   clear_display_info (ew);
 
+  delete ew->priv;
+  ew->priv = NULL;
+
   G_OBJECT_CLASS (ekiga_ext_window_parent_class)->finalize (gobject);
 }
 
@@ -240,16 +243,12 @@ ekiga_ext_window_class_init (EkigaExtWindowClass *klass)
   widget_class->show = show;
   widget_class->expose_event = expose_event;
   widget_class->focus_in_event = focus_in_event;
-
-  g_type_class_add_private (klass, sizeof (EkigaExtWindowPrivate));
-
 }
 
 static void
 ekiga_ext_window_init (EkigaExtWindow *ew)
 {
-  ew->priv = G_TYPE_INSTANCE_GET_PRIVATE (ew, EKIGA_TYPE_EXT_WINDOW,
-                                          EkigaExtWindowPrivate);
+  ew->priv = new EkigaExtWindowPrivate;
 }
 
 GtkWidget *



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