File: rb-sample-vala-plugin.vala

package info (click to toggle)
rhythmbox 0.11.6-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 26,232 kB
  • ctags: 11,434
  • sloc: ansic: 97,824; xml: 36,080; sh: 9,341; python: 4,193; makefile: 2,130; cpp: 153
file content (22 lines) | stat: -rw-r--r-- 438 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using GLib;
using RB;
using RhythmDB;

class SampleValaPlugin: RB.Plugin {
	public override void activate (RB.Shell shell) {
		stdout.printf ("Hello world\n");
	}

	public override void deactivate (RB.Shell shell) {
		stdout.printf ("Goodbye world\n");
	}
}


[ModuleInit]
public GLib.Type register_rb_plugin (GLib.TypeModule module)
{
	stdout.printf ("Registering plugin %s\n", "SampleValaPlugin");

	return typeof (SampleValaPlugin);
}