ApplicationIndicator Constructor cannot be overriden in C#

Bug #528097 reported by Sense Egbert Hofstede
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Application Indicators
Confirmed
Medium
Unassigned
indicator-application (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

The constructor of AppIndicator.ApplicationIndicator cannot be overridden in the C# bindings. This is caused by the following check added tot the Mono bindings generated by GAPI:

if (GetType () != typeof (ApplicationIndicator)) {
 throw new InvalidOperationException ("Can't override this constructor.");
}

This has as a consequence that the fallback methods cannot be overridden in C#.

Revision history for this message
Sense Egbert Hofstede (sense) wrote :

I've filed a merge request that should fix this bug and make a few other things go a bit smoother as well.

Changed in indicator-application:
status: New → In Progress
assignee: nobody → Sense Hofstede (qense)
Revision history for this message
Sense Egbert Hofstede (sense) wrote :

However, this does not fix the issues with Fallback and Unfallback as GAPI doesn't support virtual members and therefore those two methods are never generated in C#.

More correctly: GAPI has been supporting virtual methods since before the release of Karmic, but due a conservative maintenance policy this new functionality will most likely be included as soon as GTK# 3, which will be released September 2010 if everything goes well.

Ted Gould (ted)
Changed in indicator-application:
importance: Undecided → Medium
Changed in indicator-application:
assignee: Sense Hofstede (sense) → nobody
status: In Progress → Confirmed
Ted Gould (ted)
Changed in indicator-application (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.