[evolution] Get rid of deprecated GtkObject in EMap widget
- From: Milan Bouchet-Valat <milanbv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Get rid of deprecated GtkObject in EMap widget
- Date: Mon, 4 Oct 2010 15:33:58 +0000 (UTC)
commit a9fc19b195dd0f2c7117dad3a00606afafe3544b
Author: Milan Bouchet-Valat <nalimilan club fr>
Date: Fri Oct 1 18:05:38 2010 +0200
Get rid of deprecated GtkObject in EMap widget
Remove GtkObject::destroy() handler. Move disconnecting
signal handlers to e_map_finalize().
https://bugzilla.gnome.org/show_bug.cgi?id=630766
widgets/misc/e-map.c | 26 ++------------------------
1 files changed, 2 insertions(+), 24 deletions(-)
---
diff --git a/widgets/misc/e-map.c b/widgets/misc/e-map.c
index 9167e85..b56efa1 100644
--- a/widgets/misc/e-map.c
+++ b/widgets/misc/e-map.c
@@ -83,7 +83,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_size_request (GtkWidget *widget, GtkRequisition *requisition);
static void e_map_size_allocate (GtkWidget *widget, GtkAllocation *allocation);
@@ -122,17 +121,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),
@@ -179,10 +174,10 @@ e_map_init (EMap *view)
gtk_widget_set_has_window (widget, 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;
@@ -196,23 +191,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);
- 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]