[monet/vala] [gtk] Remove pointer stars to allow the [ModuleInit] directive to work
- From: Thomas Wood <thos src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [monet/vala] [gtk] Remove pointer stars to allow the [ModuleInit] directive to work
- Date: Wed, 23 Dec 2009 18:10:55 +0000 (UTC)
commit fbd24c8e545190fc5520d5af41a17c75d2061756
Author: Thomas Wood <thomas pepper localdomain>
Date: Wed Dec 23 17:56:02 2009 +0000
[gtk] Remove pointer stars to allow the [ModuleInit] directive to work
Pointer stars are not required in Vala and using them will disable
automatic memory management.
monet-gtk/mn-gtk-main.vala | 18 +++++-------------
1 files changed, 5 insertions(+), 13 deletions(-)
---
diff --git a/monet-gtk/mn-gtk-main.vala b/monet-gtk/mn-gtk-main.vala
index abea8a5..871a1a2 100644
--- a/monet-gtk/mn-gtk-main.vala
+++ b/monet-gtk/mn-gtk-main.vala
@@ -6,13 +6,10 @@ namespace Theme
{
[ModuleInit]
public void
- init (GLib.TypeModule *module)
+ init (GLib.TypeModule module)
{
- stdout.printf ("init\n");
- var type = typeof (Monet.RcStyle);
- stdout.printf (@"type == $type\n");
- type = typeof (Monet.Style);
- stdout.printf (@"type == $type\n");
+ typeof (Monet.RcStyle);
+ typeof (Monet.Style);
}
public void
@@ -20,14 +17,9 @@ namespace Theme
{
}
- public Gtk.RcStyle *
+ public Gtk.RcStyle
create_rc_style ()
{
- Gtk.RcStyle style;
-
- style = new Monet.RcStyle ();
-
- stdout.printf ("create rc style %p\n", style);
- return style;
+ return new Monet.RcStyle ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]