[gnome-system-tools: 22/23] e-map: Get rid of deprecated GtkObject
- From: Milan Bouchet-Valat <milanbv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-tools: 22/23] e-map: Get rid of deprecated GtkObject
- Date: Fri, 8 Oct 2010 13:10:52 +0000 (UTC)
commit 86050d36290b448589757646881a5c2b4be8fe03
Author: Milan Bouchet-Valat <nalimilan club fr>
Date: Tue Oct 5 22:35:59 2010 +0200
e-map: Get rid of deprecated GtkObject
Remove GtkObject::destroy() handler. Move disconnecting
signal handlers and removing tweeners to e_map_finalize().
src/time/e-map/e-map.c | 27 ++-------------------------
1 files changed, 2 insertions(+), 25 deletions(-)
---
diff --git a/src/time/e-map/e-map.c b/src/time/e-map/e-map.c
index 07c2427..8996f0c 100644
--- a/src/time/e-map/e-map.c
+++ b/src/time/e-map/e-map.c
@@ -101,7 +101,6 @@ struct _EMapPrivate {
/* Internal prototypes */
static void e_map_finalize (GObject *object);
-static void e_map_destroy (GtkObject *object);
static void e_map_realize (GtkWidget *widget);
static void e_map_unrealize (GtkWidget *widget);
static void e_map_size_request (GtkWidget *widget, GtkRequisition *requisition);
@@ -257,17 +256,13 @@ static void
e_map_class_init (EMapClass *class)
{
GObjectClass *gobject_class;
- GtkObjectClass *object_class;
GtkWidgetClass *widget_class;
gobject_class = (GObjectClass *) class;
- object_class = (GtkObjectClass *) class;
widget_class = (GtkWidgetClass *) class;
gobject_class->finalize = e_map_finalize;
- object_class->destroy = e_map_destroy;
-
class->set_scroll_adjustments = e_map_set_scroll_adjustments;
widget_class->set_scroll_adjustments_signal = g_signal_new ("set_scroll_adjustments",
G_OBJECT_CLASS_TYPE (gobject_class),
@@ -312,10 +307,10 @@ e_map_init (EMap *view)
gtk_widget_set_has_window (GTK_WIDGET (view), TRUE);
}
-/* Destroy handler for the map view */
+/* Finalize handler for the map view */
static void
-e_map_destroy (GtkObject *object)
+e_map_finalize (GObject *object)
{
EMap *view;
EMapPrivate *priv;
@@ -333,24 +328,6 @@ e_map_destroy (GtkObject *object)
g_signal_handlers_disconnect_by_func (priv->hadj, adjustment_changed_cb, view);
g_signal_handlers_disconnect_by_func (priv->vadj, adjustment_changed_cb, view);
- if (GTK_OBJECT_CLASS (e_map_parent_class)->destroy)
- (*GTK_OBJECT_CLASS (e_map_parent_class)->destroy) (object);
-}
-
-/* Finalize handler for the map view */
-
-static void
-e_map_finalize (GObject *object)
-{
- EMap *view;
- EMapPrivate *priv;
-
- g_return_if_fail (object != NULL);
- g_return_if_fail (E_IS_MAP (object));
-
- view = E_MAP (object);
- priv = view->priv;
-
g_object_unref ((priv->hadj));
priv->hadj = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]