convert from svn repository: remove tags directory
[lttv.git] / trunk / lttng-xenomai / LinuxTraceToolkitViewer-0.8.61-xenoltt / lttv / modules / gui / xenoltt / lttv_plugin_xfv.c
1 /* This file is part of the Linux Trace Toolkit viewer
2 * Copyright (C) 2006 Mathieu Desnoyers
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License Version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
16 * MA 02111-1307, USA.
17 */
18
19
20 #include "lttv_plugin_xfv.h"
21 #include <lttvwindow/lttvwindow.h>
22 #include "xenoltt_drawing.h"
23
24 /*
25 * forward definitions
26 */
27
28 /*
29 * Implementation
30 */
31
32 static void xfv_update_filter(LttvPlugin *parent, LttvFilter *filter)
33 {
34 LttvPluginXFV *self = LTTV_PLUGIN_XFV(parent);
35 g_message("In XFV update filter.");
36 lttv_filter_destroy(self->xfd->filter);
37 self->xfd->filter = filter;
38 redraw_notify(self->xfd, NULL);
39 }
40
41
42 static void
43 lttv_plugin_xfv_class_init (LttvPluginXFVClass *klass)
44 {
45 LttvPluginClass *parent_klass;
46 parent_klass = &klass->parent;
47 parent_klass->update_filter = xfv_update_filter;
48 g_type_class_add_private (klass, sizeof (XenoLTTData));
49 }
50
51
52 static void
53 lttv_plugin_xfv_init (GTypeInstance *instance, gpointer g_class)
54 {
55 LttvPluginXFV *self = LTTV_PLUGIN_XFV (instance);
56 self->xfd = G_TYPE_INSTANCE_GET_PRIVATE (self,
57 LTTV_TYPE_PLUGIN_XFV, XenoLTTData);
58 }
59
60
61 GType
62 lttv_plugin_xfv_get_type (void)
63 {
64 static GType type = 0;
65 if (type == 0) {
66 static const GTypeInfo info = {
67 sizeof (LttvPluginXFVClass),
68 NULL, /* base_init */
69 NULL, /* base_finalize */
70 lttv_plugin_xfv_class_init, /* class_init */
71 NULL, /* class_finalize */
72 NULL, /* class_data */
73 sizeof (LttvPluginXFV),
74 0, /* n_preallocs */
75 lttv_plugin_xfv_init /* instance_init */
76 };
77 type = g_type_register_static (G_TYPE_OBJECT,
78 "LttvPluginXFVType",
79 &info, 0);
80 }
81 return type;
82 }
83
84
This page took 0.030746 seconds and 4 git commands to generate.