diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-11-12 03:21:17 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-11-12 03:21:17 +0800 |
commit | 18fc8bd2e813f09e548185bb153fa980f717cfc9 (patch) | |
tree | 22da4958a461bb673f9945ae61860e4e89a94f1c /widgets/misc/e-canvas.c | |
parent | ad1842ed0fa359b7fd8dd734e0e3c34cbb72e289 (diff) | |
download | gsoc2013-evolution-18fc8bd2e813f09e548185bb153fa980f717cfc9.tar.gz gsoc2013-evolution-18fc8bd2e813f09e548185bb153fa980f717cfc9.tar.zst gsoc2013-evolution-18fc8bd2e813f09e548185bb153fa980f717cfc9.zip |
Replace gtk_object_(un)?ref() with g_object_(un)?ref(). Likewise.
* gal/widgets/color-palette.c: Replace gtk_object_(un)?ref() with
g_object_(un)?ref().
* gal/widgets/e-canvas-utils.c: Likewise.
* gal/widgets/e-canvas.c: Likewise.
* gal/widgets/e-categories-master-list-combo.c: Likewise.
* gal/widgets/e-categories-master-list-dialog-model.c: Likewise.
* gal/widgets/e-categories-master-list-dialog.c: Likewise.
* gal/widgets/e-categories-master-list-option-menu.c: Likewise.
* gal/widgets/e-categories.c: Likewise.
* gal/widgets/e-gui-utils.c: Likewise.
* gal/widgets/e-popup-menu.c: Likewise.
* gal/widgets/e-reflow-sorted.c: Likewise.
* gal/widgets/e-reflow.c: Likewise.
* gal/widgets/e-selection-model.c: Likewise.
* gal/widgets/gtk-combo-box.c: Likewise.
* gal/widgets/widget-pixmap-combo.c: Likewise.
svn path=/trunk/; revision=18705
Diffstat (limited to 'widgets/misc/e-canvas.c')
-rw-r--r-- | widgets/misc/e-canvas.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/widgets/misc/e-canvas.c b/widgets/misc/e-canvas.c index 473e50e4d1..3a88a81c41 100644 --- a/widgets/misc/e-canvas.c +++ b/widgets/misc/e-canvas.c @@ -152,7 +152,7 @@ e_canvas_destroy (GtkObject *object) canvas->visibility_notify_id); canvas->visibility_notify_id = 0; - gtk_object_unref(GTK_OBJECT(canvas->toplevel)); + g_object_unref (canvas->toplevel); canvas->toplevel = NULL; } @@ -271,7 +271,7 @@ emit_event (GnomeCanvas *canvas, GdkEvent *event) finished = FALSE; while (item && !finished) { - gtk_object_ref (GTK_OBJECT (item)); + g_object_ref (item); gtk_signal_emit_by_name (GTK_OBJECT (item), "event", &ev, @@ -286,7 +286,7 @@ emit_event (GnomeCanvas *canvas, GdkEvent *event) #endif parent = item->parent; - gtk_object_unref (GTK_OBJECT (item)); + g_object_unref (item); item = parent; } @@ -942,7 +942,7 @@ e_canvas_item_set_cursor (GnomeCanvasItem *item, gpointer id) func(info->item, flags, info->id); g_message ("ECANVAS: free info (2): item %p, id %p", info->item, info->id); - gtk_object_unref (GTK_OBJECT (info->item)); + g_object_unref (info->item); g_free(info); } g_list_free(canvas->selection); @@ -953,7 +953,7 @@ e_canvas_item_set_cursor (GnomeCanvasItem *item, gpointer id) info = g_new(ECanvasSelectionInfo, 1); info->item = item; - gtk_object_ref (GTK_OBJECT (info->item)); + g_object_ref (info->item); info->id = id; g_message ("ECANVAS: new info item %p, id %p", item, id); @@ -1018,7 +1018,7 @@ e_canvas_item_add_selection (GnomeCanvasItem *item, gpointer id) info = g_new(ECanvasSelectionInfo, 1); info->item = item; - gtk_object_ref (GTK_OBJECT (info->item)); + g_object_ref (info->item); info->id = id; g_message ("ECANVAS: new info (2): item %p, id %p", item, id); @@ -1065,7 +1065,7 @@ e_canvas_item_remove_selection (GnomeCanvasItem *item, gpointer id) g_message ("ECANVAS: removing info: item %p, info %p", info->item, info->id); - gtk_object_unref (GTK_OBJECT (info->item)); + g_object_unref (info->item); g_free(info); g_list_free_1(list); break; @@ -1085,7 +1085,7 @@ void e_canvas_popup_tooltip (ECanvas *canvas, GtkWidget *widget, int x, int y) canvas->toplevel = gtk_widget_get_toplevel (GTK_WIDGET(canvas)); if (canvas->toplevel) { gtk_widget_add_events(canvas->toplevel, GDK_VISIBILITY_NOTIFY_MASK); - gtk_object_ref(GTK_OBJECT(canvas->toplevel)); + g_object_ref (canvas->toplevel); canvas->visibility_notify_id = gtk_signal_connect (GTK_OBJECT (canvas->toplevel), "visibility_notify_event", GTK_SIGNAL_FUNC (e_canvas_visibility), canvas); |