linux: Add ifdef for Run method to work on different gtk-sharp versions
This commit is contained in:
parent
c3da354abd
commit
dbe9ceea19
|
@ -62,7 +62,14 @@ namespace SparkleShare {
|
|||
|
||||
public void Run (string [] args)
|
||||
{
|
||||
// FIXME: Hack to cover API differences between Ubuntu and latest GNOME
|
||||
if (InstallationInfo.OperatingSystem == OS.Ubuntu) {
|
||||
#if HAVE_APP_INDICATOR
|
||||
(application as GLib.Application).Run (0, null);
|
||||
#endif
|
||||
} else {
|
||||
(application as GLib.Application).Run ("org.sparkleshare.SparkleShare", new string [0]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue