Browse files

static delegate -> [CCode (has_target = false)]

  • Loading branch information...
1 parent ff14c89 commit e39af21170f3349af8d36a1b3d304e81547f35ba @rainwoodman rainwoodman committed Jun 19, 2010
Showing with 8 additions and 4 deletions.
  1. +6 −3 globalmenu-plugin/gtk-menubar.vala
  2. +2 −1 globalmenu-plugin/gtk-widget.vala
View
9 globalmenu-plugin/gtk-menubar.vala
@@ -8,9 +8,12 @@ internal class MenuBar {
private extern const int OffsetSizeRequest;
[CCode (cname="G_STRUCT_OFFSET(GtkWidgetClass, can_activate_accel)")]
private extern const int OffsetCanActivateAccel;
- private static delegate void MapFunc(Gtk.Widget? widget);
- private static delegate void SizeRequestFunc(Gtk.Widget? widget, ref Gtk.Requisition req);
- private static delegate bool CanActivateAccelfunc(Gtk.Widget? widget);
+ [CCode (has_target = false)]
+ private delegate void MapFunc(Gtk.Widget? widget);
+ [CCode (has_target = false)]
+ private delegate void SizeRequestFunc(Gtk.Widget? widget, ref Gtk.Requisition req);
+ [CCode (has_target = false)]
+ private delegate bool CanActivateAccelfunc(Gtk.Widget? widget);
public MenuBar() {
Superrider.superride(typeof(Gtk.MenuBar), OffsetMap, (void*)map);
View
3 globalmenu-plugin/gtk-widget.vala
@@ -4,7 +4,8 @@
internal class Widget {
[CCode (cname="G_STRUCT_OFFSET(GtkWidgetClass, parent_set)")]
private extern const int OffsetParentSet;
- private static delegate void ParentSetFunc(Gtk.Widget? widget, Gtk.Widget? old_parent);
+ [CCode (has_target = false)]
+ private delegate void ParentSetFunc(Gtk.Widget? widget, Gtk.Widget? old_parent);
public Widget() {
Superrider.superride(typeof(Gtk.Widget), OffsetParentSet, (void*)parent_set);

0 comments on commit e39af21

Please sign in to comment.