File: GGobiAppClass.c

package info (click to toggle)
ggobi 2.1.9~20091212-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 19,340 kB
  • ctags: 5,083
  • sloc: ansic: 57,242; xml: 30,604; cpp: 833; makefile: 355; java: 225; perl: 201; sh: 122; python: 23
file content (52 lines) | stat: -rw-r--r-- 1,184 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#include "GGobiApp.h"
#include "ggobi.h"

void ggobi_app_class_init (GGobiAppClass * klass);
void ggobi_app_init (GGobiApp * app);

/**
  This registers and returns a unique GType representing
  the ggobi app class.
 */
GType
ggobi_app_get_type (void)
{
  static GType app_type = 0;

  if (!app_type) {
    static const GTypeInfo app_info = {
      sizeof (GGobiAppClass),
      NULL, NULL,
      (GClassInitFunc) ggobi_app_class_init,
      NULL, NULL,
      sizeof (GGobiApp), 0,
      (GInstanceInitFunc) ggobi_app_init,
      NULL
    };

    app_type =
      g_type_register_static (G_TYPE_OBJECT, "GGobiApp", &app_info, 0);
  }

  return app_type;
}


void
ggobi_app_init (GGobiApp * app)
{

}

void
ggobi_app_class_init (GGobiAppClass * klass)
{                               /* why is this stored as the "DATAD_ADDED_SIGNAL" ? */
  if (g_signal_lookup ("new_ggobi", GGOBI_TYPE_APP) == 0) {
    //GGobiSignals[DATAD_ADDED_SIGNAL] =
    g_signal_new ("new_ggobi",
                  GGOBI_TYPE_APP,
                  G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, 0, NULL, NULL,
                  g_cclosure_marshal_VOID__OBJECT,
                  G_TYPE_NONE, 1, GGOBI_TYPE_GGOBI);
  }
}