aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/tcp_graph.c
diff options
context:
space:
mode:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2011-07-14 08:11:16 +0000
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2011-07-14 08:11:16 +0000
commite5ca720ad35eacd3ffbd0ed9520c8b540db9fd9e (patch)
tree161c34bc183da79b79d48d1f8800e69870d4bd48 /gtk/tcp_graph.c
parent44c8c2780e84d0c653cb8ff94f88f8e7fe433239 (diff)
Replace deprecated gdk_pixmap_unref() with g_object_unref().
Update checkAPIs. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38013 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/tcp_graph.c')
-rw-r--r--gtk/tcp_graph.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/gtk/tcp_graph.c b/gtk/tcp_graph.c
index 6f7154cd3d..55d8493714 100644
--- a/gtk/tcp_graph.c
+++ b/gtk/tcp_graph.c
@@ -1727,8 +1727,8 @@ static void graph_destroy (struct graph *g)
/* window_destroy (g->text); */
g_object_unref (g->fg_gc);
g_object_unref (g->bg_gc);
- gdk_pixmap_unref (g->pixmap[0]);
- gdk_pixmap_unref (g->pixmap[1]);
+ g_object_unref (g->pixmap[0]);
+ g_object_unref (g->pixmap[1]);
g_free (g->x_axis);
g_free (g->y_axis);
g_free ( (gpointer) (g->title) );
@@ -2015,7 +2015,7 @@ static void graph_element_lists_free (struct graph *g)
static void graph_title_pixmap_create (struct graph *g)
{
if (g->title_pixmap)
- gdk_pixmap_unref (g->title_pixmap);
+ g_object_unref (g->title_pixmap);
g->title_pixmap = gdk_pixmap_new (g->drawing_area->window,
g->x_axis->p.width, g->wp.y, -1);
@@ -2050,9 +2050,9 @@ static void graph_pixmaps_create (struct graph *g)
debug(DBS_FENTRY) puts ("graph_pixmaps_create()");
if (g->pixmap[0])
- gdk_pixmap_unref (g->pixmap[0]);
+ g_object_unref (g->pixmap[0]);
if (g->pixmap[1])
- gdk_pixmap_unref (g->pixmap[1]);
+ g_object_unref (g->pixmap[1]);
g->pixmap[0] = gdk_pixmap_new (g->drawing_area->window,
g->wp.width, g->wp.height, -1);
@@ -2172,9 +2172,9 @@ static void axis_pixmaps_create (struct axis *axis)
{
debug(DBS_FENTRY) puts ("axis_pixmaps_create()");
if (axis->pixmap[0])
- gdk_pixmap_unref (axis->pixmap[0]);
+ g_object_unref (axis->pixmap[0]);
if (axis->pixmap[1])
- gdk_pixmap_unref (axis->pixmap[1]);
+ g_object_unref (axis->pixmap[1]);
axis->pixmap[0] = gdk_pixmap_new (axis->drawing_area->window,
axis->p.width, axis->p.height, -1);
@@ -2186,8 +2186,8 @@ static void axis_pixmaps_create (struct axis *axis)
static void axis_destroy (struct axis *axis)
{
- gdk_pixmap_unref (axis->pixmap[0]);
- gdk_pixmap_unref (axis->pixmap[1]);
+ g_object_unref (axis->pixmap[0]);
+ g_object_unref (axis->pixmap[1]);
g_free ( (gpointer) (axis->label) );
}
@@ -2742,8 +2742,8 @@ static void magnify_destroy (struct graph *g)
struct graph *mg = g->magnify.g;
window_destroy (GTK_WIDGET (mg->drawing_area));
- gdk_pixmap_unref (mg->pixmap[0]);
- gdk_pixmap_unref (mg->pixmap[1]);
+ g_object_unref (mg->pixmap[0]);
+ g_object_unref (mg->pixmap[1]);
for (list=mg->elists; list; list=list->next)
g_free (list->elements);