← Back to team overview

dx-packages team mailing list archive

[Bug 1065310] Re: Can't inherit from AppIndicator.Indicator in Vala

 

** Branch linked: lp:~samvasko/libappindicator/libappindicator

** Branch unlinked: lp:~robert-ancell/libappindicator/lp-1065310

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to libappindicator in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1065310

Title:
  Can't inherit from AppIndicator.Indicator in Vala

Status in Libappindicator:
  Fix Committed
Status in “libappindicator” package in Ubuntu:
  Fix Released

Bug description:
  You can't inherit from AppIndicator.Indicator in Vala as it generates
  invalid C code:

  indicator-bluetooth.c: In function ‘bluetooth_indicator_get_type’:
  indicator-bluetooth.c:989:57: error: ‘APP_TYPE_INDICATOR’ undeclared (first use in this function)
  indicator-bluetooth.c:989:57: note: each undeclared identifier is reported only once for each function it appears in

  This is because this define is named APP_INDICATOR_TYPE in the
  libappindicator header files.

  You can solve this by adding the type_id to the .vapi, i.e:

  [CCode (cheader_filename = "libappindicator/app-indicator.h",
  type_check_function = "IS_APP_INDICATOR", type_id =
  "app_indicator_get_type ()")]

  Other .vapis do this (e.g. telepathy-glib) but I can't work out how to
  make vapigen add these for libappIndicator.

To manage notifications about this bug go to:
https://bugs.launchpad.net/libappindicator/+bug/1065310/+subscriptions